i know this has been touched upon a few times but ive never seen a final piece of code.
where a product is out of stock, im trying to add a button which when clicked lauches the customers email client, prefills the 'to', 'subject' and main body fields. the email when sent by the customer is requesting to be notified when a product is back in stock.
so far i have amended the 'send to a friend' code and entered into Act_OutOfStock.html template, copied below. this works well but i need to work on a few amendments...
how do i auto generate the 'emailto' field (eg customerservices@mysite.com), how do i amend the subject to autoinclude the product name of the product item on which the email is generated. i cannot get the netquotevar to work in the subject field.
many thanks.
<!-- OutOfStock HTML begin -->
<!-- This template is used for the out of stock message. -->
<B><P class="actwarningcolor">NETQUOTEVAR:OUTOFSTOCK</P></B>
<tr>
<td colspan="2"><strong>Notify me when back in stock?</strong></td>
</tr>
<td width="120"> <input type=text value="Enter email" size="11" class="searchinput" onFocus="this.value='';" onChange="var thisloc=location.href; if (this.value != '') {location.href='mailto:' + this.value +'?subject=Out of stock&body=Please notify me when ' + thisloc + ' is back in stock.'}"></td>
<td width="50"> <input name="imageField" type="image" src="butt_go_white.gif"></td>
<!-- This template is used for the out of stock message. -->
<!-- OutOfStock HTML end -->
where a product is out of stock, im trying to add a button which when clicked lauches the customers email client, prefills the 'to', 'subject' and main body fields. the email when sent by the customer is requesting to be notified when a product is back in stock.
so far i have amended the 'send to a friend' code and entered into Act_OutOfStock.html template, copied below. this works well but i need to work on a few amendments...
how do i auto generate the 'emailto' field (eg customerservices@mysite.com), how do i amend the subject to autoinclude the product name of the product item on which the email is generated. i cannot get the netquotevar to work in the subject field.
many thanks.
<!-- OutOfStock HTML begin -->
<!-- This template is used for the out of stock message. -->
<B><P class="actwarningcolor">NETQUOTEVAR:OUTOFSTOCK</P></B>
<tr>
<td colspan="2"><strong>Notify me when back in stock?</strong></td>
</tr>
<td width="120"> <input type=text value="Enter email" size="11" class="searchinput" onFocus="this.value='';" onChange="var thisloc=location.href; if (this.value != '') {location.href='mailto:' + this.value +'?subject=Out of stock&body=Please notify me when ' + thisloc + ' is back in stock.'}"></td>
<td width="50"> <input name="imageField" type="image" src="butt_go_white.gif"></td>
<!-- This template is used for the out of stock message. -->
<!-- OutOfStock HTML end -->
Comment