Order API Question
Posted: Wed Oct 29, 2003 2:15 pm
Our customer is using MOM and it is too integrated into their business
for them to consider switching to Store Manager. I had built a download
that works to MOM before I heard of Barney's solution. We also need to
keep a subset DB on the host (mySQL) that can be accessed by registered
users.
My question is about the use of Coupons and how they might be translated
into MOM practice. From a custom-dump.pl view of the data passed to my
order api, I note the following:
- There is no value provided for "Coupons=" (So, why is this field there?)
- There is sub field of O_AllTotals that provides for the total coupon
value (a negative number.)
- The Coupon name is passed as if it were a product, but with the
rectype set to "4". Then the Product Name is the Coupon Text..e.g.
Early Bird Discount.
If I understand this correctly, then the problem is to map this to MOM
where the discount can only be applied to individual products, not the
total according to the specs for their import/export module. This means
that, for a coupon applied to a total order, order api must calculate
the coupon % and then apply that to each product ordered.
Is there anyone who can tell me if I got this right? TIA.
for them to consider switching to Store Manager. I had built a download
that works to MOM before I heard of Barney's solution. We also need to
keep a subset DB on the host (mySQL) that can be accessed by registered
users.
My question is about the use of Coupons and how they might be translated
into MOM practice. From a custom-dump.pl view of the data passed to my
order api, I note the following:
- There is no value provided for "Coupons=" (So, why is this field there?)
- There is sub field of O_AllTotals that provides for the total coupon
value (a negative number.)
- The Coupon name is passed as if it were a product, but with the
rectype set to "4". Then the Product Name is the Coupon Text..e.g.
Early Bird Discount.
If I understand this correctly, then the problem is to map this to MOM
where the discount can only be applied to individual products, not the
total according to the specs for their import/export module. This means
that, for a coupon applied to a total order, order api must calculate
the coupon % and then apply that to each product ordered.
Is there anyone who can tell me if I got this right? TIA.