Possible Basket information error in Order API
Posted: Wed Apr 23, 2003 2:59 pm
Hi,
I'm new to Shopsite, but have been asked by a client to look into a possible
problem with a custom script that is being executed through the Order API.
It is used to send a fax with the order information. The problem occurs very
randomly, so it's been difficult to track down what is happening.
Based on the API specifications, in the Basket Information section, the
individual ordered items are identified by a prefix of B01-Bxx. This custom
script accurately pulls all the order information, using the field names as
specified in the Order API specs, with the exception of the individual order
items. Most of the time, that is correct, too, but randomly it "drops" some
of the items, as though it can't locate the parameters based on B01-Bxx
prefixes. The email that is sent by the order system, and the order db shows
ALL the items were ordered, but they are not appearing on this fax. And
again, only very randomly does this happen.
The last time was 2 days ago - the client placed a duplicate "test" order
immediately afterwards, with the exact same items that the customer had
ordered - and the fax was generated accurately.
I'm wondering if it's possible that under certain conditions, the Basket
Information MIGHT be generated without the leading zero on the parameter
field name prefixes (i.e., B5 instead of B05)? This is the only thing I can
come up with to explain what is happening, but can't duplicate it "on
demand" so I can't prove it. I was just wondering if anyone else has
experienced this or anything similar within their Order API scripts.
Also - is there any file that could be viewed (log or db) that would show
the B-value names that were generated during the order process? Or are those
removed once the order is completed.
Sorry for being so verbose, and also if my terminology isn't "SS-friendly".
I am a cgi programmer, but have no experience with ShopSite per-say.
Thank you,
I'm new to Shopsite, but have been asked by a client to look into a possible
problem with a custom script that is being executed through the Order API.
It is used to send a fax with the order information. The problem occurs very
randomly, so it's been difficult to track down what is happening.
Based on the API specifications, in the Basket Information section, the
individual ordered items are identified by a prefix of B01-Bxx. This custom
script accurately pulls all the order information, using the field names as
specified in the Order API specs, with the exception of the individual order
items. Most of the time, that is correct, too, but randomly it "drops" some
of the items, as though it can't locate the parameters based on B01-Bxx
prefixes. The email that is sent by the order system, and the order db shows
ALL the items were ordered, but they are not appearing on this fax. And
again, only very randomly does this happen.
The last time was 2 days ago - the client placed a duplicate "test" order
immediately afterwards, with the exact same items that the customer had
ordered - and the fax was generated accurately.
I'm wondering if it's possible that under certain conditions, the Basket
Information MIGHT be generated without the leading zero on the parameter
field name prefixes (i.e., B5 instead of B05)? This is the only thing I can
come up with to explain what is happening, but can't duplicate it "on
demand" so I can't prove it. I was just wondering if anyone else has
experienced this or anything similar within their Order API scripts.
Also - is there any file that could be viewed (log or db) that would show
the B-value names that were generated during the order process? Or are those
removed once the order is completed.
Sorry for being so verbose, and also if my terminology isn't "SS-friendly".
I am a cgi programmer, but have no experience with ShopSite per-say.
Thank you,