One question - I copied the link for the add to cart button (with my product ID) but rather than add directly to the cart, as your's does, it goes to the product page. Is this because the product is set up with attributes (for quantities)?
One question - I copied the link for the add to cart button (with my product ID) but rather than add directly to the cart, as your's does, it goes to the product page. Is this because the product is set up with attributes (for quantities)?
Sorry, too late for me to edit previous post. The item IS being added to the cart -- however, it still bounces me to the product page anyway. Any idea how to stop that from happening? My code follows:
PHP Code:<div><h2><em>Join the Fight!</em> October is Breast Cancer Awareness Month!</h2>Would you like to add our Ribbon of Hope cookies to your order?<br /></div>
<div><img align="left" src="http://countrycookieconnection.com/store/images/cookies/Ribbon-of-Hope-2.jpg" style="margin:10px; width:125px;">
<a href="http://countrycookieconnection.com/store/index.php?main_page=index&action=buy_now&products_id=49">
<input type="image" src="includes/templates/theme183/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " style="margin:10px;" /></a>
<p><?php $descent = zen_get_products_description(49, 1);echo $descent; ?></p>
</div>
<br class="clearBoth" />
Not sure, to be honest but you do have an input tag in there that is not needed. So, you end up with an input that is enclosed in a link which might produce strange results, particularly as the <input> isn't in a form.
Which could be:Code:<a href="http://countrycookieconnection.com/store/index.php?main_page=index&action=buy_now&products_id=49"> <input type="image" src="includes/templates/theme183/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " style="margin:10px;" /></a>
Try that and see what occurs...Code:<a href="http://countrycookieconnection.com/store/index.php?main_page=index&action=buy_now&products_id=49"> <img src="includes/templates/theme183/buttons/english/button_in_cart.gif" alt="Add to Cart" title=" Add to Cart " style="margin:10px;" /></a>
Nick
iszent.com
whoops, and thank you. Fixed that but still going to cart. And I removed the attributes from the product, that didn't change anything. Oh well ... I guess it's close enough, but your's is a much cleaner action.
Do you have a URL?
Nick
iszent.com
Well, the action of ALL your add to cart buttons is to take the customer to the product info page rather than the shopping cart. This is set in the admin section.
I'll have a look if I get a moment to see if there is an easy way to make just this button work in a different way.
Nick
iszent.com