The code below adds (what I think is very useful) plus and minus buttons beside the quantity box. To use this feature, you need to turn on "Quantity On Product Page", found under Design, Options, Shop Defaults tab.
Open Act_ProductLine.html (or whatever your current Default Product Layout template is - Design, Options, Layouts tab, Default Product Layout, Edit)
Find:
NETQUOTEVAR:CARTERRORXMLNETQUOTEVAR:PRODUCTQUANTITY
And below it, add the following code:
<input class="q_dec_button" type=button value="-" onClick="javascript:this.form.elements['Q_NETQUOTEVAR:PRODUCTREFERENCE'].value--;">
<input class="q_inc_button" type=button value="+" onClick="javascript:this.form.elements['Q_NETQUOTEVAR:PRODUCTREFERENCE'].value++;">
################################
######## WARNING..... ###############
#### REMOVE THE SPACE BETWEEN THE #####
#### WORDS java script IN THE CODE #####
#### ABOVE. (this is a foibal of these #####
#### FORUMS). ####################
################################
Now open Act_Primary.html, and add the following code within the <head>...</head> tags:
<style type="text/css">
<!--
.q_inc_button { font-family: Arial, Helvetica, sans-serif; font-size: 15px;
height: 22px; width: 22px; clip: rect( )}
.q_dec_button { font-family: Courier New, Helvetica, sans-serif; font-size: 16px; font-weight: bold;
height: 22px; width: 22px; clip: rect( )}
-->
</style>
(The style declarations just get the buttons looking nice. I've tried this successfully in IE6 and NS7.)
Et voila!
Nick Morecroft.
Open Act_ProductLine.html (or whatever your current Default Product Layout template is - Design, Options, Layouts tab, Default Product Layout, Edit)
Find:
NETQUOTEVAR:CARTERRORXMLNETQUOTEVAR:PRODUCTQUANTITY
And below it, add the following code:
<input class="q_dec_button" type=button value="-" onClick="javascript:this.form.elements['Q_NETQUOTEVAR:PRODUCTREFERENCE'].value--;">
<input class="q_inc_button" type=button value="+" onClick="javascript:this.form.elements['Q_NETQUOTEVAR:PRODUCTREFERENCE'].value++;">
################################
######## WARNING..... ###############
#### REMOVE THE SPACE BETWEEN THE #####
#### WORDS java script IN THE CODE #####
#### ABOVE. (this is a foibal of these #####
#### FORUMS). ####################
################################
Now open Act_Primary.html, and add the following code within the <head>...</head> tags:
<style type="text/css">
<!--
.q_inc_button { font-family: Arial, Helvetica, sans-serif; font-size: 15px;
height: 22px; width: 22px; clip: rect( )}
.q_dec_button { font-family: Courier New, Helvetica, sans-serif; font-size: 16px; font-weight: bold;
height: 22px; width: 22px; clip: rect( )}
-->
</style>
(The style declarations just get the buttons looking nice. I've tried this successfully in IE6 and NS7.)
Et voila!
Nick Morecroft.
Comment