Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2010
    Posts
    43
    Plugin Contributions
    0

    help question align Add To Cart button with a quantity box.

    Hi, it might be a simple thing, but I cannot find it myself and don't see answers previously given.

    I want to align "Add to Cart" button with a quantity box. Right now the button sits below the box. I see in the code (from "view source") two breaks, which probably are the reason.

    <div id="cartAdd">
    Add to Cart: <input type="text" name="cart_quantity" value="1" maxlength="6" size="4" /><br /><br /><input type="hidden" name="products_id" value="48" /><input type="image" src="includes/templates/linenlinens/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " /> </div>

    How to find in what file those breaks are so they can be removed?
    I tried Developer Tool Kit in admin back, but could not find it.
    Thanks in advance.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: align Add To Cart button with a quantity box.

    This search is done in a couple steps ...

    Go to the Tools ... Developers Tool Kit ...

    You see you are looking for the image:
    button_in_cart.gif

    so in the bottom input box enter:
    button_in_cart.gif

    and select Catalog then click SEARCH ...

    Now, you see the define for this image uses:
    BUTTON_IMAGE_IN_CART

    so in the bottom input box enter:
    BUTTON_IMAGE_IN_CART

    and select Catalog and click SEARCH ...

    This will show you all the files using this constant ...

    Now, look for the code you are trying to change, and you will see similar code with at least one <br /> which should lead you to where the doubles are created based on the code ... when in double, edit the code and change it to something like '<br />xxx' to see where the <br /><br /> is happening ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Apr 2010
    Posts
    43
    Plugin Contributions
    0

    Default Re: align Add To Cart button with a quantity box.

    Thanks a lot, Ajeh!
    Will try it tomorrow.
    I, of course, did it wrong with the tool.
    Again, thank you!

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: align Add To Cart button with a quantity box.

    Let us know how it works out for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  5. #5
    Join Date
    Apr 2010
    Posts
    43
    Plugin Contributions
    0

    Default Re: align Add To Cart button with a quantity box.

    Found it (finally), and changed.
    Don't think I would be able to do it without your advice as it is not immediately clear where those breaks come from, especially the second one...
    Thanks a lot!
    Last edited by line1; 18 Oct 2012 at 06:56 PM.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: align Add To Cart button with a quantity box.

    Thanks for the update that you were able to find this and fix it as you need it to work ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. v151 align attributes with add to cart button horizontally
    By Derek Bryant in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 2 Dec 2013, 09:06 AM
  2. Separating Quantity Box and Add to Cart button
    By k8ee in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Sep 2010, 03:53 PM
  3. Add to Cart button replaced by quantity box
    By jwebster8 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Aug 2010, 06:37 PM
  4. Aligning Quantity Box and Add to Cart Button
    By eyal8r in forum General Questions
    Replies: 14
    Last Post: 24 Feb 2010, 04:32 AM
  5. Only Add To Cart Button No Quantity Box
    By ryanp in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Jun 2006, 08:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg