View Full Version : oui token to include product desc. in customer E-mail
jimathtrf
04-04-06, 02:11 AM
I would like to add the product description in the E-mail customer notification using the OUI tokens. Specifically, I need to include a note on the amount of the sale that is tax deductable. I can add it to the product description on the product screen but would like to include same in the E-mail header.
Is this doable if:
(1) there is only a single product on the order.
(2) if there are two or more products on the order?
Would the header look like this?
%OUI%Thanks for your order. %description%
ILoveHostasaurus
04-04-06, 02:26 AM
You can't do that with the OpenUI notification module but you can do that with the Truxoft MmHTMLc module: http://www.mivacentral.com... (http://www.mivacentral.com/Merchant2/merchant.mv?Screen=PROD&Store_Code=m&Product_Code=TRUXOFT-MMHTMLC&Category_Code=&Search=mmhtmlc&Search_Type=AND&Offset=0)
jimathtrf
04-04-06, 03:12 AM
David,
Thank you, I will look at the Troxoft module.
Vic - WolfPaw Computers
04-04-06, 07:55 AM
Actually, you can with OpenTokens.
It wouldnt be prudent however, since the lookups if multiple products are ordered, could cause the mail server to time out waiting for data to send the mail.
However, you could script something with OpenTokens to scan the order, grab the product ID for each product, and pass Products.d.desc back into the notification as a string.
This really would not be an advisible thing to do though.
truXoft
04-04-06, 12:19 PM
This is easily doable with the MmHTMLc (http://www.mivacentral.com/truxoft/?product=TRUXOFT-MMHTMLC) module. You can either put the text into the product description - it is then displayed below the product name. Another possibility is using the user-defined column - either dip laying the info conditionally in or below the product line, or just storing it into a variable that you then display in the invoice/email footer. Neither of the methods would cause any noticeable delays. If you prefer the last method, the code in the user-def column would be similar to this example:
<MvIF EXPR="{Products.d.code EQ 'YOURCODE'}">
<MvASSIGN NAME="g.myFooter" VALUE="{'<b>your text, including HTML formatting</b>'}">
</MvIF>
And you would display it in the footer with this simple token: %myFooter%
You could use the Mail Manager email module and put the token %product_descrip% in the product display area.
http://www.emporiumplus.com/go/wcw/PROD/1AA/1AA00089
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.