VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: croppertiger on November 07, 2012, 09:59:40 AM

Title: Remove Quantity box from Product Module
Post by: croppertiger on November 07, 2012, 09:59:40 AM
I was wondering how you can remove the quantity box from the virtuemart product module?

(http://i.imgur.com/spIc5.jpg)

If anyone knows your help would be appreciated.

Thanks
Title: Re: Remove Quantity box from Product Module
Post by: bytelord on November 07, 2012, 16:47:06 PM
Hello,

You could use some CSS for that:

.span.quantity-box {
display:none;
}

.span.quantity-controls {
display:none;
}

Regards
Title: Re: Remove Quantity box from Product Module
Post by: croppertiger on November 07, 2012, 18:55:15 PM
Which CSS file would this be for?

This is for the module?

Many thanks!
Title: Re: Remove Quantity box from Product Module
Post by: bytelord on November 07, 2012, 18:56:20 PM
Hello,

You should create a CSS override for that and also use firebug to examine it.

Some more information regarding template system and template overrides:
Template overrides: http://forum.virtuemart.net/index.php?topic=98505.0
Template System: https://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
Using firebug to examine your code & css styling: http://forum.virtuemart.net/index.php?topic=102850.0

Regards
Title: Re: Remove Quantity box from Product Module
Post by: croppertiger on November 07, 2012, 19:00:55 PM
Will take a look - I just want to remove it from the module not the entire shop
Title: Re: Remove Quantity box from Product Module
Post by: bytelord on November 07, 2012, 19:08:54 PM
Hello,

Then use

.vmproduct span.quantity-box {
display:none;
}

.vmproduct span.quantity-controls {
display:none;
}

Is that work for you?

Please don't forget to make a CSS override: http://forum.virtuemart.net/index.php?topic=90968.0

Regards