I am trying to have the customer do fewer steps buy adding this.
If the customer adds this one Event to the cart, I want the cart to automatically add this product. It has no variants, just one product.
I followed this: https://community.shopify.com/c/Shopify-Design/Add-Companion-Multiple-products-to-basket-when-specif...
And then found out I have an Ajax cart.... womp womp....
So I have tried making a form and adding an extra button for the product.
My product id for the item that needs to be added is 6619002634270.
I tried forcing the "Add to Cart" button to add it as well, all I could get is an event product with the cartridge products title. That was weird.
my site is:
orders.biomodex.com
The steps are:
Add Event: Patient Specific Rehearsal (this auto adds the product: Patient Specific Cartridge) to the cart.
I literally pulled my hair out trying to get this to work they way I want to. Any suggestions?
This solution does require working with code and Liquid files, and if this is something you would not be comfortable with, I would advise you to reach out to one of Shopify Experts, or contact me by mail. As always, when making code changes to your theme, please remember to create a backup, in case you need to revert back to previous versions of the theme.
Thank you,
Tejas
So you want like if product A in product then we need to add auto product B?
I tried this:
{% for item in cart.items %}
{% if item.product.id == "29056231440487" %}
jQuery.post('/cart/update.js',
{
quantity:1,
id: 6619002634270
});
This is what I came up with but still not working. Am I adding the wrong IDs? First picture goes to the top, 2nd pic is reference to product I want added.product A
product B
In this give instruction you can do this but need to change some code in Js to work with your condition.
User | Count |
---|---|
424 | |
209 | |
144 | |
56 | |
42 |