Post by tomeda » Mon Jan 11, 2016 7:45 pm

Hi,

Kindly help me to solve this issue - Free shipping applied when total amount is less than free shipping limit

Below find the scenario:

Free shipping limit = $ 90
I have a discount coupon for $ 30.00 for orders over $ 100.00

A. Client buys $ 105.00 worth items. (which means FREE SHIPPING) - No problem till here.
B. Now Client uses Discount Coupon for $ 30.00. So New order total after coupon discount = $ 75.00

Therefore FREE SHIPPING should not applied for this since Total is less than $90.00 (FREE SHIPPING LIMIT)

System is not looking new total and still honoring the FREE SHIPPING, even thought the new order total after "Coupon Discount" is less than what FREE SHIPPING is set at which is $90.00

Cart shows:

Item 1 Shirt $105.00

Sub-total: $ 105,00
Coupon (-30.00): - $30,00
Total: $75,00

It shows FREE SHIPPING though TOTAL is less than my FREE SHIPPING LIMIT -
$ 90.00.

I'm using opencart version 1.5.6.1 with following extensions

Shipping: Flat rate shipping and Free shipping

Order extension sort order:

1) Sub-total
2) Shipping
3) Coupon
4) Total

Kindly help me to fix this issue!

Thanks!

OpenCart SEO Services
http://tomeda.bg


User avatar
New member

Posts

Joined
Thu Mar 19, 2015 4:48 am


Post by Qphoria » Wed Jan 13, 2016 12:16 am

so instead of

Code: Select all

if ($this->cart->getSubtotal() > 100.00) {
use

Code: Select all

if ($this->cart->getTotal() > 100.00) {

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by tomeda » Wed Jan 13, 2016 12:23 am

Which files should I modify?

I found also this thread http://www.opencart.com/index.php?route ... n_id=20027 and this extension http://www.opencart.com/index.php?route ... n_id=20027.

My version of OC is 1.5.6.1.

OpenCart SEO Services
http://tomeda.bg


User avatar
New member

Posts

Joined
Thu Mar 19, 2015 4:48 am


Post by Qphoria » Wed Jan 20, 2016 12:35 pm

catalog/model/shipping/free.php

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by adytzul89 » Tue Jul 25, 2017 3:33 pm

Hey,

I need the help, I used this code to disable the possibility of not selecting the transport if it is free but it does not work.
I use opencart version 2.3.0.2, can anyone please?

Code: Select all

//Q: If this free shipping is available, override all other shipping modules and force this one.
			$this->session->data['shipping_method'] = $quote_data['free'];
			$this->session->data['comment'] = (isset($this->session->data['comment'])) ? $this->session->data['comment'] : '';
			if(!isset($this->session->data['guest'])) {
				$this->response->redirect(HTTPS_SERVER . 'index.php?route=checkout/payment'));
			}
Thank you

Newbie

Posts

Joined
Tue Jul 25, 2017 3:30 pm

Post by dookable » Thu Dec 07, 2017 10:22 pm

I too would like a resolve on this for 2.3.0.2, it is bloody frustrating, enough so, I may look at megento. Who the hell at opencart thought this was logical, must be jokers.

Plenty of shipping modules out there, free and paid but none of them work though, already wasted 2 days finding this out for you all..

New member

Posts

Joined
Thu Sep 04, 2014 11:29 pm

Post by dookable » Thu Dec 07, 2017 10:23 pm

Qphoria wrote:
Wed Jan 20, 2016 12:35 pm
catalog/model/shipping/free.php
This folder doesn't exist in 2.3.0.2, any other ideas, you are the man for this kind of stuff, or would you be able to build us a module/extension that sorts this topic out for us, paid obviously :)..

New member

Posts

Joined
Thu Sep 04, 2014 11:29 pm

Post by Johnathan » Sat Dec 09, 2017 3:39 am

All extensions in OpenCart 2.3 and 3.0 have been moved to the "extension" sub-directory. So the path is:

/catalog/model/extension/shipping/free.php

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: Baidu [Spider], Semrush [Bot] and 22 guests