Bitrix API

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

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
see
OrderDealSynchronizer

create()

Create deal.

public create() : int

Creates a deal without products, for creating products rows use method addProductsToDeal.

Return values
int

        
On this page

Search results