Announcement

Collapse
No announcement yet.

Styling quantity text box in cart

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

    Styling quantity text box in cart

    Hi,

    Another "crazy" change I'm having difficulty with.

    All I want to do is to style the quantity text box in the shopping cart.

    When I look in the template the variable "Quantity" is wrapped in a table tag and I cannot see how to get at the code that creates the text box. The text box actually renders:
    <INPUT TYPE=TEXT SIZE="4" NAME="Q_0" VALUE="2" STYLE="text-align: right;">

    Short of wrapping a CSS div around it I'm not sure what to do. I really dont want to hack the CSS as the rendered HTML is enough of a mess as it is.

    Does anyone have any ideas?

    Thanks.

    #2
    Apply a class to the input tag. Click on the quick search to see an example.

    Comment


      #3
      Hi Lee,

      My problem is that I am unable to get to the input tag - the only thing I see in Actinic is the variable: Quantity. I'm not sure how Actinic processes this variable in order to add it to the input tag that is eventually rendered.

      I've had a look in Design>Text but am unable to find anything in there either.

      I'm running short on time and need to summount a VAT problem in the cart next so have opted to wrap the variable in a DIV and cascade the style to the input that way.

      Not ideal but it does the job.

      Comment


        #4
        Reverse engineer it then, apply a standard class for the input tag across the site and then apply a class to change the ones you can get to.

        Comment


          #5
          Open ActinicOrder.pm and goto line 3935
          Should read
          Code:
          $sQuantityText = "<INPUT TYPE=TEXT SIZE=\"4\" NAME=\"Q_" . $nLineCount . "\" VALUE=\"". $sQuantityText . "\" STYLE=\"text-align: right;";
          That's input tag you want
          "If my answers frighten you then you should cease asking scary questions"

          Comment

          Working...
          X