None Customer Notified messages appearing in order history

Open to all! Ask other shopowners for help.
superche
Member
Posts: 17
Joined: Fri Jun 25, 2021 6:57 am
Phoenix Version:

None Customer Notified messages appearing in order history

Post by superche »

Hi all using osCommerce Online Merchant v2.3.4.1 CE and what I am seeking to change is when you make a note on an order and deselect the checkbox on Notify Customer: the notes still appear for the customer when they logon and go to My Order History -> View

Seeking to have notes flagged as "Notify Customer:" = No to not show up in My Order History -> View

I know so coding may be required

Thanks Troy


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: None Customer Notified messages appearing in order history

Post by heatherbell »

superche wrote: Fri Jun 25, 2021 7:01 am checkbox on Notify Customer: the notes still appear for the customer when they logon and go to My Order History -> View
Sorry, I don't remember what appeared on your version but on Phoenix there is also an 'Append Comments' check box which appends your comments to the order and the email or not.
superche
Member
Posts: 17
Joined: Fri Jun 25, 2021 6:57 am
Phoenix Version:

Re: None Customer Notified messages appearing in order history

Post by superche »

I was supplied this information
find in account_history_info:

$statuses_query =

add:

, osh.customer_notified

and with the little if statement you can control the output.

if ($statuses['customer_notified'] == '1'){ xxxxx }

But I am unsure where / how to insert the if statement

Code: Select all

      $statuses_query = tep_db_query("select os.orders_status_name, osh.date_added, osh.comments, osh.customer_notified from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int)$_GET['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int)$languages_id . "' and os.public_flag = '1' order by osh.date_added");
      while ($statuses = tep_db_fetch_array($statuses_query)) {
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: None Customer Notified messages appearing in order history

Post by burt »

Does the STATUS of the Order (that shows to the customer) have a PUBLIC status?
Look at your admin > localization > orders status

What should happen...is this:

You update the order into a PRIVATE status if you do not want the comment to show to the customer.
I am not here to build for you.
I am here to build with you. Let's help each other.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: None Customer Notified messages appearing in order history

Post by raiwa »

You update the order into a PRIVATE status if you do not want the comment to show to the customer.
This is not exact the behaviour of public and private order status.
If private, the order dosn't show at all in the account history orders list.
The switcher label says:
Show the order to the customer at this order status level
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
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: None Customer Notified messages appearing in order history

Post by burt »

raiwa wrote: Mon Jun 28, 2021 10:39 am
Show the order to the customer at this order status level
I haven't tested it, but thought it worked the way I described.
If not, it should be changed to do so as an order a customer makes must be shown to the customer (in my opinion) whereas an admin note on the order might be private (eg "have reordered XYZ from ABC supplier, this order cannot be fulfilled until it arrives" or whatever)...
I am not here to build for you.
I am here to build with you. Let's help each other.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: None Customer Notified messages appearing in order history

Post by raiwa »

I tested it and it works like the label says: the whole order is hidden, not only the status and comments.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
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: None Customer Notified messages appearing in order history

Post by burt »

raiwa wrote: Mon Jun 28, 2021 11:54 am I tested it and it works like the label says: the whole order is hidden, not only the status and comments.
Then it needs to be changed in my opinion. GDPR issues here also - you have data about the customer that he/she cannot access...
I am not here to build for you.
I am here to build with you. Let's help each other.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: None Customer Notified messages appearing in order history

Post by raiwa »

Then it needs to be changed in my opinion. GDPR issues here also - you have data about the customer that he/she cannot access...
I agree.
Meanwhile: welcome back! :)
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
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: None Customer Notified messages appearing in order history

Post by burt »

Cheers :) I'm still randomly online at the moment - I'm still doing a lot of (not very nice) travelling - I am hoping to get back to normality by the end of the summer or so.

-

I *think* it would just be the change to remove "public_flag" in the SQL in two places;

account_history.php
and the page for account_history_info.php

The text in the lang file would need to be amended to make shopowner aware that the order will always be shown, but the Comment(s) (when using comments with non-public status) would not be shown.

Thoughts anyone else? Upsides/downsides?
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
Post Reply