Results 1 to 10 of 13

Hybrid View

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

    Default Re: Display Shipping Cost

    Check out the SRiC link in my signature.

  2. #2
    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.

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

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

  5. #5
    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.

  6. #6
    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

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


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

 

 

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