No serial data in confirmation email

  • Posts: 3
  • Thank you received: 0
8 years 8 months ago #209000

-- HikaShop version -- : HikaShop Essential: 2.5.0
-- HikaSerial version -- : 1.9.1
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.4.40
-- Browser(s) name and version -- : Google Chrome
-- Error-message(debug-mod must be tuned on) -- : No serial data in confirmation email

When I make a test order I will receive a created status and a confirmed status email correctly. But there is no serial data in the email.

In the back-end the Assignable order statuses of Hika sertial is confirmed, shipped
The serial pack and serials are attached to to ordered product.
The AttachSerial - HikaSerial plugin is tried enabled and disabled

What did I forget or do wrong?

Can you please help to get the serial data in the confirmation email?

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

  • Posts: 3
  • Thank you received: 0
8 years 8 months ago #209002

Got the serial data in the email working but how can I show extra serial date in the email as well?

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
8 years 8 months ago #209037

Hi,

It depends mostly where you want to display it.
HikaSerial have views for the content it adds in the pages or emails, like "orderserial / show_email_notification_html" for the notification email (one in the front-end and another for the backend dependings from which content the mail is sent).

I have made a patch for HikaSerial which will be in the next release ; the patch gave the "extra data" unserialized in the view.
For the moment, in the view, you need ot add that code

if(!empty($serial->serial_extradata) && is_string($serial->serial_extradata))
	$serial->serial_extradata = unserialize($serial->serial_extradata);
in order to unserialized the extra data to be sure to have an array and not the serialized string.

Then you can display the extra data you want, like
echo $serial->serial_extradata['mykey'];

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: 3
  • Thank you received: 0
8 years 8 months ago #209141

I tried to add the patch you gave me in the "show_email_notification_html" file , but for some reason cannot get the extra data in the conformation email. Maybe I do something wrong but can you please send me the complete html script with the patch?

Thanks so much!

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

  • Posts: 25994
  • Thank you received: 4004
  • MODERATOR
8 years 8 months ago #209171

Hi,

Like I wrote in my previous message, the email part is complex:

one in the front-end and another for the backend depending from which content the mail is sent
For a start it's better to override the backend view and use the "email" button in the HikaShop order edition (in the backend).
The modifications can be then see directly in the email preview ; It is the best way to perform test and be sure that you're editing the right view.

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.

Moderators: Obsidev
Time to create page: 0.064 seconds
Powered by Kunena Forum