Post by shawtham » Mon Aug 15, 2011 10:28 pm

HI,

I have setup 2 shipping options : Standard Shipping for purchase less than $200, and FREE shipping for purchase over $200. And buyers tend to overlook the free shipping option and pay extra.

Is that a way I could disable the Standard Shipping when buyers purchase over $200-00, and show only FREE Shipping ?

Thanks in advance !

Shaw

Newbie

Posts

Joined
Fri Jul 22, 2011 10:29 pm

Post by uksitebuilder » Mon Aug 15, 2011 10:42 pm

What version of opencart are you using?

What shipping method are you using?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by shawtham » Fri Aug 19, 2011 4:29 am

HI Simon,

I am using OC 1.5.0, and using Multi-rate extension and default Free Shipping Module. How do I proceed?

Newbie

Posts

Joined
Fri Jul 22, 2011 10:29 pm

Post by uksitebuilder » Fri Aug 19, 2011 5:05 am

Hi, if your extension is a commercial extension, you should ask the developer if he/she can help.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Johnathan » Fri Aug 19, 2011 8:56 pm

No matter which shipping extension you're using, you should be able to hide it when over a certain cart total by doing the following edit:

IN:

Code: Select all

/catalog/model/shipping/YOURSHIPPING.php
REPLACE:

Code: Select all

if ($status) { 
WITH:

Code: Select all

if ($status && $this->cart->getSubTotal() < $this->config->get('free_total')) { 

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Hashishim » Tue Aug 23, 2011 4:41 am

Hi there I fairly understand the logic of the php statement, how do i make it so that it chooses a method of shipping or even payment or for other pages like vouchers to be used etc, How can i use this if a certain field in the product be set? What would it be? For e.g. I got a field called "Pre Order"

I would like a certain payment method to be only used if that is field is set, and if it not it will sue the default methods

Code: Select all

I am assuming it could be something like if ($status && $this->-cart->getProducts() 
Could you help fill the blanks? I am using Opencart 1.5.1.1

New member

Posts

Joined
Mon Jul 25, 2011 5:44 am

Post by Xsecrets » Tue Aug 23, 2011 6:43 am

Hashishim wrote:Hi there I fairly understand the logic of the php statement, how do i make it so that it chooses a method of shipping or even payment or for other pages like vouchers to be used etc, How can i use this if a certain field in the product be set? What would it be? For e.g. I got a field called "Pre Order"

I would like a certain payment method to be only used if that is field is set, and if it not it will sue the default methods

Code: Select all

I am assuming it could be something like if ($status && $this->-cart->getProducts() 
Could you help fill the blanks? I am using Opencart 1.5.1.1
good luck with that. Those are alot of blanks.

OpenCart commercial mods and development http://spotonsolutions.net
Layered Navigation
Shipment Tracking
Vehicle Year/Make/Model Filter


Guru Member

Posts

Joined
Sun Oct 25, 2009 3:51 am
Location - FL US

Post by shawtham » Tue Aug 23, 2011 6:11 pm

To Jonathan,

It works perfectly, I modified the multi-rate module. Pretty neat !

Thanks again

Newbie

Posts

Joined
Fri Jul 22, 2011 10:29 pm

Post by Johnathan » Tue Aug 23, 2011 8:49 pm

Great...you're welcome!

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 6 guests