easy to do cause the function's already written, you just need to modify it a lil bit so it makes a difference between admin and user
find in photo_shop_checkout.php
if (photoshop_add_data($shop_array, $order_id)) { // adding data succeeded
//now email the user
if(photoshop_email_the_user($lang_photoshop_email_order, $lang_photoshop['email_subject_order'])){
//when user got his email, then send to admin
cpg_mail('admin', sprintf($lang_photoshop['email_subject_order_admin'], $CONFIG['gallery_name']), nl2br($lang_photoshop_email_admin));
replace with
if (photoshop_add_data($shop_array, $order_id)) { // adding data succeeded
//now email the user
if(photoshop_email_the_user($lang_photoshop_email_order, $lang_photoshop['email_subject_order'])){
//when user got his email, then send to admin
photoshop_email_the_user($lang_photoshop_email_admin, $lang_photoshop['email_subject_order_admin'], true);
replace the entire function photoshop_email_the_user (near the end of photo_shop_checkout.php) with that new version
function photoshop_email_the_user($message, $subject, $admin = '')
{
global $CONFIG, $SHOP_CONFIG, $lang_photoshop, $cd_price, $order_id;
$user_info = photoshop_user_details(USER_ID);
if ($admin) {
$user_info['user_email']='admin';
}
$template_vars = array(
'{ORDER_ID}' => $order_id,
'{SITE_NAME}' => $CONFIG['gallery_name'],
'{PRICE}' => number_format(($cd_price[0]+$cd_price[1]+$SHOP_CONFIG['ship']),2),
'{USER_NAME}' => (USER_NAME),
'{ADMIN}' => $CONFIG['gallery_name'],
'{LINK}' => $CONFIG['ecards_more_pic_target'],
);
$mail_body=nl2br(strtr($message, $template_vars));
if(cpg_mail($user_info['user_email'], $subject, $mail_body, 'text/plain', $CONFIG['gallery_name'], $CONFIG['gallery_admin_email'] )) {
return true;
}
return false;
}
you now can use all above placeholders
{ORDER_ID}
{SITE_NAME} (you set in config)
{ADMIN} same as above (till I know what better to do with it, hehe)
{PRICE}
{USER_NAME}
{LINK} link to your gallery... not to the shop admin, that'll be
{LINK}index.php?file=photo_shop/photo_shop_admin