ORDER_STATUS_NOTIFICATION

  • Posts: 24
  • Thank you received: 0
7 years 2 months ago #277730

-- url of the page with the problem -- : http:www.eutopiantrader.com
-- HikaShop version -- : 3.1.1
-- Joomla version -- : 3.7.5
-- PHP version -- : 7.0.22
-- Browser(s) name and version -- : Chrome 60.0.3112.113
-- Error-message(debug-mod must be tuned on) -- : n/a

My​ question was in the ORDER_STATUS_NOTIFICATION what does the code $customer_name = @$customer->name;​ ​actually do? Meaning what is the function of the ->name after the variable? What I am trying to understand is how to modify the preload.php properly in order to have the email status notifications display only the users first name, where currently is is displaying first and last name. There is no constant to change for this as I can tell due to the way the variables are set in the preload.php. (however, I am still testing, ​and ​I may fix the problem, but I would still like to understand the code and what that line is doing​)​.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
7 years 2 months ago #277744

Hello,

$customer is a PHP object containing the HikaShop customer information.
php.net/manual/en/language.types.object.php

www.hikashop.com/support/documentation/6...ocumentation.html#db

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.055 seconds
Powered by Kunena Forum