Announcement

Collapse
No announcement yet.

moving addtocart button

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

    moving addtocart button

    Hi Guys/Gals.

    I want to move an addtocart button so its pretty much next to the quantity

    (so its just to the right of it - about 2mm)

    But im stuck in how to move it

    Can anyone advise please.

    Reverse Osmosis Water Filters

    #2
    You have to edit your Product Layout(s). Look for the cart button which is a lump of code like:
    Code:
             <div style="float: right;">
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20AND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGrid%22%20%2f%3e%20%3d%3d%200%29" >
                <actinic:variable name="AddToCartButton" />
             </actinic:block>
             </div>
    Delete the first and last lines so you now have:
    Code:
             <actinic:block if="%3cactinic%3avariable%20name%3d%22IsAddToCartButtonShown%22%20%2f%3e%20AND%20%0d%28%3cactinic%3avariable%20name%3d%22NumberAttributesInPushButtonGrid%22%20%2f%3e%20%3d%3d%200%29" >
                <actinic:variable name="AddToCartButton" />
             </actinic:block>
    Now move that new bit of code to appear just after the line:
    Code:
    		<span class="actrequired"><Actinic:Variable Name="QuantityPrompt"/></span><input type="text" name="Q_<actinic:variable Name="ProductID"/>" size="4" value="<Actinic:Variable Name="DefaultQuantity"/>" class="form_input_general" />
    Backup and Snapshot first in case you break something.

    It's also a good idea to copy / paste the contents of a layout to a text file that you then save somewhere safe before making any changes. That way you can copy / paste the original back in if things get messed up.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      thats done it, but its a little too close, how do i move it over slightly to the right ?
      Reverse Osmosis Water Filters

      Comment


        #4
        never mind,

        Ive solved it by using &nbsp; at the end of the line.
        Reverse Osmosis Water Filters

        Comment


          #5
          Not even a glimpse of a thank you, time is valuable, manners are free .

          Comment


            #6
            Sorry Lee,

            I'm just mega busy and just testing that it all worked live online..

            Norman....

            the big THANKYOU VERY MUCH was coming

            so, THANKS MATE! very much appreciated.

            Reverse Osmosis Water Filters

            Comment


              #7
              That was really useful for me, too. Thanks!!
              The Patchwork Rabbit

              Comment

              Working...
              X