Market Order Status Notification Not Showing Product Code

  • Posts: 11
  • Thank you received: 2
  • Hikamarket Multivendor Hikashop Business
2 months 4 weeks ago #308046

-- HikaShop version -- : 4.0.3
-- HikaMarket version -- : 3.0.2
-- Joomla version -- : 3.9.8
-- PHP version -- : 7.1.30
-- Browser(s) name and version -- : Firefox 67.0.2
-- Error-message(debug-mod must be tuned on) -- : N/A

Hi Jerome,

We would like our HikaMarket Order Status Notification email to display the Product Code as part of the CUSTOMFIELD just like it does in our HikaShop notification emails.

In HikaShop's order status notification, our product code is displayed as part of the CUSTOMFIELD_VALUE and {LINEVAR:PRODUCT_CODE} does not display anything. {LINEVAR:PRODUCT_CODE} also display null/nothing in the Market order status email:

<td style="border-bottom:1px solid #ddd;padding-bottom:3px;">
			{LINEVAR:PRODUCT_IMG}
			{LINEVAR:PRODUCT_NAME}<!--{IF:ORDER_PRODUCT_CODE}--> {LINEVAR:PRODUCT_CODE}[<!--{ENDIF:ORDER_PRODUCT_CODE}-->
<br /><br />
FOR DOWNLOADABLE PRODUCTS, CLICK ON THE LINKS BELOW:
<br />
			{LINEVAR:PRODUCT_DOWNLOAD}
			{LINEVAR:PRODUCT_DETAILS}
		</td>
		{LINEVAR:CUSTOMFIELD_VALUE}
		<td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right">{LINEVAR:PRODUCT_PRICE}</td>
		<td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right">{LINEVAR:PRODUCT_QUANTITY}</td>
		<td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right">{LINEVAR:PRODUCT_TOTAL}</td>

Hikashop's PRELOAD builds the value:
$texts['CUSTOMFIELD_NAME'] = '';
	$texts['FOOTER_COLSPAN'] = 3;
	if(hikashop_level(1)){
		$fields = $fieldsClass->getFields('display:mail_status_notif=1',$null,'product');
		if(!empty($fields)){
			$product_customfields = array();
	
	
$cartProduct['CUSTOMFIELD_VALUE'] = '';
		if(!empty($fields) && hikashop_level(1)){
			foreach($fields as $field){
				$namekey = $field->field_namekey;
				$productData = @$productClass->all_products[$item->product_id];
				$cartProduct['CUSTOMFIELD_VALUE'] .= '<td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right">'.(empty($productData->$namekey)?'':$fieldsClass->show($field,$productData->$namekey)).'</td>';

Is it possible to do this in the HikaMarket order status notification email?

Thanks,
Jim

Last edit: 2 months 4 weeks ago by ACMLLC.

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

  • Posts: 23699
  • Thank you received: 3678
  • MODERATOR
2 months 3 weeks ago #308090

Hello,

There is few differences between the HikaMarket order status notification email and the HikaShop order status notification one.
I can see that there was some bug fixed and some improvements made in the HikaShop email ; elements which need to be duplicate in HikaMarket.
Regarding the product code, the problem is related to a wrong configuration keyname ; so in the preload you need to replace

'ORDER_PRODUCT_CODE' => (bool)$shopConfig->get('show_product_code', false),
By
'ORDER_PRODUCT_CODE' => (bool)$shopConfig->get('show_code', false),
And the product code will be displayed.

Regarding the custom fields, you're right, you need to add that code into the HikaMarket preload to have access to the "CUSTOMFIELD_VALUE" tag like in the HikaShop email.

I will add that code within HikaMarket for the next release ; in the mean time, since you can create override for email, you can also add the code in the preload and then, use the tag.
With the future release, since the code will be there, you will be able to delete the override for the "preload" (except you made other modifications), but you could also keep it if you do not need the other modifications.

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: 11
  • Thank you received: 2
  • Hikamarket Multivendor Hikashop Business
2 months 3 weeks ago #308096

Thanks! We got the product code to display with "show_code".

We will wait for your next release regarding the custom fields.
I'd like to clarify for everyone that the product code is NOT part of our CUSTOMFIELD_VALUE in HikaShop. I originally thought this was true.

Grateful for the fast and accurate service, Jerome!

The following user(s) said Thank You: Jerome

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

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