Announcement

Collapse
No announcement yet.

email product id

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    So....

    was there a definitive script produced that will let you email product details to a friend using a button on a page?

    My button is OK, but I get a lot of HTML BR tags showing in the product description that looks unprofessional.

    Like this:

    Power Ball <BR>The Powerball is a cracking little device, which is great for building up those much needed wrist muscles (insert your own mucky joke here). <BR><BR>It has been designed specifically for the sportsman in mind, so if you play golf, tennis, badminton, squash or martial arts at all, then this is for you. <BR><BR>It works by centrifugal force and you keep the momentum going by dynamically twisting and flexing your wrist. Addictive fun as well.<BR><BR>WAS £14.99 http://www.tiggypig.com/cgibin/ss000...DREF=POWERBALL

    Obviously it'd be cool just to have a product link, or a description that avoids all the HTML code being shown.

    This is my code on my product pages:

    <a href="mailto:?Subject=I%20saw%20this%20NETQUOTEVAR:PRODUCTNAME%20at%20CUSTOMVAR:COMPANYNAME%20and%20thought%20of%20you!&bcc=CUSTOMVAR:BCCRECOMMEND&Body=NETQUOTEVAR:PRODUCTNAME%20NETQUOTEVAR:PRODUCTDESCRIPTION%20CUSTOMVAR:CGIBINURL/ss000001.pl?PRODREF=NETQUOTEVAR:PRODUCTREF"><img src="CUSTOMVAR:EMAILAFRIENDIMAGE" alt="Email NETQUOTEVAR:PRODUCTNAME to a friend..." border="0">

    Comment


      #32
      Originally posted by NormanRouxel
      This might work-

      In one of the JavaScipt versions (not your <a ...> one I'm afraid) replace NETQUOTEVAR:PRODUCTDESCRIPTION

      with

      Code:
      ' + 'NETQUOTEVAR:PRODUCTDESCRIPTION'.replace(/<br>|<p>/ig,"%0a") + '
      This should replace all those <br> and <p> with a new line.

      Norman
      TiggyPig - have you tried this bit of code?

      Comment


        #33
        Originally posted by NormanRouxel View Post
        That was it above. Just put this (rather long one-liner) in a suitable place in Act_ProductLine.html.

        Code:
        Enter e-mail address to tell a friend <input type=text value="" size=40 onchange="var thisloc=location.href + '#NETQUOTEVAR:PRODUCTANCHOR';if(this.value != ''){location.href='mailto:' + this.value +'?subject=Take a look at '+thisloc+'&body=I saw '+thisloc+' and thought you would be interested.'}"><input type=button value="OK">
        Norman
        This does not appear to work in IE 7 or 8. Cannot figure out why. Works fine in Firefox, Chrome, Opera and Safari. I'm not a coder at all so don't really know what to do. I think it's a great function and really want to use it.

        Comment


          #34
          Thanks pfb5.

          Comment

          Working...
          X