Post by stueynet » Fri Mar 25, 2011 1:09 am

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.

Newbie

Posts

Joined
Wed Mar 02, 2011 6:09 am

Post by openmycart.com » Fri Mar 25, 2011 9:04 am

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.

Find and get many various of opencart modules, themes, mods, etc for your opencart store at http://www.openmycart.com/oc/, OPENCART SITE customization and Maintenance supports at here


User avatar
Active Member

Posts

Joined
Tue Oct 12, 2010 4:47 am


Post by Qphoria » Fri Mar 25, 2011 11:40 am

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

OpenCart 2.0.x Mod Update Info

Image
Donate!|OpenCart Basics|GeoZones
Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by blingze » Mon Apr 04, 2011 9:26 am

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.

Newbie

Posts

Joined
Thu Mar 31, 2011 10:40 pm

Post by mberlant » Mon Apr 04, 2011 10:07 am

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.

Please use proper English at all times, so that all members may understand you.


User avatar
Active Member

Posts

Joined
Sun Mar 13, 2011 8:33 pm

Post by victor47005 » Tue Nov 22, 2011 2:25 am

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!!

Newbie

Posts

Joined
Tue Nov 22, 2011 2:23 am

Post by Johnathan » Tue Nov 22, 2011 10:25 pm

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.

Image
Image Image Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by barakka » Tue Nov 29, 2011 7:45 pm

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.

Attachments

VQMOD File to disable Flat Rate shippping when Free Shipping is available


“Reeling and Writhing, of course, to begin with, and then the different branches of arithmetic -- Ambition, Distraction, Uglification, and Derision." - The Mock Turtle


Newbie

Posts

Joined
Fri Jan 21, 2011 7:34 pm
Location - UK

Post by URAGANU » Mon Apr 30, 2012 4:22 am

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 :)

.

Newbie

Posts

Joined
Tue Mar 27, 2012 6:45 am

Post by tooheys » Wed Mar 06, 2013 1:34 pm

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

Newbie

Posts

Joined
Mon Nov 21, 2011 1:11 pm

Post by Johnathan » Wed Mar 06, 2013 9:06 pm

Temporarily change the sub-total to something just under the order amount, apply it, and then change the sub-total back.

Image
Image Image Image Image Image Image


User avatar
Global Moderator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by kromanluv » Tue Jun 11, 2013 12:53 pm

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?

Newbie

Posts

Joined
Fri Apr 12, 2013 1:10 pm

Post by Mansour » Sat Jan 11, 2014 1:06 am

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.... ??? ???

Newbie

Posts

Joined
Fri Jan 10, 2014 3:37 pm

Post by jeevanism » Fri Feb 28, 2014 6:16 pm

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

Newbie

Posts

Joined
Sat Jan 18, 2014 11:02 pm

Post by sunsys » Sun Mar 01, 2015 12:21 pm

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 ;).

Regards,
Sun Systems
Industrial Electronics and Instrumentation


User avatar
Active Member

Posts

Joined
Tue Jan 27, 2015 5:19 am

Post by barakka » Sat Jun 04, 2016 6:06 pm

Just to add this also works for 2.2.0

Same code/VQMOD
;)

“Reeling and Writhing, of course, to begin with, and then the different branches of arithmetic -- Ambition, Distraction, Uglification, and Derision." - The Mock Turtle


Newbie

Posts

Joined
Fri Jan 21, 2011 7:34 pm
Location - UK

Post by beebee » Fri Jun 10, 2016 12:42 am

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!!

BeeBee
When the going gets weird, the weird turn Pro!!


User avatar
New member

Posts

Joined
Thu May 12, 2016 5:13 pm

Post by nirajnagar » Sun Jun 26, 2016 4:19 am

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

Thanks & Regards,
Niraj Nagar
================
Ethical SEO Practitioner, Hosting Solutions, Customized Web Development


Newbie

Posts

Joined
Sun Mar 13, 2016 3:02 am


Post by neeticollections » Sat Jul 01, 2017 11:25 am

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.


Posts

Joined
Tue Apr 04, 2017 9:32 pm
Who is online

Users browsing this forum: No registered users and 8 guests