Order Anywhere with multiple product issue.

General ShopSite user discussion

Order Anywhere with multiple product issue.

Postby NaTaS » Tue Sep 20, 2011 2:30 pm

Ok this is going to sound a bit crazy but I have a request to build a small app that utilizes the order anywhere linking system which should be straight forward but for some reason its not working at all.

Request:
Allow users to select multiple products from our website and allow each product to have a customization (freeopt).
Example: Customer selects 3 of the same product and each of the products can have an engraving on them which the engraving text is sent with the freeopt param.

The issue I am running into when doing this is that when the customer selects 3 of the same product (same SKU number) and does different engraving on each of the products (Requested by the client) I have to create a string similar to the following.

Code: Select all
order.cgi?storeid=*16d7c8204c1420ca07c7fb49f0&dbname=products&function=add&sku=100044&100044:qnty=1&100044:freeopt=test1&sku=100044&100044:qnty=1&100044:freeopt=test3&sku=100044&100044:qnty=1&100044:freeopt=test2


But when the cart sees it I receive the following error message: Please specify a valid value for the Quantity

I have so far determined that the issue lies in that I am passing the same sku number in multiple times with the exact same quantity count. The issue I have is that is exactly how the client wants it to work.

Any help with this would be great.

Thanks in advance.
NaTaS
 
Posts: 1
Joined: Tue Sep 20, 2011 2:20 pm

Re: Order Anywhere with multiple product issue.

Postby JCGrafted » Thu Sep 22, 2011 1:06 pm

This is probable NOT the best solution, but it might be a way to get it to work. It looks to me that the problem is that you are sending all three at once. Try this:

1) Set a JS (or other) function on your page load that looks for a flag you set in a cookie.
2) when there are multiples of an item store them in the cookie and turn on the flag
3) submit the first one which will reload the page
4) flag tell JC to delete the first one from cookie and submit the next...

It is a bit clunky and the page will blink a couple of times, but it should work.

JCGrafted
JCGrafted
 
Posts: 29
Joined: Wed Sep 21, 2011 2:41 pm
Location: Houston, TX


Return to User Forum

Who is online

Users browsing this forum: No registered users and 64 guests