ssnb Posted July 24, 2008 Posted July 24, 2008 Hi all, I have searched the forums and googled this, but no luck. I wonder if anyone know how to link to a particular products "add to cart" button or script in an email? I send out a newsletter once a week and rather than linking to the product page, I would much rather display the "Add To Cart" or "Buy Now" button directly under the product's picture in the email. Anyone know how this can this be done? Thanks in advance.
ssnb Posted July 31, 2008 Author Posted July 31, 2008 Hi all, I have searched the forums and googled this, but no luck. I wonder if anyone know how to link to a particular products "add to cart" button or script in an email? I send out a newsletter once a week and rather than linking to the product page, I would much rather display the "Add To Cart" or "Buy Now" button directly under the product's picture in the email. Anyone know how this can this be done? Thanks in advance. Does no-one know how to do this?
spooks Posted July 31, 2008 Posted July 31, 2008 everyone knows, their just not saying. Have you tried anything, even the obvious. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
germ Posted July 31, 2008 Posted July 31, 2008 HTML email works just about like web pages. The required code would probably look something like this: <form name="cart_quantity" action="http://www.yourstore.com/product_info.php?products_id=63&action=add_product" method="post"> (You'd probably have the code to display the product image here) <td><input type="hidden" name="products_id" value="63"><input type="image" src="http://www.yourstore.com/includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt="Add to Cart" title="Add to Cart"> </td> </form> I took this code off my site. The code adds product ID number 63 to the cart. Just replace 63 with your product number where ever it appears in my code. I can't guarantee this will work, but if I was going to try something in an email, I'd start with this code. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
mastro97 Posted August 7, 2008 Posted August 7, 2008 I took this code off my site. The code adds product ID number 63 to the cart. Just replace 63 with your product number where ever it appears in my code. I can't guarantee this will work, but if I was going to try something in an email, I'd start with this code. What about if I have a product that has an attribute set up for a download.??
arietis Posted August 7, 2008 Posted August 7, 2008 What about if I have a product that has an attribute set up for a download.?? you can use your browser to bring up the product page from your site. then, look at the generated html for the product in question. find all the <select> and <option> tags within the <form...> and </form> tags and that's what you would need to use. combine that with jim's code and it just might do it for you. only problem is: if you change the attributes and then a customer looks at an old email and clicks through to your store, it may cause confusion.
burt Posted August 7, 2008 Posted August 7, 2008 Another way to do it => http://www.clubosc.com/clear-cart-add-product.html Don't use the "clear cart" bit.
ssnb Posted August 7, 2008 Author Posted August 7, 2008 Hi all, I have searched the forums and googled this, but no luck. I wonder if anyone know how to link to a particular products "add to cart" button or script in an email? I send out a newsletter once a week and rather than linking to the product page, I would much rather display the "Add To Cart" or "Buy Now" button directly under the product's picture in the email. Anyone know how this can this be done? Thanks in advance. Thanks everyone, I'll give it a go and report back :-0
Recommended Posts
Archived
This topic is now archived and is closed to further replies.