Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Sep 2007
    Posts
    12
    Plugin Contributions
    0

    help question Flat Rate Shipping / Display Shipping In Cart

    When the shopping cart contents are displayed, I'd like to show something like:

    Sub-Total: $49.94
    Shipping Estimate: $8.90
    Total: $58.84


    While...
    1. Not logged in
    2. On cart screen with no pop up needed
    3. Only shipping to one country (US)
    4. State not needed given flat rate.

    I offer flat rate such as:
    25:5.90,35:7.90,45:8.90,50:0.00

    I also have the "Free Shipping Option" on for orders $50 and over.

    I've played around with the two files
    /catalog/includes/modules/shipping_estimator.php
    /catalog/includes/template/custom/templates/tpl_modules_main_product_image.php

    But most things I do seems to break the program.

    It would be awesome if I could also indicate something like:

    Sub-Total: $49.94
    Shipping Estimate: $8.90
    Total: $58.84

    Add just $0.06 more to your cart and receive free shipping!


    I'd appreciate any thoughts.

    Thanks in advance!
    Last edited by RogerW37; 3 Oct 2007 at 12:30 AM.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Flat Rate Shipping / Display Shipping In Cart

    You would have to change the location/zone checking things as this happens even if you do not need it. So by default to do shipping fees one has to be logged in to provide location or enter it
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2007
    Posts
    12
    Plugin Contributions
    0

    application error Re: Flat Rate Shipping / Display Shipping In Cart

    CORRECTION:



    I've played around with the two files
    /catalog/includes/modules/shipping_estimator.php
    /catalog/includes/template/custom/templates/tpl_modules_shipping_estimator.php

    Not the tpl_modules_main_product_image.php as originally posted.

  4. #4
    Join Date
    Sep 2007
    Posts
    12
    Plugin Contributions
    0

    help question Re: Flat Rate Shipping / Display Shipping In Cart

    Thanks Kobra for your reply.

    I'm using the estimator so a person doesn't have to be logged in to generate the estimated shipping.

    Sub-Total: $49.94
    Shipping Estimate: $8.90
    Total: $58.84

    Add just $0.06 more to your cart and receive free shipping!


    Thoughts anyone?

  5. #5
    Join Date
    Sep 2007
    Posts
    12
    Plugin Contributions
    0

    Idea or Suggestion Re: Flat Rate Shipping / Display Shipping In Cart

    I now have this:

    Sub-Total: $52.93

    FREE Ground Shipping for All Orders Over $50.00.


    Which I edited the
    catalog/includes/templates/custom/templates/tpl_shopping_cart_default.php
    as
    Code:
    <!-- Finished loop through all products /-->
         <tr><td colspan=7 align="right" class="rtp"><span style="color:#000000"><?php echo SUB_TITLE_SUB_TOTAL; ?></span> <span class="bigger"><?php echo $cartShowTotal; ?></span>
    <br><br>FREE Ground Shipping for All Orders Over $50.00.</td></tr>
    But that's just hard coded info and not dynamic as it should be.

    I was still hoping that, given I have a flat rate and only shipping to one country, the cart would generate the shipping info such as:

    Sub-Total: $49.94
    Shipping Estimate: $8.90
    Total: $58.84

    Add just $0.06 more to your cart and receive free shipping!

  6. #6
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Flat Rate Shipping / Display Shipping In Cart

    The default script does not do this and to get what you desire you will need some custom code to check for order total and do the rest of what you want.
    You can look at what is there in includes/classes/shopping_cart.php or maybe one of the shipping modules
    Zen-Venom Get Bitten

  7. #7
    Join Date
    Sep 2007
    Posts
    12
    Plugin Contributions
    0

    Idea or Suggestion Re: Flat Rate Shipping / Display Shipping In Cart

    Quote Originally Posted by kobra View Post
    The default script does not do this and to get what you desire you will need some custom code to check for order total and do the rest of what you want.
    You can look at what is there in includes/classes/shopping_cart.php or maybe one of the shipping modules
    Thus why I'm posting in order to obtain help in this regards from someone that's done this before or might be able to shed specific light on this subject.

    I thought others have done this before me and would be a matter of a few code changes where I could get specific help.

    I couldn't find any help in other online posts in the forum nor in the downloads.

    I've attempted adjusting the code in several files, but I seem to be better at breaking the cart than anything else.

    So if anyone has any specific ideas, please let me know and I'll jump right on top of trying to get this working.

    Thanks!

  8. #8
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Flat Rate Shipping / Display Shipping In Cart

    While not very explanatory have you checked the FAQ https://www.zen-cart.com/tutorials/index.php?article=68
    Zen-Venom Get Bitten

  9. #9
    Join Date
    Sep 2007
    Posts
    12
    Plugin Contributions
    0

    Idea or Suggestion Re: Flat Rate Shipping / Display Shipping In Cart

    Quote Originally Posted by kobra View Post
    While not very explanatory have you checked the FAQ https://www.zen-cart.com/tutorials/index.php?article=68
    Thanks Cobra, but that is using the admin and adjusting the module to add free shipping which doesn't apply to this scenerio given the module already contains the code to make these changes within the admin.

    What I'm asking for are changes that Zen doesn't currently have any code for internally, but can be programmed.

    I thought I might get some feedback on this issue from those that have "been here and done this before" given most online carts today provide this feature or something similar.

  10. #10
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Flat Rate Shipping / Display Shipping In Cart

    What I'm asking for are changes that Zen doesn't currently have any code for internally, but can be programmed.
    Yes, and usually but not always, these will be in the contributed downloads area if and only if they have been contributed
    Zen-Venom Get Bitten

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. flat shipping rate not showing on cart page
    By ebaobao in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 10 Mar 2013, 12:26 AM
  2. Disable Flat Rate Shipping When Total Items in Cart >= 5
    By schoolboy in forum General Questions
    Replies: 7
    Last Post: 9 Jun 2011, 03:14 AM
  3. Flat Rate Shipping doesn't update to shopping cart
    By mrbandit in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 8 Apr 2011, 06:54 PM
  4. Rate Table Shipping plus Flat Rate Shipping
    By JRayfield in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 28 Dec 2008, 12:23 AM
  5. Display Flat Rate Shipping Price on Main Page
    By focus360 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 5 Jan 2007, 11:29 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