Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 31
  1. #11
    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
    I know; you need to replace the #cartAdd.box-1 rule of that with the rules I posted.
    Darn, I didn't even notice you changed it. I'll drop it in right now and see what happens.

  2. #12
    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
    I know; you need to replace the #cartAdd.box-1 rule of that with the rules I posted.
    Very nice! Thanks!

    http://sawickiandson.com/store/index...&products_id=1

  3. #13
    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

    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 beleive this is it.

    /includes/templates/sas/templates/tpl_modules_attributes.php

    near line 67

    Code:
    <div class="wrapperAttribsOptions optionsID-<?php echo $options_id[$i]; ?>" id="attributeBox-<?php echo $i ?>">
    <h4 class="optionName"><?php echo $options_name[$i]; ?></h4>
    Can't remember what it was before we added the extra code. You can compare it to yours.

    And then we address them like this in CSS

    Code:
    .wrapperAttribsOptions{
    border:1px transparent solid;
    /*width:30em;
    height:5em;*/
    float:left;
    }
    /*
    #attributeBox-0,#attributeBox-1,#attributeBox-2,#attributeBox-3,#attributeBox-4,#attributeBox-5,#attributeBox-6, #attributeBox-7,{
    width:5em;
    }
    */
    #attributeBox-1 label, #attributeBox-2 label, #attributeBox-3 input, #attributeBox-3 label {
    float: left;
    }
    
    #attributeBox-1 {
    visibility:hidden;
    }
    
    #attributeBox-2, #attributeBox-3 {
     width: 130px;
    }
    
    #attributeBox-2 {
    clear: both;
    }
    
    #attributeBox-3 {
    margin-left: 150px;
    }
    
    .optionsID-16, .optionsID-17{
    width: 49%;
    }
    
    .optionsID-10 {
    width:250px;
    font-weight:bold;
    }
    
    .optionsID-11 {
    color: red;
    margin-bottom: 20px}
    
    .optionsID-14 {
    font-weight:bold;
    }
    
    .optionsID-20 {
    margin-top:37px;
    width:200px;
    }
    
    .optionsID-20 h4.opotionName {
    float:right;
    }
    
    .optionsID-20 div {
    float:left;
    }
    The credit goes to NICCOL, a member here. I was reading a thread where he was walking someone through some changes.

    Here's the thread: http://www.zen-cart.com/forum/showth...ghlight=niccol

    I took his advice for my earlier problem and it opened up a whole new world of manipulation!

  4. #14
    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 JasGot View Post
    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?
    Well, that looks good in IE, but not Chrome. Humph!

  5. #15
    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 don't have Chrome, so can't test in that. There are two possibilities: change the dimensions to ems to perhaps account for browser differences ; or add a wrapper div around just the attributes module and the add to cart box to give a closer base point for positioning.
    Code:
    /*this is still relative to the top*/
    #cartAdd.box-1 {
        position: absolute;
        top: 27.6em;
        left: 13.0em;
        }
    
    #cartAdd.box-1 input {
        position: relative;
        top: 6px;
        }
    So what you have is very similar to Flexible Attributes, with different details.
    I thought maybe the javascript at the top of the attributes module was related to the positioning, but it's not.

  6. #16
    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
    I don't have Chrome, so can't test in that. There are two possibilities: change the dimensions to ems to perhaps account for browser differences ; or add a wrapper div around just the attributes module and the add to cart box to give a closer base point for positioning.
    Code:
    /*this is still relative to the top*/
    #cartAdd.box-1 {
        position: absolute;
        top: 27.6em;
        left: 13.0em;
        }
    
    #cartAdd.box-1 input {
        position: relative;
        top: 6px;
        }
    So what you have is very similar to Flexible Attributes, with different details.
    I thought maybe the javascript at the top of the attributes module was related to the positioning, but it's not.
    You're good! That worked! i had to tweak the position a bit, but the position is exactly the same in IE and Chrome. And because Chrome and Safari use the same rendering engine, it's good there too!

    Thanks a bunch!

  7. #17
    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?

    Hmm... it's now 2.6em too high in Firefox, and covers some of the text above it. Don'cha love cross-browser testing & synchronization? :)

  8. #18
    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
    Hmm... it's now 2.6em too high in Firefox, and covers some of the text above it. Don'cha love cross-browser testing & synchronization? :)
    Ugh! No! 2.6ems is a LOT!

    Do they anchor to different places for the position:absolute?

  9. #19
    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 JasGot View Post
    Ugh! No! 2.6ems is a LOT!

    Do they anchor to different places for the position:absolute?
    Well. it looked great at home last night, it was the same in IE and Chrome. At work this morning, I see what you see.

  10. #20
    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 JasGot View Post
    Well. it looked great at home last night, it was the same in IE and Chrome. At work this morning, I see what you see.
    Is there a way to make inline <li>'s work?

 

 
Page 2 of 4 FirstFirst 1234 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