Announcement

Collapse
No announcement yet.

quantity + & - buttons

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    quantity + & - buttons

    Hi all

    on V6 i used + & - buttons next to my quantity fields on the products but for some reason in V7 the do not work when you have a duplicate product, they work with everything else.

    anyone any ideas as to the changes need to make to the script. The code i have is as follows
    <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++;">

    Cheers
    Darren

    #2
    That's because the duplicates are using "special" product references. The product reference is prefixed by an ID and the char '!'. This was required to be able to distinguish them.

    Regards,
    Zoltan
    Actinic Software
    www.actinic.co.uk

    Comment


      #3
      thanks for that, i thought there was something like that

      Cheers
      Darren

      Comment

      Working...
      X