Can Order Anywhere use a text link vs a button?

General ShopSite user discussion

Can Order Anywhere use a text link vs a button?

Postby aisg » Tue Nov 08, 2011 7:11 pm

On my site I sometimes use a price (ie. $ 5.95) to be the link that adds a product to the shopping cart. Can Order Anywhere use a text link and not the "add to cart" button?
aisg
 
Posts: 21
Joined: Tue Jun 07, 2011 8:10 pm

Re: Can Order Anywhere use a text link vs a button?

Postby Jim » Tue Nov 08, 2011 10:05 pm

Sure, as long as it is the submit link. If you have Pro level store set a product to have the text for the Add to Cart to the $5.95 (and set it to use text not image) then view the Order Anywhere code to see what it looks like. If you have a manager or starter store you would change it under Preferences > Store text, Store Pages.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Can Order Anywhere use a text link vs a button?

Postby aisg » Wed Nov 09, 2011 10:03 am

Ok, I think I am catching on. I do have Pro. I updated the product to use text and here is what Order Anywhere put out for HTML

<form method="post" action="http://www.mysite.com/cgi-bin/sc/order.cgi"> <br />
<input type="hidden" value="*0c0421cfe72e0647" name="storeid" />
<input type="hidden" value="products" name="dbname" />
<input type="hidden" value="add" name="function" />
<input type="hidden" value="1234" name="sku" />
<input type="submit" value="$5.95" />
</form>

But that created a button with $5.95. What can I do to make it just be a text link that says $5.95?

Thanks!
aisg
 
Posts: 21
Joined: Tue Jun 07, 2011 8:10 pm

Re: Can Order Anywhere use a text link vs a button?

Postby Jim » Wed Nov 09, 2011 10:55 am

If it is in a form then it can't be just an <a href ....> link, it must be a submit type. Make sure you have unchecked the options on Products > Edit Product Layout for
Code: Select all
Display Order Quantity:   Check here to display this product's quantity input box
Display Quantity Pricing?:   Check here to display this product's Quantity Pricing
Display Ordering Options:   Check here to display this product's Ordering Options menu

Any one of those items will force a form instead of using just an a href

Here is what the Order Anywhere links look like when the above fields are not checked.
Code: Select all
<a href="http://mydomain.com/cgi-bin/sc/order.cgi?storeid=*161ed6bc497810090789b71ea2&dbname=products&sku=abc1238&function=add">$5.95</a>

<a href="http://mydomain.com/cgi-bin/sc/order.cgi?storeid=*161ed6bc497810090789b71ea2&function=show">View Cart</a>
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Can Order Anywhere use a text link vs a button?

Postby aisg » Wed Nov 09, 2011 12:12 pm

Excellent! You are MOST helpful! Solved many issues for me!
aisg
 
Posts: 21
Joined: Tue Jun 07, 2011 8:10 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 108 guests

cron