Order Notification Email

Open to all! Ask other shopowners for help.
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Order Notification Email

Post by burt »

radhavallabh wrote: Thu Jul 07, 2022 6:42 am I found the %s it is in n_update_order.php, It seems the email was from the Order Update i sent while testing.

const MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_ORDER_NUMBER = 'Order Number: %d';
const MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_INVOICE_URL = 'Detailed Invoice: %s';
const MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_DATE_ORDERED = 'Date Ordered: %s';

It is this %s that is showing before the URL dear...

You would remove the %s from the language file.
I am not here to build for you.
I am here to build with you. Let's help each other.


Join The Code Co-op to get access to your library in the Code Co-op Forum
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: Order Notification Email

Post by radhavallabh »

burt wrote: Thu Jul 07, 2022 9:29 am
radhavallabh wrote: Thu Jul 07, 2022 6:42 am I found the %s it is in n_update_order.php, It seems the email was from the Order Update i sent while testing.

const MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_ORDER_NUMBER = 'Order Number: %d';
const MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_INVOICE_URL = 'Detailed Invoice: %s';
const MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_DATE_ORDERED = 'Date Ordered: %s';

It is this %s that is showing before the URL dear...

You would remove the %s from the language file.
That fixes the issue dear!!
Thank you so much;
Very Warm Regds./
radhavallabh
ecartz
Core Team
Posts: 3084
Joined: Tue Nov 05, 2019 6:02 pm
Phoenix Version:
Has thanked: 4 times
Been thanked: 208 times

Re: Order Notification Email

Post by ecartz »

You have Guest Checkout installed. You need to fix it in the includes/hooks/admin/siteWide/swPwa.php

Or for now, just take out the %s from the language constant.
radhavallabh
Senior Contributor
Posts: 466
Joined: Tue Oct 27, 2020 4:09 am
Phoenix Version: 1.1.0.6
Has thanked: 29 times
Been thanked: 3 times

Re: Order Notification Email

Post by radhavallabh »

ecartz wrote: Thu Jul 07, 2022 10:05 am You have Guest Checkout installed. You need to fix it in the includes/hooks/admin/siteWide/swPwa.php

Or for now, just take out the %s from the language constant.
I have this in the hook dear-

Code: Select all

 $link = $check_status['customers_guest'] == '1' ? '' : MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_INVOICE_URL . ' ' . $GLOBALS['Admin']->catalog('account_history_info.php', ['order_id' => $data['orders_id']]) . "\n";
    $email = STORE_NAME . "\n" . MODULE_NOTIFICATIONS_UPDATE_ORDER_SEPARATOR . "\n" .
             sprintf(MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_ORDER_NUMBER .  "\n", $data['orders_id']) .
             $link .
             sprintf(MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_DATE_ORDERED .  "\n", Date::expound($data['date_purchased'])) . "\n\n" .
             $products_review_links . "\n" .
             $data['notify_comments'] .
             sprintf(MODULE_NOTIFICATIONS_UPDATE_ORDER_TEXT_STATUS_UPDATE, $data['status_name']);
Please can you elaborate where the issue is....
Very Warm Regds./
radhavallabh


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply