Order API - Custom CGI and ShopSite Receipt Problem
Posted: Fri Jul 18, 2003 1:20 pm
Hope someone out there can help me with this little problem.
We have created a custom perl script to auto-add members to a client's
mailing list on checkout using the Order API. Problem is, the script must
return the content type header (Content-type: text/html) or an Apache Server
error is returned.
But, after the content type header is returned from our script, another one
is returned for the ShopSite Receipt page. This second one ends up being
visible in the browser window.
We have both the 'Email receipts to buyer, merchant?' and 'Screen receipt
for buyer?' options selected on the Order API page.
Anyone run into an issue like this? Or have any ideas on how we could either
have the script run silently and produce no output without causing an error
(it runs fine from the command line that way) or get ShopSite to not display
a duplicate content type header?
I know we could create a complete custom receipt page and that would solve
the problem, but we do not have approval from the client for the additional
hours that would take.
We have created a custom perl script to auto-add members to a client's
mailing list on checkout using the Order API. Problem is, the script must
return the content type header (Content-type: text/html) or an Apache Server
error is returned.
But, after the content type header is returned from our script, another one
is returned for the ShopSite Receipt page. This second one ends up being
visible in the browser window.
We have both the 'Email receipts to buyer, merchant?' and 'Screen receipt
for buyer?' options selected on the Order API page.
Anyone run into an issue like this? Or have any ideas on how we could either
have the script run silently and produce no output without causing an error
(it runs fine from the command line that way) or get ShopSite to not display
a duplicate content type header?
I know we could create a complete custom receipt page and that would solve
the problem, but we do not have approval from the client for the additional
hours that would take.