A
A
Alexander Petrov2019-03-12 08:29:13
1C-Bitrix
Alexander Petrov, 2019-03-12 08:29:13

How to transfer items from the shopping cart during authorization?

Friends, I send goods from the cart through the Bitrix api. Like this:

$result=Add2BasketByProductID(
    $_REQUEST['id'], 
    intval($_REQUEST['count']), 
    array(), 
    array()
  );

The product is added, everything is fine. But it turns out that not an authorized user and an authorized one are different. and baskets are different.
How can I save the products that I added to the cart before authorization or registration during authorization?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question