If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Built-in Shipping and Payment Modules / NEW! -- Free-Shipping-and-Amount or Free-Shipping-and-Percentage (for v1.3.9h)

NEW! -- Free-Shipping-and-Amount or Free-Shipping-and-Percentage (for v1.3.9h)

Started by ajeh on 27 Nov 2010, 1:33 AM · Views: 15,603

Results 21 to 40 of 53
15 Jan 2012, 10:34 PM
#21
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Post #21 by dimsumgurl

Firstly, I want to thank you for this great contribution!

However, Im having a little trouble as to why the taxes aren't calculating properly...

Sub-Total:
43.99

Free Shipping Options (Free Shipping):
$0.00

Discount Coupon:
-$40.00

13% HST (ON) #81836 3517 RT0001:
$0.26

Total:
$4.25

I've given a coupon for the following criteria:
Spend over $40, receive $40 off. Restriction of Ontario.

Spend over $40, get free shipping, which they will have to click on when the shipping options appear.

Based on that:
43.99 - 40 = 3.99 x 1.13 = 4.51.....not $4.25....

Could someone shed some light on this? I've done a few scenarios where I remove the shipping FREE option and just use the coupon version... I still have this problem...

Thank you very much! This is a great community.

Zencart V1.3.9h

16 Jan 2012, 1:23 AM
#22
dimsumgurl avatar

dimsumgurl

Zen Follower

Join Date:
Dec 2009
Location:
Canada
Posts:
160
Plugin Contributions:
0

Post #22 by dimsumgurl

Alright... I believe that I solved my problem....

I filled out what need to be done on the coupon, but don't enable the free shipping... I had to enable that through admin>modules>shipping>free shipping option

For some reason when I enable that, the taxes are included in the calculations...Even when Order total>Discount coupon> Include shipping is set to false

Include Shipping
false

Include Tax
false

Re-calculate Tax
Credit Note

I needed the coupon to minus the discount and recalculate tax based on the remaining amount. For some reason, it was calculating based on the original amount...

6 Feb 2012, 9:38 PM
#23
bcaa8ra avatar

bcaa8ra

New Zenner

Join Date:
Jan 2008
Posts:
5
Plugin Contributions:
0

Post #23 by bcaa8ra

:P
I want to thank Ajeh for the coupon code. On my cart 1.39h I was having a math problem, a very smart shopper found it.
What I traced it to was a rounding problem.

On line 519 ( function get_order_total() ) the function zen_round() was being used and supplying a precision. What I found was my install was not providing any number for curreny->prec.

So I just eliminated the rounding and all is well now.

ORIGINAL CODE*****
$order_total = array('totalFull'=>zen_round($orderTotalFull, $prec), 'total'=>zen_round($order_total, $prec), 'tax'=>zen_round($order_total_tax, $prec), 'totalInclusive'=>zen_round($orderTotalInclusive, $prec));

********* CHANGED TO *******************
$order_total = array('totalFull'=>$orderTotalFull, $prec, 'total'=>$order_total, $prec, 'tax'=>$order_total_tax, $prec, 'totalInclusive'=>$orderTotalInclusive, $prec);

Bernie...

Zen Cart Specialists
PayPal Partner and PayPal Certified Developer
Providing Zen Cart Hosting, Custom programming and maintenance.

15 Feb 2012, 5:10 PM
#24
webmiss avatar

webmiss

Zen Follower

Join Date:
Feb 2006
Posts:
147
Plugin Contributions:
0

Post #24 by webmiss

Just wanted to say thank you for this mod. I do have a question from a client that has this on his store. He was telling me that as customer goes through the checkout process and puts in their discount coupon code, it shows shipping cost, even though free shipping is included, but once the final transaction has been done, the shipping ends up being free. He was curious as to why it does this. I think it is confusing his customers.

Any ideas?

webmiss

25 Jun 2012, 12:29 AM
#25
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #25 by ajeh

This is a test Discount Coupon Combo for v15 to allow for:

1 Free Shipping

2 Amount Off

3 Percentage off

4 Amount Off and Free Shipping

5 Percentage Off and Free Shipping

Feedback is welcome ...

NOTE: File updated check you have DiscountCombo_v15B.zip

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

27 Jun 2012, 4:36 PM
#26
sbbemn avatar

sbbemn

Zen Follower

Join Date:
Jan 2010
Posts:
182
Plugin Contributions:
0

Post #26 by sbbemn

MAYDAY

I thought this worked when I tested it on 1.3.8a yesterday. Come to find out it doesn't - and my boss is down south at a convention vendor fair where we have advertised 5% and free shipping! HELP!

It's somehow miscalculating the % off with shipping and seems to be doubling the final discount, but not exactly 100% doubled.

Anyone using this on 1.3.8a?

Example:
Sub-Total: $118.97
Economy Shipping : $3.99
Discount : -$9.64
Shipping Insurance: $0.00
Signature Required: $0.00
Total: $103.18

27 Jun 2012, 5:35 PM
#27
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #27 by ajeh

This is not designed for v1.3.8 ... I have no idea if you can adapt it for that ...

I would only use the 1 of the 3 choices and not try to combine them in v1.3.8 ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Jul 2012, 6:47 PM
#28
gokeypa avatar

gokeypa

New Zenner

Join Date:
Sep 2011
Posts:
86
Plugin Contributions:
0

Post #28 by gokeypa

The fix is working great for me.

Thanks Ajeh for the help. The only thing I would suggest is that the discount seperate the % off and the subtraction of the shipping cost. so that the client can see that they are getting x%off plus the free shipping. I do not know how hard that would be to show, but it might be nice.

21 Jul 2012, 12:38 AM
#29
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #29 by ajeh

At this time, Discount Coupons only show the total amount of the Discount ...

We will keep it in mind as an idea for the future ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Nov 2012, 10:40 AM
#30
ellivir avatar

ellivir

Zen Follower

Join Date:
Sep 2005
Posts:
444
Plugin Contributions:
0

Post #30 by ellivir

We had a problem that the taxes were not calculated properly. The shop is displaying taxes like normally in EU it is the way in consumer business, and the shipping has also sales taxes in it. Previously a discount coupon given to FREE shipping (only that, no amounts), gave the discount amount as the shipping amount minus taxes. Now after installing this "module" or "fix", it goes correctly.

PREVIOUSLY:
Shipping fee: 16.00 euro
Discount coupon: -13.01 euro (missing the 23% of tax compared for the sh

NOW CORRECTLY:
Shipping fee: 16.00 euro
Discount coupon: -16.00 euro

Just wanted to report that people who had similar problems knows that this fix helps on those cases. We have version: v1.3.9h.

I may be blond but at least I found Zen.

22 Nov 2012, 9:26 PM
#31
ubasydney avatar

ubasydney

New Zenner

Join Date:
Nov 2012
Posts:
2
Plugin Contributions:
0

Post #31 by ubasydney

Hi Ajeh,
I am new to this and have ecommerce website with zencart. I was trying to have this option Free-Shipping-and-Amount or Free-Shipping-and-Percentage, i tried to down load your link to find out how we can do, but somehow i was unable to download anything, the files in the zip, will not open, can you pls help!
Cheers
sandy

22 Nov 2012, 10:25 PM
#32
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #32 by ajeh

I just tried the download from post #25 and I am not having any errors with it ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Nov 2012, 12:35 PM
#33
ubasydney avatar

ubasydney

New Zenner

Join Date:
Nov 2012
Posts:
2
Plugin Contributions:
0

Post #33 by ubasydney

Hi Ajeh,
I am still having problem, can you send me the link again. I need the files urgently, pls.Thanks in advance.

28 Nov 2012, 4:49 PM
#34
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #34 by ajeh

See if this link works any better for you:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

15 Jan 2013, 3:18 AM
#35
wmhughes avatar

wmhughes

New Zenner

Join Date:
Jan 2013
Posts:
1
Plugin Contributions:
0

Post #35 by wmhughes

Hi Ajeh,

I installed this and it works great with everything except the local sales tax. I have the Local Sales Tax Mod installed. Your DiscountCombo takes the discount and the shipping off, also the taxes on the product for state tax are taken off but not the local 2% tax. I have tried every configuration.

I understand it wasn't designed with the local tax mod in mind but if you or anyone else could offer any suggestion it would be greatly appreciated.
Thx

12 Dec 2013, 8:13 PM
#36
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Post #36 by aly22

Will this work on a 1.3.8 store?
And if so, which one should I download given that it is a very old thread ;)
I need to do just a weekend run of a free order plus free shipping for a small group of folks.

12 Dec 2013, 8:25 PM
#37
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #37 by ajeh

That is a very old version of Zen Cart and you should really upgrade it at least to v1.3.9h or higher ...

I would have to really look at the code if I have time to setup a v1.3.8 on a server and re-write that, most likely ... but I won't know until I can really look at it ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Feb 2014, 9:29 AM
#38
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Post #38 by 100asa

Can I exclude discount coupon when a product have free shipping?

2 Feb 2014, 2:28 PM
#39
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #39 by ajeh

Can't you just add the products with Free Shipping to the restriction list?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Feb 2014, 2:36 PM
#40
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Post #40 by 100asa

Yes, sure, but those are about 70 products. I thought there might be a quicker way to do this.