Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default Customizing the Look of Shipping Estimator with CSS

    With CSS, there's a lot that can be done and I'm confident about what I can do, but... I'd like to find a way to get my shipping estimator a little more stylized to sort of "separate" FedEx and UPS. When the list comes up, it's just boring looking. I really want to enhance the shipping estimator by putting <div>'s with special background around each carrier (i.e. FedEx and UPS).

    After poking around the templates, I'm not sure my desired intent can even be done. I can manage the CSS part of it, but I'm not sure the templates can be altered to accommodate my vision. Does anyone have any tips for this? I've attached an image to help visualize my goal...



    Click image for larger version. 

Name:	shipping-estimator.jpg 
Views:	131 
Size:	41.4 KB 
ID:	10659

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

    Default Re: Customizing the Look of Shipping Estimator with CSS

    You could customize the:
    tpl_modules_shipping_estimator.php

    using your templates and overrides ...

    Then around line 100, add the code in RED so you have classes to work with in your stylesheet.css
    Code:
          for ($i=0, $n=sizeof($quotes); $i<$n; $i++) {
            $extra = $quotes[$i]['id'];
            if(sizeof($quotes[$i]['methods'])==1){
    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
    Aug 2008
    Location
    Southern California
    Posts
    129
    Plugin Contributions
    0

    Default Re: Customizing the Look of Shipping Estimator with CSS

    Ajeh, you rock! I added the code as you described, then used my Firefox Web Developer Tools to pinpoint DIV and class names on the shipping estimator. I created a couple images, added some CSS code and the layout is tons better! Visually, the two separate carrier types are easy to identify and easy on the eyes.

    Thanks so much. For anyone else, here's the CSS I used along with a snapshot of the finished and working modification:

    Code:
    #shippingEstimatorContent .fedexwebservices { background-color:#cdbca9; background-image:url(/images/fedex-mini.png); background-position:center right; background-repeat:no-repeat}
    #shippingEstimatorContent .ups { background-color:#e7c69f; background-image:url(/images/UPS-mini.png); background-position:center right; background-repeat:no-repeat}
    Click image for larger version. 

Name:	shipping-estimator-completed.jpg 
Views:	90 
Size:	30.7 KB 
ID:	10668
    Attached Images Attached Images  

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

    Default Re: Customizing the Look of Shipping Estimator with CSS

    Thanks for the update that this was able to work 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
    Oct 2007
    Posts
    63
    Plugin Contributions
    0

    Default Re: Customizing the Look of Shipping Estimator with CSS

    This thread has helped a lot and I've been searching but I can't find much on changing the layout of the shipping estimator. I want to make the table width smaller and remove the borders and possibly change the colors of some of the individual cells (maybe have the price cells white and the description cells grey). How could i do this?

 

 

Similar Threads

  1. v139f Re: Shipping Estimator is missing... anyone have a suggestion where to look?
    By osdparts in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 22 Nov 2012, 01:55 AM
  2. Replies: 0
    Last Post: 12 Jul 2012, 08:48 PM
  3. Problem with CSS and shipping estimator
    By JLA in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 6 Feb 2007, 03:41 AM
  4. Customizing the Shipping Estimator
    By DWDesigns in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 24 Aug 2006, 04:58 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