Page 1 of 4 123 ... LastLast
Results 1 to 10 of 31
  1. #1
    Join Date
    Apr 2008
    Posts
    30
    Plugin Contributions
    0

    Default How to move the QTY box inlne with two attributes?

    I want to move the QTY box from the add to cart area to a new location.

    I don't want to simply move it up or down, I want to place it specifically between two dropdown attributes that reside inline on the same line.

    Not sure where to start or even what info you might need to assist me,

    Thanks.

    J.

    Zen Cart 1.3.8a
    Database Patch Level: 1.3.8

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: How to move the QTY box inlne with two attributes?

    Ja,
    click on the Tutorials/FAQ at the top of this page and search for Move Add to Cart

  3. #3
    Join Date
    Apr 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to move the QTY box inlne with two attributes?

    Quote Originally Posted by haredo View Post
    Ja,
    click on the Tutorials/FAQ at the top of this page and search for Move Add to Cart
    I did that. That's why I mentioned I don't want to simply move it up or down on the page.

    To integrate it in between two attributes is not going to be easy. We tried using positioning in CSS, but it displays different in (nearly) every browser.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to move the QTY box inlne with two attributes?

    A link to see your site would make it more likely that we could give good advice for you.

    Positioning it in the code is going to be a really tough job.

  5. #5
    Join Date
    Apr 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to move the QTY box inlne with two attributes?

    Quote Originally Posted by gjh42 View Post
    A link to see your site would make it more likely that we could give good advice for you.

    Positioning it in the code is going to be a really tough job.
    Oh thanks! I would really appreciate that.

    Here's the link:
    http://sawickiandson.com/store/index...&products_id=1

    Notice how the Qty[50] box is in the red text on IE? We'll it is perfect in Chrome

    Here is the CSS we use to move that box around:

    #cartAdd {
    float: right;
    text-align: center;
    margin: 1em;
    // border: 1px solid #000000;
    padding: 1em;
    }

    #cartAdd.box-1 {
    float: left;
    font-weight: bold;
    position: relative;
    left: 140px;
    bottom: 693px;
    }

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to move the QTY box inlne with two attributes?

    Code:
    #productGeneral {position: relative;}
    
    #cartAdd.box-1 {
        position: absolute;
        top: 331px;
        left: 154px;
        }
    
    #cartAdd.box-1 input {
        position: relative;
        top: 6px;
        }
    Positioning relative to an element dozens of lines down the page from the desired location is risky. Absolute positioning from the top of the container leaves less room for browser rendering differences to creep in.

    On another subject, I see you have something that names and positions attributes individually. It's not Flexible Attributes; what is it and where did it come from? Just curious.

  7. #7
    Join Date
    Apr 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to move the QTY box inlne with two attributes?

    Quote Originally Posted by gjh42 View Post
    Code:
    #productGeneral {position: relative;}
    
    #cartAdd.box-1 {
        position: absolute;
        top: 331px;
        left: 154px;
        }
    
    #cartAdd.box-1 input {
        position: relative;
        top: 6px;
        }
    Positioning relative to an element dozens of lines down the page from the desired location is risky. Absolute positioning from the top of the container leaves less room for browser rendering differences to creep in.

    On another subject, I see you have something that names and positions attributes individually. It's not Flexible Attributes; what is it and where did it come from? Just curious.
    I'll dig that up for you. In the mean time, are you saying I should move that ad to cart box up the page to the same line I want it on and then move it left and right into position? If I do that, won't I have the same issue when I try to push the Buy Now button back to the bottom?

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to move the QTY box inlne with two attributes?

    No, I'm saying that just adding that code to the bottom of your stylesheet will make the Qty box position correctly (at least in Firefox; I can't test it in other browsers on your site).

    You should ideally replace the positioning code you posted with this, to eliminate extra bloat in the stylesheet.

    Note - the box was also in the red text in Firefox - a rare occurrence of FF & IE behaving the same relative to another modern browser:)

  9. #9
    Join Date
    Apr 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: How to move the QTY box inlne with two attributes?

    Quote Originally Posted by gjh42 View Post
    No, I'm saying that just adding that code to the bottom of your stylesheet will make the Qty box position correctly (at least in Firefox; I can't test it in other browsers on your site).

    You should ideally replace the positioning code you posted with this, to eliminate extra bloat in the stylesheet.

    Note - the box was also in the red text in Firefox - a rare occurrence of FF & IE behaving the same relative to another modern browser:)
    That CSS code I posted above? It is in my stylesheet.css, not at the bottom, but it is in there.

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: How to move the QTY box inlne with two attributes?

    I know; you need to replace the #cartAdd.box-1 rule of that with the rules I posted.

 

 
Page 1 of 4 123 ... LastLast

Similar Threads

  1. v139h Display Attributes, Qty Discounts & Qty Box in a Table
    By pool27 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 May 2014, 11:49 AM
  2. Display Attributes/Options, Qty Discounts & Qty Box in Matrix
    By teaj in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 Apr 2011, 02:59 PM
  3. Move qty box to the left of price and remove <br>
    By Three Sisters in forum Templates, Stylesheets, Page Layout
    Replies: 24
    Last Post: 12 Sep 2009, 11:30 PM
  4. How To Move Add To Cart Box with attributes?
    By flyteline in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Aug 2009, 01:52 AM
  5. How do I move the qty box/buy now button etc to its own column in product listing?
    By b3motorsports in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 11 Feb 2008, 07:48 AM

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