Zen Cart Logo
Forums / Upgrading from 1.3.x to 1.3.9 / linkpoint error SGS-002301 / low order fee

linkpoint error SGS-002301 / low order fee

Locked

Views: 4,597

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
15 Dec 2007, 3:31 PM
#1
hanc avatar

hanc

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

linkpoint error SGS-002301 / low order fee

I turned on the Low Order Fee module for a trial order test after the upgrade. Everything was working out fine until it told me my credit card was declined, and I got this error "SGS-002301: Charge total must be the sum of subtotal, tax, value added tax, and shipping" from my admin "LinkPoint CC Review" report.

The detail of the report also shows:...subtotal=1.35; tax=0.1; shipping=0.00; chargetotal=2.45;... which means the cart is calculating the "low order fee" (2.45-1.35-0.1=1=my low order fee setup) but linkpoint doesn't buy it ("Charge total must be the sum of subtotal, tax, value added tax, and shipping")

I don't know if it's a v1.3.8 or linkpoint bug. I have searched this forum and other online resources; haven't really found any solution. Few people had very similar problem but no answers.

Thanks in advance for any thoughts on this.

15 Dec 2007, 3:48 PM
#2
hanc avatar

hanc

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: linkpoint error SGS-002301 / low order fee

PS:
Sub-Total: $1.35

CA TAX 7.5%: $0.10

Low Order Fee: $1.00

Total: $2.45
This is how the checkout-payment page shows.

COD Fee ot_cod_fee
Discount Coupon ot_coupon 280
Group Discount ot_group_pricing 290
Gift Certificates ot_gv
Low Order Fee ot_loworderfee 400
Shipping ot_shipping
Sub-Total ot_subtotal 100
Tax ot_tax 300
Total ot_total 999
This is how my order total modules are installed with the sort orders. Discount coupon or group discount modules are installed but not applied to this trial order at all.

Low Order Fee

This module is installed
true

Sort Order
400

Allow Low Order Fee
true

Order Fee For Orders Under
$2.99

Order Fee
1

Attach Low Order Fee On Orders Made
national

Tax Class
--none--

No Low Order Fee on Virtual Products
true

No Low Order Fee on Gift Vouchers
true
This is how the low order fee module is set up.

Just in case you may need these information to figure out anything. :-)

16 Dec 2007, 11:17 PM
#3
hanc avatar

hanc

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: linkpoint error SGS-002301 / low order fee

Or is it because of my linkpoint account setup?

17 Dec 2007, 1:41 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: linkpoint error SGS-002301 / low order fee

It's a small coding bug which only appears when the low-order-fee module is enabled.

Please try the attached updated file: /includes/modules/payment/linkpoint_api.php

UPDATE: NEWER CODE TO FIX COUPON-RELATED ISSUES POSTED HERE instead:
http://www.zen-cart.com/forum/showpost.php?p=519955&postcount=12

The following attachment is old. Use the one in the link above if you want a more complete fix. Applies to v1.3.8xx only.

18 Dec 2007, 2:36 AM
#5
hanc avatar

hanc

New Zenner

Join Date:
Aug 2007
Posts:
8
Plugin Contributions:
0

Re: linkpoint error SGS-002301 / low order fee

:clap:It worked! It worked! It works like a charm! Thank you very much DrByte:smartalec:!!! :hug:

I am sure this will help many other friends who use the low order fee module!

I am truely amazed by the ZenCart Team! Everytime I had a question or problem, I could always find the answer. :laugh:

English is not my first language, and I had no IT background. Yet I can build a professional store on my own within 2 weeks with zen-cart. It's such a great resource and thank you every zen developer for your hardwork and great help!

4 Jan 2008, 8:25 PM
#6
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: linkpoint error SGS-002301 / low order fee

Dr. Byte - The new USPS optional shipping insurance mod causes the same problem, but the file posted above did not fix it. I had hoped that since the insurance module had been based on the low order module it would work, but no luck. Any posibility you could tell me how to change the linkpoint_api.php to work with the insurance mod?

4 Jan 2008, 9:54 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: linkpoint error SGS-002301 / low order fee

Using the updated module shown above, you could adapt the code based on whatever the name of your ot module is. Look for this line, and add more conditions to it:```
if ($order_totals[$i]['code'] == 'ot_loworderfee') {

4 Jan 2008, 10:13 PM
#8
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: linkpoint error SGS-002301 / low order fee

You are a wonderfull man Dr. Byte! Thank you!