VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: rogy on January 31, 2015, 16:18:18 PM

Title: Limit the number of some products
Post by: rogy on January 31, 2015, 16:18:18 PM
Is it possible in VM3 that can limit the number for some products. e.g., the customer can not select the number of pieces. But only in some products.
Title: Re: Limit the number of some products
Post by: jenkinhill on January 31, 2015, 16:53:22 PM
Like on each product/Product status tab are settings for Maximum Purchase Quantity or Purchase Quantity Steps ?
Title: Re: Limit the number of some products
Post by: rogy on January 31, 2015, 17:11:06 PM
Thanks for your answer

Here the screenshoot what i mean.

I have in the Backend VM --> Maximum Purchase Quantity 1, but the shopper can but more than one in his card.
Ok in the Orderlist is just one. But it wold be helful this field can not not change.
Title: Re: Limit the number of some products
Post by: GJC Web Design on January 31, 2015, 17:39:46 PM
make a product detail template over ride - call it default-noq.php

remove the quantity box from it either by css or code  - (leave a hidden field with quan 1

apply that template to the category of the 1 off products
Title: Re: Limit the number of some products
Post by: rogy on January 31, 2015, 17:49:28 PM
Good idea, but the products that can be ordered only once, there are in different categories, which are also products that can be ordered on several occasions.
Title: Re: Limit the number of some products
Post by: GJC Web Design on January 31, 2015, 18:23:44 PM
you can put a product in an infinite number of different cats

or shift them

or code a solution based on some factor