Remove warning messages inside emails to customer

  • Posts: 28
  • Thank you received: 1
9 years 7 months ago #198869

-- HikaShop version -- : 2.4.0
-- Joomla version -- : 3.4.0
-- PHP version -- : 5.4.38
-- Browser(s) name and version -- : Safari 8.0.5(Mac), Chrome (Mac) 41.0.2272.118 (64-bit)
-- Error-message(debug-mod must be tuned on) -- : These are displayed inside customer emails:

Warning: Creating default object from empty value in /home4/dennis3m/public_html/media/com_hikashop/mail/order_status_notification.html.modified.php on line 53

Warning: Creating default object from empty value in /home4/dennis3m/public_html/media/com_hikashop/mail/order_status_notification.html.modified.php on line 56

Warning: Creating default object from empty value in /home4/dennis3m/public_html/media/com_hikashop/mail/order_status_notification.html.modified.php on line 57

Hello:

1) Now trying to edit the email content by going to System> email. I have not had much luck with it. I'm trying to remove billing address information from all of our emails to our vendors. Do you think you could give me some direction as to what to edit or delete...and if I should be editing the HTML or the two sections below that?


2) Been testing orders and notice that emails are being sent out by the system with warning messages, would you know if I have done something wrong to cause these?

<bold>At the top of outgoing emails to customer (Your order No. PD0066 is now confirmed at....)</bold>

The status of your order No. PD0066 has been changed to confirmed.
Warning: Creating default object from empty value in /home4/dennis3m/public_html/media/com_hikashop/mail/order_status_notification.html.modified.php on line 53

Warning: Creating default object from empty value in /home4/dennis3m/public_html/media/com_hikashop/mail/order_status_notification.html.modified.php on line 56

Warning: Creating default object from empty value in /home4/dennis3m/public_html/media/com_hikashop/mail/order_status_notification.html.modified.php on line 57

============================



<bold>At the top of outgoing emails to Vendors (Your order No. B3L3 is now confirmed at...)</bold>

Notice: Undefined index: in /home4/dennis3m/public_html/plugins/system/languagefilter/languagefilter.php on line 172

Notice: Trying to get property of non-object in /home4/dennis3m/public_html/plugins/system/languagefilter/languagefilter.php on line 172

Notice: Undefined offset: 201 in /home4/dennis3m/public_html/media/com_hikamarket/mail/order_status_notification.preload.php on line 115

Notice: Use of undefined constant JPATH_COMPONENT - assumed 'JPATH_COMPONENT' in /home4/dennis3m/public_html/libraries/legacy/view/legacy.php on line 164




Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 7 months ago #198871

Hi,

As you understand, we can't help you on the warning which are not related to HikaShop ; so we can't help you for the the system "languagefilter" or the "viewlegacy" parts.
About the email, as you see it is the "order_status_notification.html.modified" ; which mean that you have modified the email.
And because there is no more PHP in the official HikaShop "order_status_notification.html" mail ; I think that you have inserted the PHP yourself.
So it won't be possible for us to give you an answer for some code we do not know or we did not wrote.

My recommendation is to not use PHP in the "html" part but just HTML and tags.
You can put some PHP in the "preload" part of the email ; it will be easier for the organisation and you will be able to access to much more elements.

About the tags, you can have content tags (to display something) but there is also conditional tags ( if ) ; you can see some example in the email with the IF for the product code.

I think it will be easier to put an IF in order to display or not the addresses and set the variable used in the IF in the email preload.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 28
  • Thank you received: 1
9 years 7 months ago #199735

"I think it will be easier to put an IF in order to display or not the addresses and set the variable used in the IF in the email preload."

I would like to try this suggestion. May I know which file we should addd the 'IF' statement into? If you could provide an example of how the 'IF' statement should look like, that would be tremendously helpful. Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 7 months ago #199778

Hi,

I don't know what code you used and thus can't say much about what should be done.
The simplest is to turn off the "error reporting" setting of the Joomla configuration and it will hide all these messages.

Please Log in or Create an account to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum