sale.basketItem.getFieldsCatalogProduct
sale.basketItem.getCatalogProductFields()
The method returns catalog product fields for shopping cart item.
Returned fields:
Field | Description |
---|---|
id | Product ID. |
lid | Site page, where the purchase is performed. |
orderId | Order ID. |
productId | Product code. |
productPriceId | Product price ID. |
priceTypeId | Product type price ID. |
name | Product name. |
price | Product price with discounts and extra markup. |
currency | Currency. |
basePrice | Product price, flat and undiscounted. |
vatIncluded | Flag (Y/N): with/without tax. |
weight | Weight. |
quantity | Quantity. |
module | Module. |
productProviderClass | Provider class name. |
notes | Notes. |
detailPageUrl | Detail view page URL. |
discountPrice | Discount. |
catalogXmlId | Catalog external ID. |
productXmlId | Product external ID. |
discountName | Discount name. |
discountValue | Discount value. |
discountCoupon | Discount coupon. |
vatRate | VAT rate. |
subscribe | Flag (Y/N): product subscription. |
barcodeMulti | Flag (Y/N): barcode, unique or not. |
customPrice | Flag (Y/N): custom price or not. |
dimensions | Dimensions. |
type | Product type. |
setParentId | Parent section ID. |
measureCode | Unit of measurement code. |
measureName | Unit of measurement name. |
recommendation | Recommendation. |
sort | Sorting. |
Parameters
No parameters.
Examples
BX24.callMethod( 'sale.basketItem.getCatalogProductFields', {}, function(result) { if(result.error()) console.error(result.error().ex); else console.log(result.data()); });
© «Bitrix24», 2001-2024