Adding a quantity field on Virtuemart product page ?

Support desk for Multipurpose Quark Theme
GK User
Fri Jun 16, 2017 9:11 am
Hello,
Is it possible to add a quantity field on the Virtuemart product page?
Next to the price.

Best regards.
User avatar
Senior Boarder

teitbite
Mon Jun 19, 2017 10:35 am
Hi

All You need to do is to set in VM configuration to show quantity options. After that add to cart area will turn to this:
User avatar
Moderator

GK User
Mon Jun 19, 2017 11:16 am
Thanks for the quick reply but I searched and I do not see this setting... where exactly in VM Configuration ?
User avatar
Senior Boarder

teitbite
Fri Jun 23, 2017 9:41 am
Hi

I'm afraid I'm not VM expert, so I need to send You to their documentation. Could not found this option either, but it's clearly based of a config value as You can see in code:

Code: Select all
                                           if($templateSettings->get('vm3_show_quantity', '0') == '1' ) :


If You will not find a solution via configuration than edit file /html/com_virtuemart/productdetails/default.php and change line 256 (above code) to:

Code: Select all
                                           if( 1 ) :



so it will be always true and show quantity despite of configuration.
User avatar
Moderator

GK User
Mon Jun 26, 2017 2:29 pm
Works.
Thank you again!!! ;))
User avatar
Senior Boarder

teitbite
Fri Jun 30, 2017 1:12 pm
Hi

That's great :) Still wondering where the option to turn it on is hiding in configuration :) Anyway, closing this thread now.
User avatar
Moderator


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.