VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: cimran on February 12, 2015, 11:40:55 AM

Title: Quantity Increment
Post by: cimran on February 12, 2015, 11:40:55 AM
Hi
I have inserted minimum purchase quantity 6 so I need to increment quantity by 6 rather than 1 in Product Details page.
http://www.weinonline24.ch/rotweine/argentinien2014-12-10-12-51-53540881463/new-age-rot-mendoza-detail

Thanking you in anticipation
I'm using Joomla! 3.3.6 and VirtueMart 3.0.2

Title: Re: Quantity Increment
Post by: AH on February 12, 2015, 12:53:42 PM
In product admin

Go to the product status tab and just above minimum purchase quantity

Set Purchase Quantity Steps    to 6
Title: Re: Quantity Increment
Post by: cimran on February 12, 2015, 13:36:27 PM
Thank you very much.

I have already setup Purchase Quantity Steps to 6 but it does not being shown on front end; Can you please guide as possible

Thanks and take care!
Title: Re: Quantity Increment
Post by: AH on February 12, 2015, 15:57:55 PM
upgrade to vm 3.0.4
Title: Re: Quantity Increment
Post by: cimran on February 12, 2015, 17:00:19 PM
I need to modify product details page that each product have minimum purchase quantity set to 6 by default and purchase quantity steps should be with 6 increments.
I have over 2000 products and i need help to modify a code so that this rule should be applied to all products by default rather than entering to individual products.
http://www.weinonline24.ch/rotweine/italien2014-12-10-12-51-531583184934/montepulciano-d-abruzzo-doc-tresanti-detail
Using Joomla! 3.3.6 and VirtueMart 3.0.2
Title: Re: Quantity Increment
Post by: AH on February 12, 2015, 17:11:30 PM
upgrade to 3.0.4

Then do an sql update to that field in the product table
Title: Re: Quantity Increment
Post by: cimran on February 13, 2015, 00:03:59 AM
I'm not sure actually which table to edit?
Please guide me about database structure to edit

Many Thanks!
Title: Re: Quantity Increment
Post by: AH on February 13, 2015, 09:45:09 AM
If you do not know MYSQL - then I advise you to get external help

Edit the product table

_virtuemart_products

The filed you need to manage is the

product_params

Find one item you have edited to be what you require use that in an MYSQL update statement

This is an example product_params field value - WITHOUT any settings

min_order_level=null|max_order_level=null|step_order_level=null|product_box=null|