How can I use OrderAnywhere URL without the itemnum

General ShopSite user discussion

How can I use OrderAnywhere URL without the itemnum

Postby jdjackson7 » Wed Mar 23, 2011 11:41 am

I am trying to us URLs to directly addtocart. All works well but I am trying to use something other than the itemnum.

This work fine to add item # 49
http://DOMAIN/cgi-bin/sc/order.cgi?storeid=*#################&dbname=products&itemnum=49&function=add

I am tryuing to add with another field - like SKU
http://DOMAIN/cgi-bin/sc/order.cgi?storeid=*#################&dbname=products&SKU=P-14&function=add

I am getting an "Error in Form!" That states to specificy a valid value for the itemnum.

Does anyone know if I can use something otther than the system assigned itemnum?

Thank for you thoughts
jdjackson7
 
Posts: 20
Joined: Wed Mar 23, 2011 11:21 am

Re: How can I use OrderAnywhere URL without the itemnum

Postby loren_d_c » Wed Mar 23, 2011 11:52 am

The 'SKU' parameter name should be lowercase, like 'sku', in the URLs.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: How can I use OrderAnywhere URL without the itemnum

Postby jdjackson7 » Wed Mar 23, 2011 12:32 pm

PERFECT. That worked. Thanks Loren
jdjackson7
 
Posts: 20
Joined: Wed Mar 23, 2011 11:21 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 136 guests