VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: fabioweb on November 25, 2017, 02:19:37 AM

Title: Checkout Product Condition
Post by: fabioweb on November 25, 2017, 02:19:37 AM
Hello forum! with a third party plugin i'm managing "Private" and "Company" conditional fields..
In addition i can tell you that this fields are not related to any Shopper group so if a user is registered under "Private" or "Company" will be assigned into the same shopper group..

In this way i need to know if is possible to restrict checkout of some product only to "Private" user and others product to "Company" user

Example in my attachment the product should be bought only from private.. So if radio button "Company" is active how can i block the checkout?

V.M 3.2.4

Best regards


Title: Re: Checkout Product Condition
Post by: GJC Web Design on November 25, 2017, 18:05:38 PM
this is what Shopper groups are for so would it not be better to code something that joins them to the correct SG?  There is a plugin for this somewhere

Otherwise you have to do some quite heavy coding to get the user status and filter your products with the result