Announcement

Collapse
No announcement yet.

Adding a CSS class to the Quantity field

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

    Adding a CSS class to the Quantity field

    Hi all,

    As my subject title suggests, I am looking to add custom CSS classes to the quantity fields when using 'quantity on product page' mode. My problem is that whatever class I add everything changes (colour, border etc.) apart from the overall size, text size & field size. To do this I am simply adding the new class around the NETQUOTEVAR:QUANTITY tag in the Act_ProductLine template.

    I probably missing something very basic here but has anyone else experienced problems with this? Got any solutions?

    Kind regards.

    Granthams

    #2
    You need to change it at the INPUT level not the code that calls the whole thing...

    Go to Design | Text | Phase -1 ID 2173 and find:

    %s<INPUT TYPE=text NAME="%s" SIZE="%d" VALUE="%d">

    Then add your class into that

    Comment


      #3
      Thanks for your help.

      However, when I add a class to the prompt you have shown me it only changes the 'quantity' text and not the quantity input box. It is the box I am more concerned about as I would like to make it smaller and more compact.

      Kind regards

      Granthams

      Comment


        #4
        Change

        %s<INPUT TYPE=text NAME="%s" SIZE="%d" VALUE="%d">


        to

        <span class="yourclassname">%s</span><INPUT TYPE=text NAME="%s" class="yourclassname" SIZE="%d" VALUE="%d">

        Comment


          #5
          Thanks Chris.

          My problem is fixed!

          Regards

          Granthams

          Comment

          Working...
          X