Error in email

  • Posts: 9
  • Thank you received: 0
10 years 1 month ago #210954

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.3
-- Error-message(debug-mod must be tuned on) -- : Notice: Undefined property: stdClass::$customtext_216_10_29_10 in .....media/com_hikashop/mail/order_admin_notification.preload.php on line 173

I created an item with "custom text" field type and we are now getting this error in our order confirmation emails. The only reason I know that my custom field is causing it is the automated column name - customtext_216_10_29_10

I have just now disabled that field for Backend. We only need to show it on the frontend anyway. Will that fix it?

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

  • Posts: 26274
  • Thank you received: 4045
  • MODERATOR
10 years 1 month ago #210956

Hi,

In the file, please replace line 173

if(empty($item->$namekey) && !strlen($item->$namekey)) continue;
By
if(empty($item->$namekey) || !strlen($item->$namekey)) continue;
It will avoid that warning.

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.

Time to create page: 0.054 seconds
Powered by Kunena Forum