Good afternoon, tell me, please, is there a plug-in or a snippet to implement the following: there is a certain group of promotional items that are sold on condition that you buy some more other goods, for example, a cooler for drinking water at a 15% discount Order 4 bottles of water. Or a dispenser with a 10% discount can be purchased with the purchase of 2 bottles of water. I would like for those who choose this action so that one or another number of bottles is added to the basket. Since there are a lot of coolers and dispensers for models and they by themselves are sold without discounts, it is impossible to realize this by grouping goods, I did not find a suitable plug-in even in paid
1 answer
So far, it has turned out to be realized only by adding ? Add-to-cart = 538 & quantity = 2 to the button that flips to the page with the category of promotional items. 538 is the id of the product that I want it to be added to the cart, and 2 is the quantity of it in the cart. The button code is: <a class="bttn adding_to_cart bttn_akciya_for_dispencer" href="/product-category/specialnye-ceny/dispensery-s-15-skidkoj/?add-to-cart=538&quantity=2" rel="nofollow" data-product_id="538" data-product_sku="" data-quantity="2">Выбрать диспенсер</a>
|