Results 1 to 10 of 52

Threaded View

  1. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,682
    Plugin Contributions
    11

    Default Re: Responsive Classic (built in to Zen Cart v1.5.5) [Support Thread]

    Kudos to all It's great to see things moving the way they are.

    I have just a few things to suggest you take a look at. The new extension for chrome browser (Responsive Web Design Tester ) allows me to see the code better than anything I've found before. What I see as a minor problem in regular mode has to do with the product info settings in three stylesheets. #pinfo-right and #cart-box or the two IDs that start us down the road to change.

    It all starts with a difference in the stylesheet between the two IDs, their width, and their padding. The standard stylesheet.css shows around line 344
    PHP Code:
    #pinfo-right{float:right;width:55%;padding:20px 0 0 0;} 
    The problem is that this setting doesn't allow the #pinfo-right to follow the #cart-box properly. My fix is to change the line 344 code to
    PHP Code:
    #pinfo-right{float:right;width:52.5%;padding:1em;} 
    This makes the two play well together with the desktop/laptop view.

    However, now that we've messed with the stylesheet.css, it requires that the responsive_mobile and responsive_tablet stylesheets be modified next. Otherwise, we get some strange looks.

    First the responsive_mobile.
    Lines 143 and 144
    PHP Code:
    #cart-box{width:50%;float:right;padding:15px 0;margin-bottom:2em;}
    #pinfo-right{float:left;width:49%;} 
    get change to
    PHP Code:
    #cart-box{width:49%;float:right;margin-bottom:2em;}
    #pinfo-right{float:right;width:49%;} 
    Lines 371 and 372
    PHP Code:
    #cart-box{width:100%;padding:15px 0;margin-bottom:2em;}
    #pinfo-right{width:100%;} 
    get changed to
    PHP Code:
    #cart-box{padding:15px 0;margin-bottom:2em;}
    #pinfo-right{padding: 15px 0;} 
    This fixes both the landscape and portrait "look" for mobile phones.

    Then comes responsive_tablet.
    Line 74
    PHP Code:
    #cart-box{width:51.5%;} 
    becomes
    PHP Code:
    /*#cart-box{width:51.5%;}*/ 
    commenting out the un-required call.
    Lines230-235
    PHP Code:
    #pinfo-right{float:left;width:49%;}
    #pinfo-left{float:none;}
    #pinfo-left{width:100%;}
    #productAttributes{width:90%;margin:0 auto;}.wrapperAttribsOptions input[type=text]{width:75%;}
    #cart-box{padding:15px 0;margin-bottom:30px;} 
    are changed to
    PHP Code:
    #pinfo-right{float:right;width:50%;}
    /*#pinfo-left{float:none;}
    #pinfo-left{width:100%;}*/
    #productAttributes{width:90%;margin:0 auto;}.wrapperAttribsOptions input[type=text]{width:75%;}
    /*#cart-box{padding:15px 0;margin-bottom:30px;}*/ 
    as a lot of the portrait calls were repeats of or in opposition to other stylesheet calls.

    This may look like at lot was incorrect BUT, truth was that the original calls in the stylesheet.css caused the "trickle-down" glitches.

    Hope this helps someone out there. Sure is easier to work with changes with the way it's set up in 1.5.5!
    Last edited by dbltoe; 20 Jan 2016 at 01:43 AM.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

 

 

Similar Threads

  1. Stock by Attributes 5.0 Beta (for v1.5.0)
    By creinold in forum All Other Contributions/Addons
    Replies: 364
    Last Post: 15 Mar 2017, 11:13 PM
  2. v154 ZCA Responsive CSS Template Framework (BETA)
    By rbarbour in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 29 Mar 2016, 08:49 PM
  3. v155 [Closed] FEEDBACK ON BETA of v1.5.5
    By DrByte in forum Bug Reports
    Replies: 460
    Last Post: 17 Mar 2016, 08:49 PM
  4. Community feedback invited for v155-beta [now closed]
    By DrByte in forum Zen Cart Release Announcements
    Replies: 1
    Last Post: 11 Feb 2016, 01:38 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