1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Интерфейс IBXSaleProductProvider
Граф наследования:IBXSaleProductProvider:
ProviderAccountPay CCatalogProductProvider

Открытые статические члены

static GetProductData ($arFields)
static OrderProduct ($arFields)
static CancelProduct ($arFields)
static DeliverProduct ($arFields)
static ViewProduct ($arFields)
static RecurringOrderProduct ($arFields)
static GetStoresCount ($arParams=array())
static GetProductStores ($arFields)
static ReserveProduct ($arFields)
static CheckProductBarcode ($arFields)
static DeductProduct ($arFields)

Подробное описание

См. определение в файле product_provider.php строка 2

Методы

◆ CancelProduct()

CancelProduct ( $arFields)
static

Method is called when the order with the product is canceled

Аргументы
array$arFieldsProduct description. keys are case sensitive:
  • int PRODUCT_ID Product id.
  • float QUANTITY Product quantity.
  • string CANCEL Cancel flag (Y/N).
Возвращает
bool

Замещается в ProviderAccountPay и CCatalogProductProvider.

◆ CheckProductBarcode()

CheckProductBarcode ( $arFields)
static

Method is called to check product barcode

Аргументы
int$arFields,["PRODUCT_ID"]
int$arFields,["BARCODE"]

Замещается в ProviderAccountPay и CCatalogProductProvider.

◆ DeductProduct()

DeductProduct ( $arFields)
static

Method is called when the product is actually deducted from store

Аргументы
int$arFields,["PRODUCT_ID"]
int$arFields,["QUANTITY"]
string$arFields,["EMULATE"]Y/N
string$arFields,["UNDO_DEDUCTION"]Y/N
string$arFields,["PRODUCT_RESERVED"]Y/N
array$arFields,["STORE_DATA"]

◆ DeliverProduct()

DeliverProduct ( $arFields)
static

Method is called when the delivery is allowed for the order with this product

Аргументы
array$arFieldsProduct description. keys are case sensitive:
  • int PRODUCT_ID Product id.
  • int USER_ID User id.
  • bool $arFields["PAID"] Paid or no.
  • int ORDER_ID Order id.
  • string BASKET_ID Basket id.
    array|false

Замещается в ProviderAccountPay и CCatalogProductProvider.

◆ GetProductData()

GetProductData ( $arFields)
static

Method is called to get information about product from the catalog.

Аргументы
array$arFieldsProduct description. keys are case sensitive:
  • int PRODUCT_ID Product id.
  • float QUANTITY Product quantity.
  • string RENEWAL Product or renewal (Y/N, default N).
  • int USER_ID User id (only for admin pages).
  • string SITE_ID Site id (only for admin pages).
  • string BASKET_ID Basket id.
  • string CURRENCY Site currency.
  • string CHECK_QUANTITY Need check quantity (Y/N, default Y).
  • string CHECK_PRICE Get current optimal price (Y/N, default Y).
  • string CHECK_COUPONS Use coupons (Y/N, default Y).
  • string CHECK_DISCOUNT Get optimal price with discount (Y/N, default Y).
  • string NOTES For catalog - old price type.
Возвращает
array|false

Замещается в ProviderAccountPay и CCatalogProductProvider.

◆ GetProductStores()

GetProductStores ( $arFields)
static

Method is called to get information from the product provider about available shipping stores for the specified product. Return list of stores or false if stores are not used.

Аргументы
array$arFieldsStore params. keys are case sensitive:
  • string SITE_ID Site id.
  • int PRODUCT_ID Product ID.
  • bool ENUM_BY_ID Return store ids as keys.
  • int BASKET_ID Basket id.
Возвращает
array|false

Замещается в ProviderAccountPay и CCatalogProductProvider.

◆ GetStoresCount()

GetStoresCount ( $arParams = array())
static

Method is called to know if product provider supports stores. Return number of stores used as shipping centers available or false if stores are not used.

Аргументы
array$arParamsStore params. keys are case sensitive:
  • string SITE_ID Site id.
Возвращает
int

Замещается в ProviderAccountPay и CCatalogProductProvider.

◆ OrderProduct()

OrderProduct ( $arFields)
static

Method is called when the order with products from the basket is placed.

Аргументы
array$arFieldsProduct description. keys are case sensitive:
  • int PRODUCT_ID Product id.
  • float QUANTITY Product quantity.
  • string RENEWAL Product or renewal (Y/N, default N).
  • int USER_ID User id (only for admin pages).
  • string SITE_ID Site id (only for admin pages).
  • string BASKET_ID Basket id.
  • string CURRENCY Site currency.
  • string CHECK_QUANTITY Need check quantity (Y/N, default Y).
  • string CHECK_DISCOUNT Get optimal price with discount (Y/N, default Y).
Возвращает
array|false

Замещается в ProviderAccountPay и CCatalogProductProvider.

◆ RecurringOrderProduct()

RecurringOrderProduct ( $arFields)
static

Method is when recurring order is placed with this product

Аргументы
array$arFieldsProduct description. keys are case sensitive:
  • int PRODUCT_ID Product id.
  • int USER_ID User id.
Возвращает
array|false

Замещается в ProviderAccountPay и CCatalogProductProvider.

◆ ReserveProduct()

ReserveProduct ( $arFields)
static

Method is called when the product should be reserved

Аргументы
int$arFields,["PRODUCT_ID"]
int$arFields,["QUANTITY_ADD"]- quantity which should be added to the QUANTITY_RESERVED value of the product during reservation
string$arFields,["UNDO_RESERVATION"]Y/N
Возвращает
array

Замещается в ProviderAccountPay и CCatalogProductProvider.

◆ ViewProduct()

ViewProduct ( $arFields)
static

Method is called when the product is viewed

Аргументы
array$arFieldsProduct description. keys are case sensitive:
  • int PRODUCT_ID Product id.
  • int USER_ID User id (only for admin pages).
  • string SITE_ID Site id (only for admin pages).
Возвращает
array|false

Замещается в ProviderAccountPay и CCatalogProductProvider.


Объявления и описания членов интерфейса находятся в файле: