Photo Shop: Email notification subject line change? Photo Shop: Email notification subject line change?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Photo Shop: Email notification subject line change?

Started by pda4de, July 14, 2007, 10:08:31 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pda4de

Hello Stramm,
I'm working with the email I receive when an order is placed.
Is it possible to work with the e-mail subject line?
I think the change should be made in, photo_shop_checkout.php
Somewhere in this area...but I'm not sure.

      if(photoshop_email_the_user($lang_photoshop_email_order.$invoice, $lang_photoshop['email_subject_order'])){

         //when user got his email, then send to admin

         photoshop_email_the_user($lang_photoshop_email_admin.$invoice, $lang_photoshop['email_subject_order_admin'], true);

I would like the subject line to read "'email_subject_order_admin' from {USER_NAME}".
Is it possible for you to help me make this change?
Thanks, Paul


Stramm

the subject you can find and modify in the lang file
eg. to 'Hi admin, you received a new order from '

now you have to do a lil modification in the photo_shop_checkout.php
(again as example for the mail to the admin)
if(photoshop_email_the_user($lang_photoshop_email_order.$invoice, $lang_photoshop['email_subject_order'])){

to
if(photoshop_email_the_user($lang_photoshop_email_order.$invoice, $lang_photoshop['email_subject_order'].USER_NAME)){

See constant USER_NAME holds the user name of the logged in user... you just have to add it to the subject

pda4de