Answer the question
In order to leave comments, you need to log in
How is it possible to implement free shipping depending on the amount?
Good afternoon!
Tell me, there is a site on Bitrix, the Small Business edition, and you need to implement the following:
When adding a product to the cart, in the cart and on each page, a "reverse report" is kept of how much is missing before free delivery. As here -
I searched the Internet for how to implement it, but I could not find it. Please tell kind people
Answer the question
In order to leave comments, you need to log in
1. Create a cart rule:
/bitrix/admin/sale_discount_edit.php
$result = Sale\Internals\BasketTable::getList(array(
'filter' => array(
'FUSER_ID' => Sale\Fuser::getId(),
'ORDER_ID' => null,
'LID' => SITE_ID,
'CAN_BUY' => 'Y',
),
'select' => array('BASKET_COUNT', 'BASKET_SUM'),
'runtime' => array(
new \Bitrix\Main\Entity\ExpressionField('BASKET_COUNT', 'COUNT(*)'),
new \Bitrix\Main\Entity\ExpressionField('BASKET_SUM', 'SUM(PRICE*QUANTITY)'),
)
))->fetch();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question