[Skip to main content](#vessel-content)

#   Market Order Status Notification Not Showing Product Code

##

- **[ACMLLC](/forum/user/34241-acmllc "View ACMLLC's Profile")**
- [![ACMLLC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34241-acmllc "View ACMLLC's Profile") Topic Author
- [ Offline](/forum/user/34241-acmllc)

Less More

- Posts: 21
- Thank you received: 2
-
-

7 years 4 months ago -  7 years 4 months ago [\#308046](#308046) by [ACMLLC](/forum/user/34241-acmllc "View ACMLLC's Profile")  *[Market Order Status Notification Not Showing Product Code](/forum/23-market-how-to/897757-market-order-status-notification-not-showing-product-code#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&#95;VALUE and {LINEVAR:PRODUCT&#95;CODE} does not display anything. {LINEVAR:PRODUCT&#95;CODE} also display null/nothing in the Market order status email:  Hikashop's PRELOAD builds the value:  Is it possible to do this in the HikaMarket order status notification email?  Thanks, Jim")* was created by *[ACMLLC](/forum/user/34241-acmllc "View ACMLLC's Profile")*

-- 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:
Code:

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

Hikashop's PRELOAD builds the value:
Code:

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

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

Thanks,
Jim

Last edit: 7 years 4 months ago by [ACMLLC](/forum/user/34241-acmllc "View ACMLLC's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODk3NzU3LW1hcmtldC1vcmRlci1zdGF0dXMtbm90aWZpY2F0aW9uLW5vdC1zaG93aW5nLXByb2R1Y3QtY29kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

7 years 4 months ago [\#308090](#308090) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Market Order Status Notification Not Showing Product Code](/forum/23-market-how-to/897757-market-order-status-notification-not-showing-product-code#308090 "-- 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&#95;VALUE and {LINEVAR:PRODUCT&#95;CODE} does not display anything. {LINEVAR:PRODUCT&#95;CODE} also display null/nothing in the Market order status email:  Hikashop's PRELOAD builds the value:  Is it possible to do this in the HikaMarket order status notification email?  Thanks, Jim")*

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 Code:

'ORDER_PRODUCT_CODE' =&gt; (bool)$shopConfig-&gt;get('show_product_code', false),

By Code:

'ORDER_PRODUCT_CODE' =&gt; (bool)$shopConfig-&gt;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 &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODk3NzU3LW1hcmtldC1vcmRlci1zdGF0dXMtbm90aWZpY2F0aW9uLW5vdC1zaG93aW5nLXByb2R1Y3QtY29kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[ACMLLC](/forum/user/34241-acmllc "View ACMLLC's Profile")**
- [![ACMLLC's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34241-acmllc "View ACMLLC's Profile") Topic Author
- [ Offline](/forum/user/34241-acmllc)

Less More

- Posts: 21
- Thank you received: 2
-
-

7 years 4 months ago [\#308096](#308096) by [ACMLLC](/forum/user/34241-acmllc "View ACMLLC's Profile")  Replied by *[ACMLLC](/forum/user/34241-acmllc "View ACMLLC's Profile")* on topic *[Market Order Status Notification Not Showing Product Code](/forum/23-market-how-to/897757-market-order-status-notification-not-showing-product-code#308096 "-- 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&#95;VALUE and {LINEVAR:PRODUCT&#95;CODE} does not display anything. {LINEVAR:PRODUCT&#95;CODE} also display null/nothing in the Market order status email:  Hikashop's PRELOAD builds the value:  Is it possible to do this in the HikaMarket order status notification email?  Thanks, Jim")*

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](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODk3NzU3LW1hcmtldC1vcmRlci1zdGF0dXMtbm90aWZpY2F0aW9uLW5vdC1zaG93aW5nLXByb2R1Y3QtY29kZT90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
