I need to change the size of the product quantity input box

I need to change the size of the product quantity input box

Postby design@.....au » Thu Mar 22, 2012 6:27 am

I am using icetheme_css2 and I need to reduce the size (length) of the product quantity input box. It refers to the main template.css file, however, I don't want all the other input boxes to be reduced in size, just the product quantity input box on the checkout page. Where do I go to change this setting for this theme?
design@.....au
 
Posts: 4
Joined: Wed Mar 21, 2012 4:19 pm

Re: I need to change the size of the product quantity input box

Postby design@.....au » Thu Mar 22, 2012 7:02 am

I'm new to this, and I hope someone will educate me if I'm wrong with my approach, but what I did is this:

I added this to the /components/com_virtuemart/themes/default/templates/onepage/icetheme_css2/onepage.css

Code: Select all
div#basket_container div.op_basket_row div.op_col6 .inputbox {
width: 75px;
}


It has achieved the result I wanted, with the product quantity box being 75px, and all the other input boxes remaining at 350px as per my main template.css file.

I'm happy that it's worked and done what I wanted, but as I said I am inexperienced at this so happy for other users to let me know if there is a better way to achieve this result.
design@.....au
 
Posts: 4
Joined: Wed Mar 21, 2012 4:19 pm

Re: I need to change the size of the product quantity input box

Postby admin » Fri Mar 23, 2012 4:36 pm

Hello, i strongly recommend to rename the template after your modification to something like this:
/components/com_virtuemart/themes/default/templates/onepage/icetheme_custom

so it does not get overwritten on OPC update.

Best Regards,
Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 1.1.x

cron