Answer the question
In order to leave comments, you need to log in
How does Add2BasketByProductID add a product to the cart?
there is a code
\Add2BasketByProductID(6006, 1, array(), array(
array( "NAME" => "Доступ",
"CODE" => "PERMISSION",
"VALUE" => ""
)
));
Answer the question
In order to leave comments, you need to log in
if (CModule::IncludeModule("sale") && CModule::IncludeModule("catalog")) {
//$PRODUCT_ID - ID товара
//$QUANTITY - кол-во товара
Add2BasketByProductID( $PRODUCT_ID, $QUANTITY );
}else { echo "Не подключены модули"; }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question