Logidav Docs

AbandonedCartService extends TransactionalService
in package

Class AbandonedCartService

Table of Contents

Properties

$abandonedCartRepository  : mixed
$container  : ContainerInterface
$em  : EntityManager
$productService  : mixed
$smsService  : mixed
$header  : mixed

Methods

addRepository()  : void
Add a repository to this service
addService()  : void
Add a service to this service
export()  : StreamedResponse
Exporting abandonedCarts
getAllDiscount()  : mixed
getEntityManager()  : EntityManager
Getter of the Entity Manager
getRepo()  : mixed
Get AbandonedCartRepository
save()  : AbandonedCart
Save a AbandonedCart
saveFromApi()  : bool
Add a AbandonedCart
sendSms()  : string
Send sms to cart owner
setEntityManager()  : mixed
Setter of the Entity Manager
exportCsv()  : mixed
Exporting as csv
exportXls()  : mixed
Exporting as Xls

Properties

$header

private mixed $header = ['store_id' => 'Store ID', 'created_at' => 'Crée le', 'customer_name' => 'Nom, prénom', 'customer_email' => 'Email', 'phone' => 'Téléphone', 'zip_code' => 'CP', 'products' => 'Produit/Qty', 'grand_total' => 'Total', 'discount' => 'Réduction', 'shipping' => 'Mode de Livraison', 'payment' => 'Mode de paiement', 'appeler' => 'Appeler (oui /non)', 'date_a_rappeler' => 'Date a rappeler', 'details' => 'Détail ']

Methods

addRepository()

Add a repository to this service

public addRepository(int $key, string $class) : void
Parameters
$key : int

Key

$class : string

Class

addService()

Add a service to this service

public addService(int $key, mixed $service) : void
Parameters
$key : int

Key

$service : mixed

export()

Exporting abandonedCarts

public export(mixed $title, mixed $data, mixed $columns, mixed $format[, array<string|int, mixed> $customHeader = [] ]) : StreamedResponse
Parameters
$title : mixed
$data : mixed
$columns : mixed
$format : mixed
$customHeader : array<string|int, mixed> = []
Return values
StreamedResponse

getEntityManager()

Getter of the Entity Manager

public getEntityManager() : EntityManager
Return values
EntityManager

saveFromApi()

Add a AbandonedCart

public saveFromApi(mixed $datas) : bool
Parameters
$datas : mixed
Tags
throws
Exception
Return values
bool

sendSms()

Send sms to cart owner

public sendSms(mixed $cart, mixed $ruleId, mixed $message) : string
Parameters
$cart : mixed
$ruleId : mixed
$message : mixed
Return values
string

setEntityManager()

Setter of the Entity Manager

public setEntityManager(EntityManager $em) : mixed
Parameters
$em : EntityManager

the Entity Manager

exportCsv()

Exporting as csv

private exportCsv(mixed $data, mixed $columns, mixed $title) : mixed
Parameters
$data : mixed
$columns : mixed
$title : mixed

exportXls()

Exporting as Xls

private exportXls(mixed $data, mixed $columns, mixed $title) : mixed
Parameters
$data : mixed
$columns : mixed
$title : mixed

        
On this page

Search results