Documentation

sale.basketItem.getFieldsCatalogProduct

sale.basketItem.getCatalogProductFields()

The method returns catalog product fields for shopping cart item.

Returned fields:

Field Description
idProduct ID.
lidSite page, where the purchase is performed.
orderIdOrder ID.
productIdProduct code.
productPriceIdProduct price ID.
priceTypeIdProduct type price ID.
nameProduct name.
priceProduct price with discounts and extra markup.
currencyCurrency.
basePriceProduct price, flat and undiscounted.
vatIncludedFlag (Y/N): with/without tax.
weightWeight.
quantityQuantity.
moduleModule.
productProviderClassProvider class name.
notesNotes.
detailPageUrlDetail view page URL.
discountPriceDiscount.
catalogXmlIdCatalog external ID.
productXmlIdProduct external ID.
discountNameDiscount name.
discountValueDiscount value.
discountCouponDiscount coupon.
vatRateVAT rate.
subscribeFlag (Y/N): product subscription.
barcodeMultiFlag (Y/N): barcode, unique or not.
customPriceFlag (Y/N): custom price or not.
dimensionsDimensions.
typeProduct type.
setParentIdParent section ID.
measureCodeUnit of measurement code.
measureNameUnit of measurement name.
recommendationRecommendation.
sortSorting.

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-2022
Up