OK thanks - I'll have a word with Steve on Monday.
Announcement
Collapse
No announcement yet.
Email pages
Collapse
X
-
Hi there,
this is the code i have to add the "tell a friend about this product" to my site
<var thisloc=location.href;if(this.value != ''){location.href='mailto:' thisProduct=getProdName();var thisPrice=getProdPrice();'+ this.value +'?subject=Take a look at http://www.jacyscomputers.com.au &body=I saw ' + thisProduct + '* at Jacys Computer Supplies for only '+thisPrice+ '!Here is the link: '+thisloc+' There are loads of other great products at great prices!'}"><input type=image src="http://www.jacyscomputers.com.au/acatalog/email_a_friend.gif" name="email a friend" alt="email a friend" width="100" height="32"></span>
the trouble is the only thing i can get to work is the image. I click on the image but it doesn't open up my email client (pocomail)
It's a bit of a mix of the codes that have been posted which is probably why it doesn't work
I would like this (workable) button to show under each product. my default product template is ACT_productline template. no image laid out in rows.
Is that the template I should put the code into? if so where exactly.
This isn't on my website. I did a site priview and added the code to the preview page that opened up just to see if i could get it to work.
Cheers and thanks again
Jacy
www.jacyscomputers.com.auJacys Computer Supplies
Web: http://www.jacyscomputers.com.au
email: sales@jacyscomputers.com.au
Comment
-
heres the surfwax code, all in a table, paste it into act-productline.html or whatever your productline template is
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="left">
<tr>
<td rowspan="2">
<div align="center"><img src="http://www.surf-wax.co.uk/acatalog/santa.gif"></div>
</td>
<td><font color="#FF0000">WANT THIS FOR XMAS?</font> send an email to
the person who might buy it for you!</td>
</tr>
<tr>
<td>
<input type=text value="enter email address here" size=40 onChange="var thisloc=location.href + '#NETQUOTEVAR:PRODUCTANCHOR';if(this.value != ''){location.href='mailto:' + this.value +'?subject=Want to know what to buy me for Xmas? &body=I saw '+thisloc+' and thought it would give you an idea!'}" name="text">
<input type=button value="OK" name="button">
</td>
</tr>
</table>
Comment
-
I set up a php script in a brochure page that allows the person to fill in their name, email, their friend's name and email, builds the email up and sends it to the friend. Only tells them about the site though but does not involve their email client.. Not quite what you wanted but I like it! Still on our test site http://www.paws4inspiration.co.uk/te..._a_friend.html
JennyHanson Web Design
www.hansonwebdesign.co.uk
jenny@hansonwebdesign.co.uk
Actinic hosting, Actinic Software, template design and re-design
Comment
-
Amazing to see this thread reactivated immediately after returning from an event where someone asked if we had a "e-mail to friend button".
Got Norman's code to work in the description but like others couldn't get it to work in Act_ProductBody. Is there a specific place it should go? Tried two locations without success. Would be much easier than cutting and pasting into hundreds of product descriptions.
Finally, e-mail box is appearing immediately after description, before OtherInfo link and before component inputs. Any way to get it to come just above the Buy button?
Thanks for any help.
Comment
-
In Act_ProductLine.html the Cart Button (and any choices) are implemented by the line
<Actinic:ACTIONS>NETQUOTEVAR:ADDTOCARTBUTTON</Actinic:ACTIONS>
Put Jo's code either above or below this line depending on whether you want it before or after the cart button.
NormanNorman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
Hi there,
This is the HTML from my act_productlinetable.html file. I've almost got it right, but there are 3 things missing.
1. I would like to like to include a link directly to the product and not just the website. i tried putting '+thisloc+' but thats exactly what came out in the email and not the actual link?
2. i have added the bcc option and while when the email program opens up it has the correct email in the bcc field it doesn't come to me.
3. I would like the email a friend button to be on the same line as the buy now button, aligned to the left so it's right under the price.
have a look here and see where the button is at the moment.
Again thanks for your patience and help,
JacyAttached FilesJacys Computer Supplies
Web: http://www.jacyscomputers.com.au
email: sales@jacyscomputers.com.au
Comment
-
You can't just mix JavaScript and HTML. You can only have JavaScript within an HTML tag as part of an event like onclick or onchange, for example.
My original example provided a text input box which the customer could enter the e-mail address of the recipient. Are you trying to do away with this and let the customer choose the address when their e-mail program comes up?
NormanNorman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
Hi Norman,
Yes I just wanted the image and when a person clicks on it their email program opens up with the product name in the body of the email and also the exact location. I may have to go back to your original post.
Cheers,
JacyJacys Computer Supplies
Web: http://www.jacyscomputers.com.au
email: sales@jacyscomputers.com.au
Comment
-
OK got you now. Here's a simple way to do that using just a single <IMG..> tag and the javascript in the onclick handler of that image.
Code:<img src="email_me_to_a_friend.gif" alt="email a friend" width="100" height="32" border="0" onclick="location.href='mailto:' + '?subject=Take a look at www.jacyscomputers.com.au' + '&bcc=recommend@jacyscomputers.com.au' + '&body=I just saw the following product - NETQUOTEVAR:PRODUCTNAME - at ' + location.href + '#NETQUOTEVAR:PRODUCTANCHOR ' + 'and thought you might be interested.';">
NormanNorman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
-
I edited my above post for readability. Better take another look in case you got the earlier one.
This is just a single <IMG...> tag (even though spread over sevaeral lines of code) so it will be easy to place on the page.
NormanNorman - www.drillpine.biz
Edinburgh, U K / Bitez, Turkey
Comment
Comment