Since you are using Order Anywhere links there is really no reason for you to need to look things up in the backoffice. You can just create the order anywhere links with the SKU in them instead of using the product id. Here is an example of a simple Order Anywhere link for a product with the sku bbspangle
- Code: Select all
<a href="http://mydomain.com/sc/order.cgi?storeid=*100bd218ab0744409e25&dbname=products&sku=bbspangle&function=add">Add To Cart</a>
and here is one for a more complex one with a quantity input field. (Note the sku in this one is "j12345 - ") Because there is a field (the quantity value) that needs to be passed to the cart it must be done using a form
- Code: Select all
<form action="http://mydomain.com/sc/order.cgi" method="post">
Quantity <input type=text size="2" name="j12345 - :qnty" value="1" >
<input type=hidden name="storeid" value="*100bd218ab0744409e25">
<input type=hidden name="dbname" value="products">
<input type=hidden name="function" value="add">
<input type=hidden name="sku" value="j12345 - ">
<input type=submit value="Add To Cart">
<input type=submit name="checkout" value="View Cart">
</form>
You would need to replace the "http://mydomain.com/sc/order.cgi" with the appropriate url for your store. And you would need to replace each instance of the sku in the above examples with your sku. In the first example it is straight forward since there is only one place where the sku, bbspangle, appears. In the second example there are two places where the sku is used, once in the line starting Quantity... where the sku is used in the name="j12345 - " and the second in the line <input type=hidden name="sku" value="j12345 - "> where the sku is part of the value= statement.
If your products have order options and you want those in the order anywhere links it gets a little more complicated but it is still possible to do without going into the backoffice of the store to copy the Order Anywhere links.
If you have a spread sheet of your products it wouldn't be to hard to create a column where you concatenate the sku field with other data so you can then just copy and paste the content of a cell with the completed code to your html pages. This could also be done using the merge functionality of a wordprocessor application like Word or WordPerfect or Open Office. You html edit might also have such a feature.