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

#   Add custom field before product name

##

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

Less More

- Posts: 46
- Thank you received: 0
-
-

12 years 11 months ago [\#135363](#135363) by [giorgiofox](/forum/user/19052-giorgiofox "View giorgiofox's Profile")  *[Add custom field before product name](/forum/32-content-creation/864123-add-custom-field-before-product-name#135363 "Hello, I want to insert a custom field (text) before the title in the product page.. I need to edit the file show&#95;default.php, but I cannot insert a custom field before the &quot;hikashop&#95;product&#95;name&#95;main&quot; What I need to insert instead xxxxxxxxx ?  Thanks Giorgio")* was created by *[giorgiofox](/forum/user/19052-giorgiofox "View giorgiofox's Profile")*

Hello,
I want to insert a custom field (text) before the title in the product page..
I need to edit the file show_default.php, but I cannot insert a custom field before the "hikashop_product_name_main"
What I need to insert instead xxxxxxxxx ?

Thanks
Giorgio
Code:

&lt;?php /** * @package HikaShop for Joomla! * @version 2.1.3 * @author hikashop.com * @copyright (C) 2010-2013 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?&gt;&lt;div id="hikashop_product_top_part" class="hikashop_product_top_part"&gt; &lt;?php if(!empty($this-&gt;element-&gt;extraData-&gt;topBegin)) { echo implode("\r\n",$this-&gt;element-&gt;extraData-&gt;topBegin); } ?&gt; &lt;h3&gt; xxxxxxxxx - &lt;span id="hikashop_product_name_main" class="hikashop_product_name_main"&gt; &lt;?php if (hikashop_getCID('product_id')!=$this-&gt;element-&gt;product_id &amp;&amp; isset ($this-&gt;element-&gt;main-&gt;product_name)) echo $this-&gt;element-&gt;main-&gt;product_name; else echo $this-&gt;element-&gt;product_name; ?&gt; &lt;/span&gt; &lt;?php if ($this-&gt;config-&gt;get('show_code')) { ?&gt; &lt;span id="hikashop_product_code_main" class="hikashop_product_code_main"&gt; &lt;?php echo $this-&gt;element-&gt;product_code; ?&gt; &lt;/span&gt; &lt;?php } ?&gt; &lt;/h3&gt;

- [ ![h282b241.png](/forum/attachment/14120) ](/forum/attachment/14120 "h282b241.png") [ ](/forum/attachment/14120?download=1 "h282b241.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODY0MTIzLWFkZC1jdXN0b20tZmllbGQtYmVmb3JlLXByb2R1Y3QtbmFtZT90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

12 years 11 months ago [\#135400](#135400) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add custom field before product name](/forum/32-content-creation/864123-add-custom-field-before-product-name#135400 "Hello, I want to insert a custom field (text) before the title in the product page.. I need to edit the file show&#95;default.php, but I cannot insert a custom field before the &quot;hikashop&#95;product&#95;name&#95;main&quot; What I need to insert instead xxxxxxxxx ?  Thanks Giorgio")*

Hi,

Why can't you insert it there ?
Simply add such code and it will work: Code:

&lt;?php echo $this-&gt;element-&gt;COLUMN; ?&gt;

where COLUMN is the column name of your field.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMyLWNvbnRlbnQtY3JlYXRpb24vODY0MTIzLWFkZC1jdXN0b20tZmllbGQtYmVmb3JlLXByb2R1Y3QtbmFtZT90bXBsPW1hcmtkb3du) 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.046 seconds

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