VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: jlabuelo_sm on February 23, 2017, 17:00:25 PM

Title: Allow to buy a product, only if the parent it is in the cart
Post by: jlabuelo_sm on February 23, 2017, 17:00:25 PM
Hi all

I am trying to figure out how this can be done. I have two products, A, and B, however I only would like to allow to buy (or propose to buy) product B, if product A is already in the cart.
Basically I have solved this by creating two produtcs in virtuemart
- Product A
- Pack Product "A+B".

What I am trying to get is that if user buys Product A, virtuemart would suggest something like "why not completing your order of product A, adding product B".

Is this possible?

Thanks a lot!

Thanks a lot
Title: Re: Allow to buy a product, only if the parent it is in the cart
Post by: Milbo on February 24, 2017, 07:51:53 AM
I think lindapowers describes something similar http://forum.virtuemart.net/index.php?topic=136663.0
Title: Re: Allow to buy a product, only if the parent it is in the cart
Post by: lindapowers on February 24, 2017, 22:05:30 PM
Maybe these extension is useful for your case since you need conditions based on products added at cart https://www.daycounts.com/shop/virtuemart-3/bonus-items.htm

Ask the developer if you can achieve what you want. The linked posted by Milbo was solved with shopper groups as himself and others suggested. My case is a bit different since I just needed added products based on order total and you need something like conditional custom fields depending on products added at the cart.

Regards