Jump to content


Corporate Sponsors


Latest News: (loading..)

Issue information

  • #000420

  • 0 - None Assigned

  • New

  • 2.3.1

  • -


Issue Confirmations

  • Yes (0)No (0)
Photo

Checkout Shipping Free Carriage Over Certain Amount

Posted by Freeman on 03 February 2012, 19:46

Hi There,
not sure if this is also affecting 2.3.1 , if someone wanna try that'll be great.
ISSUE
If i select with the standard OT_SHIPPING order total module and set up to agree a free carriage for people who spend more than XXX the amount is being calculated INCLUDING the carriage cost and not EXCLUDING it.
Example scenario:
Free carriage over 100$
Flat shipping rate 10$
Goods Value 91$
The carriage will be given as FREE (it sums 91+10 = 101)
Proposed Fix

-Inside catalog/checkout_shipping.php

Change as below:
----------------------------START----------

$free_shipping = false;
//Fix to calculate the order total excluding carriage cost
// if ( ($pass == true) && ($order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) {
$free_shipping = true;

------------END-----------------

Hope this helps,
Regards
Fabrizio

Thanks Freeman,

I spent 2 days trying to work that one out - yes I'm still building. There is another problem associated with this that throws you off the scent. Without your fix if you go through to "Order Confirmation" then click back to "Delivery Information" using the bottom bar link the charges re-appear. Go through to "Order Confirmation" again then click back to "Delivery Information" and the problem is there again. It flips from one state to another each time you click to go back.

Installed your fix and it works perfect every time. Searched everywhere for this fix so thanks ... actually I thought it was something I did to the code somewhere. Makes me wonder though why no one else has come across it. I know some people actually try to make money out of shipping and I guess that's why.


Hi again,

Problem came back ... but I believe it's not shipping cost but tax ... after testing various tax rates.

If someone has a fix for that it would be great.

TIA.






0 user(s) are reading this issue

0 members, 0 guests, 0 anonymous users