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

#   Código de producto en email

##

- **[vilo](/forum/user/7826-vilo "View vilo's Profile")**
- [![vilo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7826.jpg)](/forum/user/7826-vilo "View vilo's Profile") Topic Author
- [ Offline](/forum/user/7826-vilo)

Less More

- Posts: 86
- Thank you received: 2
-
-

13 years 1 month ago [\#121729](#121729) by [vilo](/forum/user/7826-vilo "View vilo's Profile")  *[Código de producto en email](/forum/4-how-to/861651-codigo-de-producto-en-email#121729 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")* was created by *[vilo](/forum/user/7826-vilo "View vilo's Profile")*

Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

13 years 1 month ago [\#121739](#121739) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Código de producto en email](/forum/4-how-to/861651-codigo-de-producto-en-email#121739 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")*

Hi,

You can do like explained here:
[ www.hikashop.com/forum/4-how-to/38562-ad...ification-email.html](http://www.hikashop.com/forum/4-how-to/38562-add-product-code-to-admin-notification-email.html)

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

- **[vilo](/forum/user/7826-vilo "View vilo's Profile")**
- [![vilo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7826.jpg)](/forum/user/7826-vilo "View vilo's Profile") Topic Author
- [ Offline](/forum/user/7826-vilo)

Less More

- Posts: 86
- Thank you received: 2
-
-

13 years 1 month ago [\#121748](#121748) by [vilo](/forum/user/7826-vilo "View vilo's Profile")  Replied by *[vilo](/forum/user/7826-vilo "View vilo's Profile")* on topic *[Código de producto en email](/forum/4-how-to/861651-codigo-de-producto-en-email#121748 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")*

Nicolas, muchas gracias por su respuesta. Estuve viendo el post que me indica, pero no se cual es el archivo que debo editar, ni la línea de código.

Le agredecere mucho su ayuda.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

13 years 1 month ago [\#121752](#121752) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Código de producto en email](/forum/4-how-to/861651-codigo-de-producto-en-email#121752 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")*

it's the files of the emails in the folder media/com_hikashop/mail/ that you need to edit. The exact file depends on the exact email you want to edit.
The line is:
&lt;p&gt;&lt;?php echo $item-&gt;order_product_name; ?&gt;&lt;/p&gt;&lt;?php

as explained in the other post.

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

- **[vilo](/forum/user/7826-vilo "View vilo's Profile")**
- [![vilo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7826.jpg)](/forum/user/7826-vilo "View vilo's Profile") Topic Author
- [ Offline](/forum/user/7826-vilo)

Less More

- Posts: 86
- Thank you received: 2
-
-

13 years 1 month ago [\#121762](#121762) by [vilo](/forum/user/7826-vilo "View vilo's Profile")  Replied by *[vilo](/forum/user/7826-vilo "View vilo's Profile")* on topic *[Código de producto en email](/forum/4-how-to/861651-codigo-de-producto-en-email#121762 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")*

Nicolas, gracias por su respuesta.

Segun creo, el archivo a editar sería "Notificación del pedido al administrador"

La línea que encuentro es esta:
Code:

&lt;p&gt;&lt;?php echo $item-&gt;order_product_name; if($group){ $display_item_price=false; foreach($data-&gt;cart-&gt;products as $j =&gt; $optionElement){ if($optionElement-&gt;order_product_option_parent_id != $item-&gt;order_product_id) continue; if($optionElement-&gt;order_product_price&gt;0){ $display_item_price = true; } } if($display_item_price){ if($config-&gt;get('price_with_tax')){ echo ' '.$currencyHelper-&gt;format($item-&gt;order_product_price+$item-&gt;order_product_tax,$data-&gt;order_currency_id); }else{ echo ' '.$currencyHelper-&gt;format($item-&gt;order_product_price,$data-&gt;order_currency_id); } } } ?&gt;&lt;/p&gt;

Puede ser esta?

Muchas gracias desde ya

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

13 years 1 month ago [\#121771](#121771) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Código de producto en email](/forum/4-how-to/861651-codigo-de-producto-en-email#121771 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")*

Yes, it's that line in that code:
&lt;p&gt;&lt;?php echo $item-&gt;order_product_name;

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

- **[vilo](/forum/user/7826-vilo "View vilo's Profile")**
- [![vilo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7826.jpg)](/forum/user/7826-vilo "View vilo's Profile") Topic Author
- [ Offline](/forum/user/7826-vilo)

Less More

- Posts: 86
- Thank you received: 2
-
-

13 years 1 month ago [\#121779](#121779) by [vilo](/forum/user/7826-vilo "View vilo's Profile")  Replied by *[vilo](/forum/user/7826-vilo "View vilo's Profile")* on topic *[Código de producto en email](/forum/4-how-to/861651-codigo-de-producto-en-email#121779 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")*

Nicolas, probé reemplazando la primer línea, el código me quedó así:
Code:

&lt;p&gt;&lt;?php echo $item-&gt;order_product_name . ' (' . $item-&gt;order_product_code . ')'; if($group){ $display_item_price=false; foreach($data-&gt;cart-&gt;products as $j =&gt; $optionElement){ if($optionElement-&gt;order_product_option_parent_id != $item-&gt;order_product_id) continue; if($optionElement-&gt;order_product_price&gt;0){ $display_item_price = true; } } if($display_item_price){ if($config-&gt;get('price_with_tax')){ echo ' '.$currencyHelper-&gt;format($item-&gt;order_product_price+$item-&gt;order_product_tax,$data-&gt;order_currency_id); }else{ echo ' '.$currencyHelper-&gt;format($item-&gt;order_product_price,$data-&gt;order_currency_id); } } } ?&gt;&lt;/p&gt;

Pero al colocar este código no me funciona el último paso en el check out. Me da error que no encuentra la página...

Muchas gracias desde ya.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

13 years 1 month ago [\#121846](#121846) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Código de producto en email](/forum/4-how-to/861651-codigo-de-producto-en-email#121846 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")*

I'm not sure if you're saying that it creates an error of if it doesn't display the code without any error.
If it doesn't display the code without any error, then you're probably not looking at the code of the email you want to change.
If it displays an error message, then what is the error ?

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

- **[vilo](/forum/user/7826-vilo "View vilo's Profile")**
- [![vilo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7826.jpg)](/forum/user/7826-vilo "View vilo's Profile") Topic Author
- [ Offline](/forum/user/7826-vilo)

Less More

- Posts: 86
- Thank you received: 2
-
-

13 years 1 month ago [\#121920](#121920) by [vilo](/forum/user/7826-vilo "View vilo's Profile")  Replied by *[vilo](/forum/user/7826-vilo "View vilo's Profile")* on topic *[Código de producto en email](/forum/4-how-to/861651-codigo-de-producto-en-email#121920 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")*

Nicolas, lo probé ahora y funcionó!

No se...antes parece que había una falla en el servidor y me daba error, pero no era por este cambio en el código.

Muchas gracias por su ayuda!

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

- **[vilo](/forum/user/7826-vilo "View vilo's Profile")**
- [![vilo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7826.jpg)](/forum/user/7826-vilo "View vilo's Profile") Topic Author
- [ Offline](/forum/user/7826-vilo)

Less More

- Posts: 86
- Thank you received: 2
-
-

9 years 10 months ago [\#256743](#256743) by [vilo](/forum/user/7826-vilo "View vilo's Profile")  Replied by *[vilo](/forum/user/7826-vilo "View vilo's Profile")* on topic *[Código de producto en email (Product code (SKU) by email)](/forum/4-how-to/861651-codigo-de-producto-en-email#256743 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")*

Hi.

I reopen this topic pirque I think things have changed ...

I am using Hikashop Starter 2.6.4 in Joomla 3.6.4 and I can not find the code that indicates this post in the file order_admin_notification.html.php

I would be grateful if you would indicate how I should modify the code so that the administrator can also email the product code (SKU).

Thank you very much from now.

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14266
-
-

9 years 10 months ago [\#256749](#256749) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Código de producto en email (Product code (SKU) by email)](/forum/4-how-to/861651-codigo-de-producto-en-email#256749 "Hola. ¿como puedo hacer para que en el email del pedido me llegue también el código de producto? Muchas gracias")*

Hi,

The product code should already be in the email notifications unless you turned off the "display product code" setting of the HikaShop configuration.
If you want to have the product code even when that setting is turned off, then you would have to modify the preload of the email so that it would set the product_code in any case.
Please note that support is only for commercial editions.
And even more so for help regarding code modifications like these.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzg2MTY1MS1jb2RpZ28tZGUtcHJvZHVjdG8tZW4tZW1haWw/dG1wbD1tYXJrZG93bg==) 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?

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

Time to create page: 0.361 seconds

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

[](#top)
