Hi, i want to add to any email the first name of the buyer. Can someone help me? I try with this: http://forum.opencart.com/viewtopic.php?f=20&t=41057 but not is working. I am with 2.3.0.2.
It's not really an easy thing to explain in a forum post, but you need to decide on a string to be replaced with the first name, something like {first_name}. Then you need to find the bit of code where emails are sent and run the content of the email through a php funtion like str_replace and replace {first_name} with the content of the variable that contains the customer name.
Unless you're happy doing this coding you're best finding a developer from the Commercial Support Forum to do this, or looking for a Mail Merge extension in the marketplace.
Unless you're happy doing this coding you're best finding a developer from the Commercial Support Forum to do this, or looking for a Mail Merge extension in the marketplace.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
I think not is hard to make this, just 1-2 lines of code to add on the language/email and on the function. I want to get the first name of the order and add it on the begin, like Hello "firstname", ....
Who is online
Users browsing this forum: No registered users and 18 guests