Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Photo Shop: Email notification subject line change?  (Read 2963 times)

0 Members and 1 Guest are viewing this topic.

pda4de

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Photo Shop: Email notification subject line change?
« on: July 14, 2007, 10:08:31 am »

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
« Last Edit: July 16, 2007, 08:25:07 pm by Stramm »
Logged

zac

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 153
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Photo Shop: Email notification subject line change?
« Reply #2 on: July 15, 2007, 01:01:12 pm »

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)
Code: [Select]
if(photoshop_email_the_user($lang_photoshop_email_order.$invoice, $lang_photoshop['email_subject_order'])){
to
Code: [Select]
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: Photo Shop: Email notification subject line change?
« Reply #3 on: July 16, 2007, 06:15:01 pm »

Thanks for the tip!

Paul
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 20 queries.