Answer the question
In order to leave comments, you need to log in
How to sell selected products in 1s-Bitrix?
I was very surprised that in Bitrix it’s standard, from a box for which you pay a lot of money, you can’t make a product “favorites” and output somewhere separately. And there is little information on the Internet on how to do this. Basically, everything is done through "deferred goods". But there is a big "BUT": a product cannot be both delayed and be in the basket at the same time. I found this article on how to do it beautifully, but it is poorly described where what code should be inserted. Can anyone help me figure out what code to write where?
What I didn’t understand exactly is what code should be inserted into the product card template ???
Answer the question
In order to leave comments, you need to log in
Rarus has it here, yes, it’s written a little stupidly, I stumbled upon it myself and realized that the article is not complete. In general, everything is stored there either in cookies or in the user's profile. There is no need to create a separate table, everything is basically transparent if you understand a little.
First, they offer to display the button in the template with a link and the number of selected products in the header, then the Favorites page, and then put the code in the product card
Well, hang handlers on js in the epilogue component so as not to get into the cache.
Many ready-made solutions have it.
The simplest is to store the IDs of selected products in the session. This is if you do not need to keep them there for a long time. If long, then 1 own table. Only 2 fields. USER_ID and PRODUCT_ID, declare both of them as primary (composite key). The output component will be very simple.
Good afternoon. Could you share the functionality? I would be grateful. The article you linked to is no longer available.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question