DealCreator
Table of Contents
Methods
- __construct() : mixed
- addProductsToDeal() : void
- Adds the order basket items to the deal as the product rows.
- create() : int
- Create deal.
Methods
__construct()
public
__construct(Order $order) : mixed
Parameters
- $order : Order
addProductsToDeal()
Adds the order basket items to the deal as the product rows.
public
addProductsToDeal(mixed $dealId) : void
If you need to sync a deal and an order, maybe you need OrderDealSynchronizer
?
Parameters
- $dealId : mixed
Tags
create()
Create deal.
public
create() : int
Creates a deal without products, for creating products rows use method addProductsToDeal
.