Post by philofab » Sat Jan 07, 2012 8:18 am

Hi, I set weight based shipping to $0.00 when weight equals 0 in the 48 states. This is to be my "Free Shipping" on some products. How do I hide UPS when weight equals 0 or when Weight Based Shipping is active?

I only offer free shipping on SOME products, not all and not based on price.

My store:

http://www.mohavebattery.com/

Newbie

Posts

Joined
Thu Sep 22, 2011 8:44 am

Post by OpenCart Addons » Mon Jan 09, 2012 2:25 am

Hey philofab,

In catalog / model / shipping / ups.php
Find:

Code: Select all

$method_data = array();

Before Add:

Code: Select all

if ($this->cart->getWeight() <= 0) {
$status = false;
}
Regards,
Joel.

Canada's Leading Expert In OpenCart Development & Certified OpenCart Development Partner Image


User avatar
Active Member

Posts

Joined
Thu Nov 24, 2011 10:51 am
Location - Canada

Post by philofab » Wed Jan 11, 2012 12:10 am

Thank you very much! Worked awesome. I need to go buy a zoo book and learn PHP.

Newbie

Posts

Joined
Thu Sep 22, 2011 8:44 am
Who is online

Users browsing this forum: No registered users and 2 guests