Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Display Shipping Cost

    I have been looking for a way to display the shipping cost on shopping cart page, I understand that shipping estimator will display the shipping fee but I want to add the shipping to the table under the Sub-total then add another line to display the actual total (sub-total+shipping). Since the US is the default country all the shipping cost will be displayed as US if the customer change the country then the total will change to reflect that.

    In the next step I want to display the sub-total, shipping and total in the header of the site. simillar to this site:
    http://www.business-supply.com/

  2. #2
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Display Shipping Cost

    Check out the SRiC link in my signature.

  3. #3
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: Display Shipping Cost

    Thanks Steven
    I noticed that a lot of people are asking for this. I am glad you find the time to code it. I will give it a try on my new site.
    It worked like a charme for the shopping cart page
    Last edited by CoolCarPartsOnline; 14 May 2009 at 12:35 AM.

  4. #4
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Display Shipping Cost

    You're welcome. If you have any issues at all, this is the support thread:
    http://www.zen-cart.com/forum/showthread.php?t=125817

  5. #5
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: Display Shipping Cost

    Here is another question for you. I want to display the sub-total, shipping and total in the header. So if the cart is empty it will show 0 for all the fields but when there is something in the cart it will display the total. Now i managed to display the cart total in the header when there is products in the cart and display "Shopping Cart Empty" when the cart is empty can I do the same for the shipping and total? Is it possible to add an if statement?

  6. #6
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: Display Shipping Cost

    I just thought of a way but I will need your feedback.

    I am thinking about creating an if statement to display:
    Shopping cart is empty
    sub-total: $0.00
    shipping: $0.00
    total: $0.00

    and once a customer add product I can display the result from your mod. I am looking at the sidebox code which part of the code will I need to copy in the if statement, also I want to style the result, what is the shortest way to do it. I want it to be displayed all the time so I will not care much about the admin control.

  7. #7
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Display Shipping Cost

    As a minimum, you will need:

    lines 51-66 to get the currency symbol

    lines 68-69 to include the logic

    lines 71-84 to work out the shipping rate

    line 114 to get the sub-total

    lines 116-120 to work out the total


    Then it's up to you to style and display the following variables:

    $cartShowTotal
    $sric_shipping
    $sric_total

    You will need to display $currency_symbol just before displaying $sric_total

  8. #8
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Display Shipping Cost

    PHP Code:
    if ($_SESSION['cart']->count_contents() == 0) {
    echo 
    "Shopping cart is empty";
    echo 
    "<br />";
    echo 
    "sub-total: $0.00";
    echo 
    "<br />";
    echo 
    "shipping: $0.00";
    echo 
    "<br />";
    echo 
    "total: $0.00";
    } else {
    //code from above post


  9. #9
    Join Date
    Mar 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: Display Shipping Cost

    is there a way to show the shipping rate in order and invoice?

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

    Default Re: Display Shipping Cost

    See your other post on same subject ... just post a question once and not in multiple locations ... if you still need an answer, add on to your original thread ...
    http://www.zen-cart.com/forum/showth...963#post733963
    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!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Help!!! Why the shipping cost display ZERO?
    By topbuy in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 30 Jul 2012, 02:40 PM
  2. How to not display the shipping cost under shipping method?
    By welldone in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 17 Nov 2010, 09:03 AM
  3. Item Cost and Actual Shipping Cost?
    By glovesurgeon in forum Setting Up Specials and SaleMaker
    Replies: 2
    Last Post: 12 May 2009, 03:39 AM
  4. Multiple Shipping cost for different order cost
    By noobz in forum Addon Shipping Modules
    Replies: 3
    Last Post: 5 Jul 2008, 05:12 PM
  5. Display Shipping Cost On The First Checkout Page
    By mattys in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 1 May 2007, 03:43 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