Not seeing serial data in order confirmation email

  • Posts: 98
  • Thank you received: 3
11 years 11 months ago #79852

I am on HikaShop 2.0 and Hika Serial 1.5 upgrade today.

When I do a test order with a coupon to reduce the cost to zero I get no serial data in the order confirmation email.
Serial is visible in front end order display

Looking at other threads on this subject I see that this code

<?php
JPluginHelper::importPlugin('hikashop');
$dispatcher =& JDispatcher::getInstance();
$dispatcher->trigger('onAfterOrderProductsListingDisplay', array(&$data->cart, 'email_notification_html'));
?>
should be in the order_status_notification email but it is not. I remember all this working when I first tested it some months back now it's broken.

What to do? If I need that code snippet in there can you give me a clue WHERE it should go.

Please help this is quite urgent.

Conrad

Last edit: 11 years 11 months ago by Jerome.

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
11 years 11 months ago #79867

Hi,

Did you modified your emails using overrides ?
You should find the original content of the "order_status_notification" email in the directory "media/com_hikashop/mail/".

This is a partial part of the email in HikaShop 2.0, as you could see, the trigger call is near the end of the email.

			<tr>
				<td>
					<?php
					$fields = $fieldsClass->getFields('frontcomp',$data,'order','');
					foreach($fields as $fieldName => $oneExtraField) {
						if(empty($data->$fieldName)) continue;
						echo "<br/>".$fieldsClass->trans($oneExtraField->field_realname).' : '.$fieldsClass->show($oneExtraField,$data->$fieldName);
					} ?>
				</td>
			</tr>
<?php
	JPluginHelper::importPlugin('hikashop');
	$dispatcher = JDispatcher::getInstance();
	$dispatcher->trigger('onAfterOrderProductsListingDisplay', array(&$data->cart, 'email_notification_html'));
?>
			<tr>
				<td height="10">
				</td>
			</tr>
			<tr>
				<td>
					<?php echo JText::sprintf('THANK_YOU_FOR_YOUR_ORDER',HIKASHOP_LIVE);?>
					<br/>
					<br/>
					<?php echo JText::sprintf('BEST_REGARDS_CUSTOMER',$mail->from_name);?>
				</td>
			</tr>

Best 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.
The following user(s) said Thank You: cpreen

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

  • Posts: 98
  • Thank you received: 3
11 years 11 months ago #79904

Thanks Jerome,

That's the weird thing, I didn't find that code snippet in there. But I did put it in and the whole thing works now.

I appreciate your quick reply. Have a good weekend - what's left of it.

Conrad

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

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