I am trying to add the email a friend code (from AUG) but only want it to appear once on a page. we may have more than one product per page and use single add to cart button
I have therefore added it to the Single Add to Cart Bottom Layout.
This dis actually work but gave numerous errors in Actinic saying the variable were in an invalid place - which is actually correct as we are not "within" a product at this time
I therefore edited the code to try and allow for this changing the following variables:
ProductName in the subject line to SectionName - this works well
EncodedProductAnchor - I have tried numerous setting for this including trying to hard code the path and appending SectionPageName but I still get a weird url if the link works at all.
Currently I am trying the following:
When I select the Go button nothing happens.
If I look at the generated html I get the following
Can anyone point me in the right direction - all I need to do is somehow get the url for the section page into the code so that it appears as the link in the email. Ideally without having to hard code the path but that is a small price to pay.
Hope someone can help - this does seem to be quite a simple task so I am puzzled as to where I have gone wrong.....
Regards
I have therefore added it to the Single Add to Cart Bottom Layout.
This dis actually work but gave numerous errors in Actinic saying the variable were in an invalid place - which is actually correct as we are not "within" a product at this time
I therefore edited the code to try and allow for this changing the following variables:
ProductName in the subject line to SectionName - this works well
EncodedProductAnchor - I have tried numerous setting for this including trying to hard code the path and appending SectionPageName but I still get a weird url if the link works at all.
Currently I am trying the following:
Code:
<input type=text value="" size=40 onchange=" var thisloc='www.ringhaddy-daffodils.com/acatalog/<actinic:variable name="SectionPageName" />'; if (this.value != '') { location.href='mailto:' + this.value +'?subject=Take%20a%20look%20at%20<actinic:variable name="SectionName" />&body=I%20saw%20' + thisloc + '%20and%20thought%20you%20would%20be%20interested.' } ">
If I look at the generated html I get the following
Code:
<input value="" size="40" onchange=" var thisloc='www.ringhaddy-daffodils.com/acatalog/Accomplice.html'; if (this.value != '') { location.href='mailto:' + this.value +'?subject=Take%20a%20look%20at%20Accomplice&body=I%20saw%20' + thisloc + '%20and%20thought%20you%20would%20be%20interested.' } " type="text">
Hope someone can help - this does seem to be quite a simple task so I am puzzled as to where I have gone wrong.....
Regards
Comment