Page 1 of 1

Free Shipping and Flat Rate Shipping issue

Posted: Fri Mar 25, 2011 1:09 am
by stueynet
So if you set flat rate shipping store-wide, and you add free shipping for orders of $xxx, it still gives the option to the user to select either the flat rate shipping or the free one. Is there a way to just force it to be Free if Free is an option? I don't think people will choose to pay for shipping if Free shipping is an option.

Re: Free Shipping and Flat Rate Shipping issue

Posted: Fri Mar 25, 2011 9:04 am
by openmycart.com
if You set flat rate as shipping store wide/global and also You set free shipping for orders of $xxx you still able to use both, sometime free shipping set base on your location, so in this case You should not set the shipping store wide to flat rate.

Re: Free Shipping and Flat Rate Shipping issue

Posted: Fri Mar 25, 2011 11:40 am
by Qphoria
Read this to understand the 2 issues... and upload the patches to fix 1 of the problems
http://forum.opencart.com/viewtopic.php?f=24&t=23895

Re: Free Shipping and Flat Rate Shipping issue

Posted: Mon Apr 04, 2011 9:26 am
by blingze
Q -
I am officially confused. I too have my store setup for a flat rate shipping w/ free shipping over $x dollars - for all products. It is still selecting the flat rate shipping when I get to the checkout even though my order should qualify for free shipping. I tried installing the patches you referenced but it made no difference. Am I missing something else? Seems like it should be easy....order is over $x so don't show flat rate option.

Re: Free Shipping and Flat Rate Shipping issue

Posted: Mon Apr 04, 2011 10:07 am
by mberlant
Does Free Shipping have greater precedence (lower Sort Order number) than Flat Rate Shipping in Admin > Extensions > Shipping? This won't remove the option for a customer to choose to pay for free shipping, but at least it will guide that customer in the right direction.

Re: Free Shipping and Flat Rate Shipping issue

Posted: Tue Nov 22, 2011 2:25 am
by victor47005
hello there!
is there any solution on this?

i need to "hide" de flat rate shipping from user if the shipping is free.
thanks so much!!

Re: Free Shipping and Flat Rate Shipping issue

Posted: Tue Nov 22, 2011 10:25 pm
by Johnathan
victor47005 wrote:hello there!
is there any solution on this?

i need to "hide" de flat rate shipping from user if the shipping is free.
thanks so much!!
The common reply to this is: why do you want to hide from your customer the amount you're giving them for free? Psychologically, it's better for people to be able to view the value they're getting.

Re: Free Shipping and Flat Rate Shipping issue

Posted: Tue Nov 29, 2011 7:45 pm
by barakka
I had the same problem, what you need to do is modify the flat rate module so that if the "free shipping threshold" has been exceeded the flat shipping is disabled.

In /catalog/model/shippping/flat.php find:

Code: Select all

	$method_data = array();
Insert this on the next line:

Code: Select all

		if ($this->cart->getSubTotal() > $this->config->get('free_total')) {
			$status = FALSE;
		}	

Or if you use VQMOD use the attached file

HTH :)
Johnathan wrote:The common reply to this is: why do you want to hide from your customer the amount you're giving them for free? Psychologically, it's better for people to be able to view the value they're getting.
Because customers will still click the flat rate shipping option when free is available, then complain that they didn't get free shipping, then the store needs to do a credit card refund (as the full funds including shipping have been taken) which takes time (costs money), and makes the store look amateur.

Re: Free Shipping and Flat Rate Shipping issue

Posted: Mon Apr 30, 2012 4:22 am
by URAGANU
It works like a charm and I don't know why they didn't implement this into the latest version.

Thanks a lot.

barakka wrote:I had the same problem, what you need to do is modify the flat rate module so that if the "free shipping threshold" has been exceeded the flat shipping is disabled.

In /catalog/model/shippping/flat.php find:

Code: Select all

	$method_data = array();
Insert this on the next line:

Code: Select all

		if ($this->cart->getSubTotal() > $this->config->get('free_total')) {
			$status = FALSE;
		}	

Or if you use VQMOD use the attached file

HTH :)

.

Re: Free Shipping and Flat Rate Shipping issue

Posted: Wed Mar 06, 2013 1:34 pm
by tooheys
Hi,

Is there a way that i can choose free shipping after the order is placed?

I have flat rate shipping only. Which is the only option through checkout, no problem.

But if i want to make that order free shipping in the admin -> orders there is no option for free shipping in the dropdown in totals tab..

Because i have set the "Sub-Total amount needed before the free shipping module becomes available." to a massive amount, it does not show up in the admin.
i dont want free shipping to be an option in the checkout.

Any ideas?

Thanks

Re: Free Shipping and Flat Rate Shipping issue

Posted: Wed Mar 06, 2013 9:06 pm
by Johnathan
Temporarily change the sub-total to something just under the order amount, apply it, and then change the sub-total back.

Re: Free Shipping and Flat Rate Shipping issue

Posted: Tue Jun 11, 2013 12:53 pm
by kromanluv
barakka wrote:I had the same problem, what you need to do is modify the flat rate module so that if the "free shipping threshold" has been exceeded the flat shipping is disabled.

In /catalog/model/shippping/flat.php find:

Code: Select all

	$method_data = array();
Insert this on the next line:

Code: Select all

		if ($this->cart->getSubTotal() > $this->config->get('free_total')) {
			$status = FALSE;
		}	

Or if you use VQMOD use the attached file

HTH :)
Johnathan wrote:The common reply to this is: why do you want to hide from your customer the amount you're giving them for free? Psychologically, it's better for people to be able to view the value they're getting.
Because customers will still click the flat rate shipping option when free is available, then complain that they didn't get free shipping, then the store needs to do a credit card refund (as the full funds including shipping have been taken) which takes time (costs money), and makes the store look amateur.
Hi,

Can I apply this same code for Weight Based shipping also instead of Flat Rate?

Re: Free Shipping and Flat Rate Shipping issue

Posted: Sat Jan 11, 2014 1:06 am
by Mansour
Pls, can you guy's tel me this method is right??? To remove shipping base on Weight?

Code: Select all

<modification>         
  <id>Remove the free rate when Weight becomes available.</id>         
   ...............
   ...............  
<file name="catalog/model/shipping/free.php">
      <operation>
         <search position="before"><![CDATA[
            if ($status) {
         ]]></search>
         <add><![CDATA[
           if ((float)$this->cart->getTotal() > xx == ($this->cart->getWeight() < x )) {
               $status = false;
            }
         ]]></add>
      </operation>
   </file>
</modification>
=========================
I will send packeg til 5 kilo for free if they buy $50 or more.
But
If x buy $49 and the weight is < 5 kilo he has to pay for shipping.

I use Free shipping & shipping base on Weight.

My Settings:

Free Shipping: $50
Order = 1

shipping base on Weight.
5:5.00, 10:6.00, 15:8.00....
Order = 1

When the SubTotal is $55 and the weight < 5

I get 2 option
1-Free shipping 0.00
2-weight shipping $5

How can this?

Many thanks if you can help me.... ??? ???

Re: Free Shipping and Flat Rate Shipping issue

Posted: Fri Feb 28, 2014 6:16 pm
by jeevanism
barakka wrote:I had the same problem, what you need to do is modify the flat rate module so that if the "free shipping threshold" has been exceeded the flat shipping is disabled.

In /catalog/model/shippping/flat.php find:

Code: Select all

	$method_data = array();
Insert this on the next line:

Code: Select all

		if ($this->cart->getSubTotal() > $this->config->get('free_total')) {
			$status = FALSE;
		}	

Or if you use VQMOD use the attached file

You saved my day.. thank you

Re: Free Shipping and Flat Rate Shipping issue

Posted: Sun Mar 01, 2015 12:21 pm
by sunsys
barakka wrote:I had the same problem, what you need to do is modify the flat rate module so that if the "free shipping threshold" has been exceeded the flat shipping is disabled.

In /catalog/model/shippping/flat.php find:

Code: Select all

	$method_data = array();
Insert this on the next line:

Code: Select all

		if ($this->cart->getSubTotal() > $this->config->get('free_total')) {
			$status = FALSE;
		}	

Or if you use VQMOD use the attached file.
...@barakka: thanks a ton, you saved my life !!, your vqmod works like a charm in OC-1.5.6.4, thank you once again and yes I agree completely that this facility should have been present in OC by default but you also know why ;).

Re: Free Shipping and Flat Rate Shipping issue

Posted: Sat Jun 04, 2016 6:06 pm
by barakka
Just to add this also works for 2.2.0

Same code/VQMOD
;)

Re: Free Shipping and Flat Rate Shipping issue

Posted: Fri Jun 10, 2016 12:42 am
by beebee
barakka wrote:Just to add this also works for 2.2.0

Same code/VQMOD
;)
Hell yeah!! You beauty!! Works perfectly in 2.2 :-*
Thanks a ton Barakka!!

Re: Free Shipping and Flat Rate Shipping issue

Posted: Sun Jun 26, 2016 4:19 am
by nirajnagar
In /catalog/model/shippping/flat.php find:

Code: Select all

	$method_data = array();
Insert this on the next line:

Code: Select all

		if ($this->cart->getSubTotal() > $this->config->get('free_total')) {
			$status = FALSE;
		}	

I used this code and it worked for me. If possible please provide me the solution for the below condition. Thanks for theis solution.

I want to show only(show only) weight based shipping if weight is 500grams or plus.

I want to use 3 conditions
1) flat shipping if cart value is INR 499 or less.
2) Free shipping if cart value is INR 500 or plus.

3) Weight based shipping if cart weight is 500 grams or plus.

In point 3 free shipping is visible along with weight based shipping. How to hide free shipping.

Thanks in advance.

Niraj Nagar

Re: Free Shipping and Flat Rate Shipping issue

Posted: Sat Jul 01, 2017 11:25 am
by neeticollections
I think you are complicating it. In Admin section - just set FREE Shipping as priority 1 and Flat Shipping as Priority 2. That would work.