Post by majestix » Fri Oct 19, 2012 11:10 pm

I was wondering if there was a way in OpenCart to give free shipping if the order is $10 or more, and if it's less than $10, have a flat rate for shipping ($2.50). Or, if there is a relatively cheap plugin that does that job.

Thanks.

Newbie

Posts

Joined
Fri Oct 19, 2012 11:09 pm

Post by grgr » Sun Oct 21, 2012 4:19 pm

Edit ../catalog/model/shipping/flat.php

After this:

Code: Select all

		if (!$this->config->get('flat_geo_zone_id')) {
			$status = true;
		} elseif ($query->num_rows) {
			$status = true;
		} else {
			$status = false;
		}
Add this:

Code: Select all

		if ($this->cart->getsubtotal() > 9.99) {
       		$status = FALSE;
		}
Install the free shipping extension and set to $10.

-
Image Image Image
VIEW ALL EXTENSIONS * EXTENSION SUPPORT * WEBSITE * CUSTOM REQUESTS


User avatar
Active Member

Posts

Joined
Mon Mar 28, 2011 4:08 pm
Location - UK

Post by sopranodesign » Thu Nov 22, 2012 8:35 am

Thanks! This helped me a too!

New member

Posts

Joined
Mon Dec 19, 2011 8:52 am

Post by Porten » Sun Nov 25, 2012 6:56 am

Thumbs up grgr! :)

Bondage og BDSM
Dildo informasjon
Vibrator guide


Newbie

Posts

Joined
Sun Nov 25, 2012 6:50 am


Post by Wireman131 » Mon Jan 28, 2013 11:42 am

Thank you, this did the trick!

Newbie

Posts

Joined
Sat Mar 17, 2012 1:35 am

Post by sdynak » Sun Jun 09, 2013 11:30 pm

grgr wrote:Edit ../catalog/model/shipping/flat.php

After this:

Code: Select all

		if (!$this->config->get('flat_geo_zone_id')) {
			$status = true;
		} elseif ($query->num_rows) {
			$status = true;
		} else {
			$status = false;
		}
Add this:

Code: Select all

		if ($this->cart->getsubtotal() > 9.99) {
       		$status = FALSE;
		}
Install the free shipping extension and set to $10.

Thanks grgr! Worked beautiful.. just what I was looking for :)

New member

Posts

Joined
Wed Jan 02, 2013 8:52 am
Location - Bayville, New Jersey
Who is online

Users browsing this forum: No registered users and 9 guests