Customize serial display in order email

  • Posts: 38
  • Thank you received: 0
8 years 2 weeks ago #254491

-- HikaShop version -- : 2.6.4
-- HikaSerial version -- : 1.10.4

Can you please help me change default template

I need product name first then serial on the second line, like that, and other serials for this product if customer bough more then one

order_product_name
serial_data
serial_data
serial_data
show_email_notification_html.php have table that hard for me to understand if i delete table it show me

order_product_name
serial_dataserial_dataserial_dataserial_data

Thank you!

Edit1
This wont help much
<table width="100%">
  <tr>
<td><?php echo $data->order_product_name; ?></td>
</tr>
  <tr>
<td><?php echo $data->serial_data; ?></td>
</tr>
<?php
	}
?>
</table>
<?php
}
?>

Last edit: 8 years 2 weeks ago by Jerome. Reason: [code] is nice

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 weeks ago #254509

Hi,

I am sorry but it is really difficult to understand what you want to do exactly.
Plus I don't see any relation between the subject of the thread and what seem to be your question.

Now, the view "show_email_notification_html" is a view which display the listing of the serial for an order.
And each serial can be assigned with a product in the order (= an order product) ; depending the quantity of that order product or the relation between the product and the pack ; you can have several serials for one order product entry.

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: 38
  • Thank you received: 0
8 years 2 weeks ago #254514

Hi
Thank you Jerome, and sorry for my english
I mean im trying to make my own template and changing order_status_notification.shipped.html.modified.php
Ok let me show you what i finally did and what i want to make

I made this putting <!--{IF:ORDER_SUMMARY}-->{VAR:ORDER_SUMMARY}<!--{ENDIF:ORDER_SUMMARY}--> to order_status_notification.shipped.html.modified.php

Item Name 1
Code 1-1
Item Name 1
Code 1-2
Item Name 1
Code 1-3
Item Name 2
Code 2-1
Item Name 2
Code 2-2

But i want my template look

Item Name 1
Code 1-1
Code 1-2
Code 1-3
Item Name 2
Code 2-1
Code 2-2

I tried to do something with {LINEVAR:PRODUCT_NAME} and {VAR:ORDER_SUMMARY} but didnt make it at all

Last edit: 8 years 2 weeks ago by Kugata.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 weeks ago #254536

Hi,

The customization of "order_status_notification.shipped.html.modified.php" is related to HikaShop and not HikaSerial.

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: 38
  • Thank you received: 0
8 years 2 weeks ago #254588

Jerome wrote: Hi,

The customization of "order_status_notification.shipped.html.modified.php" is related to HikaShop and not HikaSerial.

Regards,


Ok well lets try work with HikaSerial - orderserial / show_email_notification_html.php i have a question here too
Rigth now if i dont have serial code (ended) hikaserial wont put name and code into email but i want to hikaserial put name anyway and leave space for a code, so ill put code myself, this will be helpfull for me when im not at the PC in the moment and work from iphone or ipad. This will save my time checking email and look for an order then copy item name, copy serial codes. Ill just open my administration panel change status to shipped and put codes in blank spaces if they ended

Attachments:
Last edit: 8 years 2 weeks ago by Kugata.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 2 weeks ago #254638

Hi,

You can :
1 / Customize the HikaShop email by creating an override of the email.
2 / Customize the HikaSerial content in the notification emails by creating an override of the view "show_email_notification_html".

The first is JUST for HikaShop.
The second is JUST for HikaSerial.

Afterwards, you can see to integrate some HikaSerial code into the HikaShop email ; but it requires some development/PHP skills in order to know where to get the corresponding code ; thing that I won't recommend because HikaSerial have a view dedicated for his content.

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