| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Give Customer Choice of HTML or TEXT email | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Would this be possible?
-Create a new db field, "htmltext" with Y/N values Y-HTML, N-TEXT -add this to register.php and register.tpl giving the customer the choice of what format they want their email to be. -this is where im having trouble, i found it easy to create if statments in tpls but for the register.php and orders.php, i cant find the proper code to be along the lines of "If userinfo html text eq Y then send profileHTML.tpl else send profile.tpl I tried putting the if statements before the func_processed send mail lines but no luck, can someone help me out? Thank you. |
|||||||
#2
|
|||||||
|
|||||||
![]() I'm not sure what version you're using, but look in include/register.php. In my version I have a send mail function such as:
Code:
In order to use either TEXT or HTML, I would suggest something like this: Code:
Again, I am not sure of version info, or if the variables used above will work in your version, but this should get you started... Let me know if you have trouble implementing it.
__________________
Jeremy X-Cart Gold v3.4.14 [Linux/Apache] Heavily Modded |
|||||||
|
|||
X-Cart forums © 2001-2020
|