OrderAnywhere - SKU and Quantity

General ShopSite user discussion

OrderAnywhere - SKU and Quantity

Postby rob@rebii.com » Wed Jul 21, 2010 4:41 pm

I use OrderAnywhere exclusively on my site and it's working great. (We built the OrderAnywhere html snippets based on SKU and not item number) This is a super easy way for products to get added without having to look up the database item number for each product.

It would be nice if there was a way to also include a quantity in the OrderAnywhere form. I can make this work if I know the item number by using a text input field for itemnum:qnty. Is there an equivalent way to pass a quantity based on SKU?

Thanks!
Rob
rob@rebii.com
 
Posts: 2
Joined: Wed Jul 21, 2010 4:23 pm
Location: Missouri

Postby ShopSite Lauren » Thu Jul 22, 2010 9:04 am

You should be able to use:

Quantity <input type="text" size="2" name="[-- PRODUCT.SKU --]:qnty" value="1">
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Postby rob@rebii.com » Fri Jul 23, 2010 4:16 pm

Lauren, thanks for the reply. What you sent looked promising but when I do the submit based on the following html, only quantity 1 gets added to the cart.

Below is the quick html I threw together to try the quantity solution. Possibly I'm missing something important being relatively new to Shopsite.

Rob

<form action="http://www.xyz.com/cgi-bin/sc/order.cgi" method="post">

<span class="black8pt">
<input name="storeid" value="*12345678901234567890c" type="hidden">
<input name="dbname" value="products" type="hidden">
<input name="function" value="add" type="hidden">
</span>
<table border="0" cellpadding="1" cellspacing="1" width="500">
<tbody><tr>

<td colspan="2"><h5><em>To order: Enter the Product SKU and click Add to Cart</em></h5></td>
</tr>

<tr>
<td width="30">
Quantity
</td>

<td width="150">
Item Number (Product SKU)
</td>
</tr>

<!-- Test Item -->
<tr>
<td width="30">
<input type="text" size="2" name="[-- PRODUCT.SKU --]:qnty" value="5">
</td>

<td width="150">
<input type="text" name="sku" value="APP30" size="20" maxlength="10">
</td>
</tr>

<!-- End Test Item -->

<tr>
<td colspan="2">
&nbsp;
</td>
</tr>

<tr>
<td width="10">
&nbsp;
</td>
<td>
<input name="Add to Cart" alt="Add to Cart" type="submit" border="0">
</td>
</tr>

</p>
<p>&nbsp;</p>
</form>
rob@rebii.com
 
Posts: 2
Joined: Wed Jul 21, 2010 4:23 pm
Location: Missouri

Postby Jim » Fri Jul 23, 2010 8:27 pm

Your form must submit the actual product sku. Since you are using OrderAnywhere you will not be able to use the ShopSite template tag "[-- PRODUCT.SKU --]" in your form.

I'm not a javascript programmer but if you are having the shopper enter the sku you might need to use some javascript to get the sku from the input into the place in the form where it is needed.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 19 guests