Hi there,
I have set up a flat rate shipping fee of £7 and free shipping which becomes available when the order reaches £59.
In checkout step 2 (when the order reaches £59) under shipping method it has both methods available, both the free and the flat rate. Is there any way to remove the flat rate when free becomes available as it really doesn't need to be there?
Thanks in advance
I have set up a flat rate shipping fee of £7 and free shipping which becomes available when the order reaches £59.
In checkout step 2 (when the order reaches £59) under shipping method it has both methods available, both the free and the flat rate. Is there any way to remove the flat rate when free becomes available as it really doesn't need to be there?
Thanks in advance
Last edited by JM6891 on Fri Jul 08, 2011 9:06 pm, edited 1 time in total.
Looks to me like a bug?
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
Good thing we consider you blind. No bug. Just how it works. Welcome to OpenCart i2paqi2Paq wrote:Looks to me like a bug?
This happens because shipping modules are all asynchronous and there is no conditional manager to handle shipping and payment.
The quick way for now would be to add logic to the flat rate code that simply says "if total > $59 then disable yourself"
1. EDIT: catalog/model/shipping/flat.php
2. FIND:
Code: Select all
if ($status) {
Code: Select all
if ((float)$this->cart->getTotal() >= 59) {
$status = false;
}
As others have mentioned each time someone new creates another new thread on this very topic, it is a very handy marketing tool to show the customer just how much the shipping charge would have been if the store wasn't being so generous as to forgive it.
Please use proper English at all times, so that all members may understand you.
I've misread the question by the TS, looking at my own store it works the same.Qphoria wrote:Good thing we consider you blind. No bug. Just how it works. Welcome to OpenCart i2paqi2Paq wrote:Looks to me like a bug?
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
The only change I'd make is not to hard-code the amount...
Code: Select all
if ((float)$this->cart->getTotal() >= $this->config->get('free_total')) {
$status = false;
}
komodosp is right, that's the perfect solution. I used vQmod like this:
Code: Select all
<file name="catalog/model/shipping/flat.php">
<operation>
<search position="before"><![CDATA[
if ($status) {
]]></search>
<add><![CDATA[
if ((float)$this->cart->getTotal() >= $this->config->get('free_total')) {
$status = false;
}
]]></add>
</operation>
</file>
This article had code that worked for me
http://www.opencartnews.com/tips/how-to ... is-active/
Basically find anywhere that has this code
and replace with
For me it was in 3 places including pp_express (which was not covered in the article linked to)
http://www.opencartnews.com/tips/how-to ... is-active/
Basically find anywhere that has this code
Code: Select all
$this->session->data['shipping_methods'] = $quote_data;
Code: Select all
if (isset($quote_data['free'])) {
$free_only['free'] = $quote_data['free'];
$quote_data = $free_only;
}
$this->session->data['shipping_methods'] = $quote_data;
Glad my tutorial helped you. In case that link ever goes down, I also have the tutorial written here:
http://www.opencartx.com/tutorials#show ... e-shipping
http://www.opencartx.com/tutorials#show ... e-shipping
Can I ask a simply question?
Why this simple modification not comes to the core ? (of course I mean the core of new Opencart )
None admin from Opencart cant add such small modifications that make our life easier ?
It will be good some coders from Opencart will watch the posts at the forum .
I find it silly to have flat rate if there is free shipping .
Thanks
Why this simple modification not comes to the core ? (of course I mean the core of new Opencart )
None admin from Opencart cant add such small modifications that make our life easier ?
It will be good some coders from Opencart will watch the posts at the forum .
I find it silly to have flat rate if there is free shipping .
Thanks
I want to hide Country Zone Shipping Rate when FREE SHIPPING is available and set to certain amount during checkout process in delivery method.
I want to hide Country Zone Shipping Rate when amount is equal to 150 or greater than 150. When amount is equal to or greater than 150 i want to display Free Shipping only.Please solve my issue.Country Zone Shipping is not a standard shipping method in OpenCart, so you should contact the developer for assistance with the right code edit. You can point them to this topic if they do not know how to do the edit themselves.Madhavi wrote:I want to hide Country Zone Shipping Rate when amount is equal to 150 or greater than 150. When amount is equal to or greater than 150 i want to display Free Shipping only.Please solve my issue.
If they're unwilling or unable to help, you could get an extension like Total-Based Shipping, which lets you set total-based rates for different geo zones / countries, so you could make your rates only appear in the circumstances you want them. If you need something more powerful than that, Formula-Based Shipping can do the same thing, and has lots of additional rule types you can use to restrict the charges.
Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.
Who is online
Users browsing this forum: No registered users and 155 guests