VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: babu65 on January 17, 2015, 12:10:56 PM

Title: Limit the amount purchased by country
Post by: babu65 on January 17, 2015, 12:10:56 PM
Using Virtuemart I find myself having to limit the quantities to be purchased by customers according to the country where customers are making the purchase, or more precisely to the state indicated in the delivery address and I have no ideas about.
In practice these are alcohol, according to current regulations in each state, I must be able to limit the quantities in lt purchased by customers.
Does anyone know tell me if you can make a setup like that or if it needs some plg?
Thanks in advance for your valuable advice.
Title: Re: Limit the amount purchased by country
Post by: GJC Web Design on January 17, 2015, 16:35:48 PM
leverage the shipping methods perhaps? - different ones for different countries and a max cart value
if they go over they have no shipping so can't complete..
Title: Re: Limit the amount purchased by country
Post by: babu65 on January 17, 2015, 18:06:34 PM
Thanks GJC for the prompt reply,
but I must set up a max quantity in liters, no a max cart value. Every product have different price but for every nation there is a specific limited quantity.
So I must limit for example in France 12 liters in Norway 0 liters in USA 10 liters and so so
Title: Re: Limit the amount purchased by country
Post by: GJC Web Design on January 17, 2015, 18:46:48 PM
you need to code that into the shipping method you use - in the conditions - and of course a litre parameter in the products