Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2011
    Location
    Hong Kong
    Posts
    29
    Plugin Contributions
    1

    Default line up add to cart box and button

    In the template I use, the CartAdd contains the Add to Cart form field, the Add to Cart button and the AddThisButton (FB twitter etc).

    I want to line up these 3 to one line, but whatever I do, the add to cart form field stays on top of the other two.

    I cannot find where the layout of the box is controlled...

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: line up add to cart box and button

    A link to your site will help people help you ...

  3. #3
    Join Date
    Feb 2011
    Location
    Hong Kong
    Posts
    29
    Plugin Contributions
    1

    Default Re: line up add to cart box and button

    Sorry, my site is not live yet. we've been hacked lately, so I'm working offline on this. And currently zen-cart.com is being blocked by my local Chinese provider again, so I'm working through a proxy, which doesn't allow me to upload a picture here

    But the thing is: it is the same everywhere you look:
    Either with or without frame:
    ----------------------------------
    | Add to Cart: [1 ] |
    | [Add to cart] (button) |
    | [AddThis FB Twitter etc] |
    ---------------------------------

    What I want is:
    -----------------------------------------------------
    | [1 ] [Add to cart] [AddThis Fb Twitter etc] |
    -----------------------------------------------------
    ^box ^button ^button

    I know how to get rid of the text in front of the button, I used the developers tool kit to locate the proper language PHP file, copied that to a template specific folder and edited it.

    I also got the last two in one line. ([Add to cart][AddThis...] but cannot get the box in the same line.

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: line up add to cart box and button

    You can try adding the following to the bottom of /includes/templates/YOURTEMPLATE/css/stylesheet.css:

    Code:
    #cartAdd br { display: none; }
    #cartAdd input { float: left; }
    That instructs the browser to not display the <br /> in the cartAdd box and to float all inputs (the quantity and add_to_cart button) to the left.

    Without seeing your site, I can't help with the addThis button, but the solution would be similar (i.e. using float: left; in the CSS to float that element to line up with the add_to_cart button).

  5. #5
    Join Date
    Feb 2011
    Location
    Hong Kong
    Posts
    29
    Plugin Contributions
    1

    Default Re: line up add to cart box and button

    Yeah! great! it works perfectly. Thanks a lot!

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: line up add to cart box and button

    Glad I could help!

 

 

Similar Threads

  1. v151 Style Quantity Box and Add To Cart Button separately
    By k1ra in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 29 Nov 2013, 06:49 AM
  2. v151 Line up add to cart box and image on product info
    By barendfaber in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Nov 2013, 01:39 PM
  3. v150 Price and add to cart button to be in the line
    By deltaowen in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Jan 2013, 01:20 AM
  4. 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
  5. Aligning Quantity Box and Add to Cart Button
    By eyal8r in forum General Questions
    Replies: 14
    Last Post: 24 Feb 2010, 04:32 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR