Results 1 to 8 of 8
  1. #1
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Coupon and shipping problems - shipping cost being calculated after coupon applied?

    Hello,

    I have run into an issue with a coupon and shipping. The issue is that the shipping cost is being calculated after the coupon is applied.

    Say an order was for 21.00 but the coupon was for $2.00

    Shipping for orders over $20 is 2.00 while
    shipping for orders under $20 is 4.00 .....

    so the customer is paying the $2.00 shipping but should be charged the $4.00 shipping.

    Here are my order_total modules:

    ot_coupon 280
    ot_insurance 500
    ot_shipping 200
    ot_subtotal 100
    ot_tax 300
    ot_total 999
    ot_tracking 501

    If I changed the ot_coupon to 99 would it bring the discount into the subtotal thus charging using the lower amount for the shipping calculation?

    Shrimp

  2. #2
    Join Date
    Mar 2008
    Location
    Cape Town & London (depends on the season)
    Posts
    2,975
    Plugin Contributions
    0

    Default Re: Coupon and shipping problems

    I discovered this issue some years ago on a site I no longer manage, and I did find a solution... I'll dig around and see if I have some notes somewhere (but don't hold your breath - I gave most of the files to the new webmaster).

  3. #3
    Join Date
    Jan 2005
    Location
    NY
    Posts
    149
    Plugin Contributions
    0

    Default Re: Coupon and shipping problems

    Any updates on this? I am having the exact same problem.

  4. #4
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Coupon and shipping problems

    Quote Originally Posted by pjb923 View Post
    Any updates on this? I am having the exact same problem.
    PJB,

    I tried changing the sort order of ot_coupon to be less than ot_shipping and that doesn't appear to be the fix. If anybody can help or give suggestions we would greatly appreciate it (Zen Cart team?).

    Shrimp

  5. #5
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,896
    Blog Entries
    2
    Plugin Contributions
    2

    Default Re: Coupon and shipping problems

    Hi,
    While I cannot see anything wrong initially with your settings, will test locally to see if the problem is a bug !

  6. #6
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Coupon and shipping problems

    Quote Originally Posted by wilt View Post
    Hi,
    While I cannot see anything wrong initially with your settings, will test locally to see if the problem is a bug !
    Most excellent!

    Thanks Wilt!

    Shrimp Gumbo

  7. #7
    Join Date
    Jun 2003
    Location
    Newcastle UK
    Posts
    2,896
    Blog Entries
    2
    Plugin Contributions
    2

    Default Re: Coupon and shipping problems - shipping cost being calculated after coupon applie

    Just a quick update.

    This is in fact a bug. In essence the table rate shipping module is using values from $_SESSION['cart'] to calculate the order value, before deciding which table rate to use.

    Unfortunately the checkout system uses the $order class to calculate sub-totals/discounts etc.

    I'm looking to see if there is a simple quick fix for this.

    Will let u know as soon as possible

  8. #8
    Join Date
    Jun 2007
    Location
    Texas, USA
    Posts
    1,400
    Plugin Contributions
    1

    Default Re: Coupon and shipping problems - shipping cost being calculated after coupon applie

    Quote Originally Posted by wilt View Post
    Just a quick update.

    This is in fact a bug. In essence the table rate shipping module is using values from $_SESSION['cart'] to calculate the order value, before deciding which table rate to use.

    Unfortunately the checkout system uses the $order class to calculate sub-totals/discounts etc.

    I'm looking to see if there is a simple quick fix for this.

    Will let u know as soon as possible

    Thanks Wilt,

    I think swguy has found a fix for it.... I think he is charging for it though.

    http://www.zen-cart.com/forum/showthread.php?t=101047

    Shrimp-Gumbo

 

 

Similar Threads

  1. Recalculate shipping after discount coupon applied
    By pjb923 in forum Built-in Shipping and Payment Modules
    Replies: 40
    Last Post: 6 Aug 2021, 07:41 PM
  2. coupon calculated after shipping
    By helpme in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 3
    Last Post: 28 Jul 2011, 12:49 PM
  3. Shipping cost not being applied on PayPal Express Checkout
    By jazzyman in forum PayPal Express Checkout support
    Replies: 1
    Last Post: 27 Apr 2011, 12:00 AM
  4. Recalculate shipping after coupon applied w/zone rates
    By cuda in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 22 Jan 2007, 03:59 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR