[ic] Update on errors w/ transactions and orderline

Russ Mann interchange-users@interchange.redhat.com
Sat Jan 5 16:13:01 2002


Dear List,

I've done some hunting and found these things to be true of my error:

1. The errors aren't generated exclusively by log_transactions, but are also
generated by the checkout.html page.
2. When I remove the tags [total-cost] and [shipping] from pages, this error
goes away.  If one is removed without the other, some of the repeats of the
error will go away.
3. When I modify the shipping.asc file, to the point of only leaving one
ship method with a standard shipping fee in it, the "SQL Statement" changes
from 7 to 32.

It appears that when shipping costs are calculated against anywhere, this
error comes up.  Has the shipping stuff changed significantly since IC 4.6?
My shipping.asc file was working perfectly then.  The shipping prices
themselves come up perfectly normally, it just produces these errors and
causes my "report" files to not work.

I copied the shipping.asc file directly from the foundation demo to my
products directory and the error goes away.  However, it is not configured
for the shipping options I need.  How can I convert my old shipping file to
the latest requirements?

Below is what my shipping.asc file looks like - this works perfectly in 4.6
and it produces the right numbers in 4.8.3:

Thanks,

-Russ

code	description	criteria	min	max	formula
0	No shipping	weight	0	99999999	e No shipping mode selected.

upsg	UPS Ground	weight	0	0	e Nothing to ship!
upsg	UPS Ground	weight	0	150	u Ground [value name=zip filter=digits
default=35901]
upsg	UPS Ground	weight	150	999999	e @@TOTAL@@ lbs too heavy for UPS

ups3	UPS Three Day	weight	0	0	e Nothing to ship!
ups3	UPS Three Day	weight	0	150	u 3DaySelect [value name=zip filter=digits
default=35901]
ups3	UPS Three Day	weight	150	999999	e @@TOTAL@@ lbs too heavy for UPS

ups2	UPS Two Day	weight	0	0	e Nothing to ship!
ups2	UPS Two Day	weight	0	150	u 2ndDayAir [value name=zip filter=digits
default=35901]
ups2	UPS Two Day	weight	150	999999	e @@TOTAL@@ lbs too heavy for UPS

uspspm	USPS Mail	weight	0	0	e Nothing to ship!
uspspm	USPS Mail	weight	0	70	u Priority [value name=zip filter=digits
default=35901]
uspspm	USPS Mail	weight	70	999999	e @@TOTAL@@ lbs too heavy for USPS Mail

upsbak	UPS Two Day AK/HI	weight	0	0	c A UPS products/AKHI.csv 5 1
upsbak	UPS Two Day AK/HI	weight	-1	-1	o PriceDivide=0
upsbak	UPS Two Day AK/HI	weight	0	0	e Nothing to ship
upsbak	UPS Two Day AK/HI	weight	0	150	A 2ndDayAir [value name=zip
filter=digits default=35901]
upsbak	UPS Two Day AK/HI	weight	150	999999	e Not Available

caship	Regular Shipping CANADA	price	0	0	0
caship	Regular Shipping CANADA	price	0	10	3.00
caship	Regular Shipping CANADA	price	10.01	15	4.00
caship	Regular Shipping CANADA	price	15.01	30	5.00
caship	Regular Shipping CANADA	price	30.01	50	5.50
caship	Regular Shipping CANADA	price	50.01	100	6.50
caship	Regular Shipping CANADA	price	100.01	150	8.50
caship	Regular Shipping CANADA	price	150.01	200	9.00
caship	Regular Shipping CANADA	price	200.01	999999	10.50

auship	Regular Shipping AUSTRALIA	price	0	0	0
auship	Regular Shipping AUSTRALIA	price	0	8.50	3.00
auship	Regular Shipping AUSTRALIA	price	8.51	30	4.00
auship	Regular Shipping AUSTRALIA	price	30.01	60	6.00
auship	Regular Shipping AUSTRALIA	price	60.01	999999	7.00

nzship	Regular Shipping NEW ZEALAND	price	0	0	0
nzship	Regular Shipping NEW ZEALAND	price	0	30	5.00
nzship	Regular Shipping NEW ZEALAND	price	30.01	49.99	8.00
nzship	Regular Shipping NEW ZEALAND	price	50	99.99	10.00
nzship	Regular Shipping NEW ZEALAND	price	100	999999	13.00

asiaship	Regular Shipping to ASIA from NEW ZEALAND	price	0	0	0
asiaship	Regular Shipping to ASIA from NEW ZEALAND	price	0	50	8.00
asiaship	Regular Shipping to ASIA from NEW ZEALAND	price	50.01	99.99	10.00
asiaship	Regular Shipping to ASIA from NEW ZEALAND	price	100	149.99	13.00
asiaship	Regular Shipping to ASIA from NEW ZEALAND	price	150	999999	15.00

ukship	Regular Shipping UK	price	0	0	0
ukship	Regular Shipping UK	price	0	15	.80
ukship	Regular Shipping UK	price	15.01	30	1.60
ukship	Regular Shipping UK	price	30.01	45	2.40
ukship	Regular Shipping UK	price	45.01	90	4.40
ukship	Regular Shipping UK	price	90.01	150	6.40
ukship	Regular Shipping UK	price	150.01	225	9.60
ukship	Regular Shipping UK	price	225.01	300	12.80
ukship	Regular Shipping UK	price	300.01	999999	15.80

ukship1st	First Class Shipping UK	price	0	0	0
ukship1st	First Class Shipping UK	price	0	15	3.20
ukship1st	First Class Shipping UK	price	15.01	30	4.00
ukship1st	First Class Shipping UK	price	30.01	45	4.80
ukship1st	First Class Shipping UK	price	45.01	90	9.60
ukship1st	First Class Shipping UK	price	90.01	150	12.80
ukship1st	First Class Shipping UK	price	150.01	225	19.20
ukship1st	First Class Shipping UK	price	225.01	300	25.60
ukship1st	First Class Shipping UK	price	300.01	999999	30.80

euship	Regular Shipping EUROPE	price	0	0	0
euship	Regular Shipping EUROPE	price	0	15	2.40
euship	Regular Shipping EUROPE	price	15.01	30	3.20
euship	Regular Shipping EUROPE	price	30.01	45	4.00
euship	Regular Shipping EUROPE	price	45.01	90	8.00
euship	Regular Shipping EUROPE	price	90.01	150	9.60
euship	Regular Shipping EUROPE	price	150.01	225	15.20
euship	Regular Shipping EUROPE	price	225.01	300	19.20
euship	Regular Shipping EUROPE	price	300.01	999999	25.80

surf_A	UPS Int'l Surface A	weight	0	0	e Nothing to ship!
surf_A	UPS Int'l Surface A	weight	0	100	f 6 + @@TOTAL@@ * 2
surf_A	UPS Int'l Surface A	weight	100	999999	e @@TOTAL@@ lbs too heavy.

air_A	UPS Int'l Air A	weight	0	0	e Nothing to ship!
air_A	UPS Int'l Air A	weight	0	100	f 8 + @@TOTAL@@ * 2.50
air_A	UPS Int'l Air A	weight	100	999999	e @@TOTAL@@ lbs too heavy.

surf_B	UPS Int'l Surface B	weight	0	0	e Nothing to ship!
surf_B	UPS Int'l Surface B	weight	0	100	f 8 + @@TOTAL@@ * 3
surf_B	UPS Int'l Surface B	weight	100	999999	e @@TOTAL@@ lbs too heavy.

air_B	UPS Int'l Air B	weight	0	0	e Nothing to ship!
air_B	UPS Int'l Air B	weight	0	100	f 10 + @@TOTAL@@ * 3.50
air_B	UPS Int'l Air B	weight	100	999999	e @@TOTAL@@ lbs too heavy.

surf_C	UPS Int'l Surface C	weight	0	0	e Nothing to ship!
surf_C	UPS Int'l Surface C	weight	0	100	f 10 + @@TOTAL@@ * 4
surf_C	UPS Int'l Surface C	weight	100	999999	e @@TOTAL@@ lbs too heavy.

air_C	UPS Int'l Air C	weight	0	0	e Nothing to ship!
air_C	UPS Int'l Air C	weight	0	100	f 12 + @@TOTAL@@ * 4.5
air_C	UPS Int'l Air C	weight	100	999999	e @@TOTAL@@ lbs too heavy.

surf_D	UPS Int'l Surface D	weight	0	0	e Nothing to ship!
surf_D	UPS Int'l Surface D	weight	0	100	f 12 + @@TOTAL@@ * 5
surf_D	UPS Int'l Surface D	weight	100	999999	e @@TOTAL@@ lbs too heavy.

air_D	UPS Int'l Air D	weight	0	0	e Nothing to ship!
air_D	UPS Int'l Air D	weight	0	100	f 14 + @@TOTAL@@ * 5.5
air_D	UPS Int'l Air D	weight	100	999999	e @@TOTAL@@ lbs too heavy.

surf_E	UPS Int'l Surface E	weight	0	0	e Nothing to ship!
surf_E	UPS Int'l Surface E	weight	0	100	f 14 + @@TOTAL@@ * 6
surf_E	UPS Int'l Surface E	weight	100	999999	e @@TOTAL@@ lbs too heavy.

air_E	UPS Int'l Air E	weight	0	0	e Nothing to ship!
air_E	UPS Int'l Air E	weight	0	100	f 16 + @@TOTAL@@ * 6.5
air_E	UPS Int'l Air E	weight	100	999999	e @@TOTAL@@ lbs too heavy.

surf_F	UPS Int'l Surface F	weight	0	0	e Nothing to ship!
surf_F	UPS Int'l Surface F	weight	0	100	f 16 + @@TOTAL@@ * 7
surf_F	UPS Int'l Surface F	weight	100	999999	e @@TOTAL@@ lbs too heavy.

air_F	UPS Int'l Air F	weight	0	0	e Nothing to ship!
air_F	UPS Int'l Air F	weight	0	100	f 18 + @@TOTAL@@ * 7.5
air_F	UPS Int'l Air F	weight	100	999999	e @@TOTAL@@ lbs too heavy.

From: "Russ Mann" <tech@khouse.org>
To: "Interchange-Users" <interchange-users@chevelle.interchange.redhat.com>
Date: Fri, 4 Jan 2002 14:32:50 -0700
Subject: [ic] transactions and orderline adding fails
Reply-To: interchange-users@interchange.redhat.com

Dear List,

I recently upgraded to 4.8.3 from 4.6.  I'm getting this elusive error upon
checkout.

Neither the transactions or orderline db's gets updated, however both the
report and mail_receipt emails are sent.

Any ideas?

-Russ

63.30.86.29 TEYnCdaH:65.234.179.143 - [04/January/2002:13:24:33 -0800]
catalog /store/catalog/process.html Bad SQL statement: Parse error near 7 at
/usr/lib/interchange/lib/Vend/Scan.pm line 586.
>
> Query was: 7
63.30.86.29 TEYnCdaH:65.234.179.143 - [04/January/2002:13:24:33 -0800]
catalog /store/catalog/process.html Query rerouted from table products
failed: Bad SQL statement: Parse error near 7 at
/usr/lib/interchange/lib/Vend/Scan.pm line 586.
>
> Query was: 7 at /usr/lib/interchange/lib/Vend/Table/DBI.pm line 1601
>
> Query was: 7


--__--__--