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

#   Code in the productname line

##

- **[mariussport](/forum/user/9713-mariussport "View mariussport's Profile")**
- [![mariussport's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/car.gif)](/forum/user/9713-mariussport "View mariussport's Profile") Topic Author
- [ Offline](/forum/user/9713-mariussport)
- Test fase

Less More

- Posts: 122
- Thank you received: 3
-
-
-
- [](http://bal.mariusklabbers.nl)
-

14 years 2 weeks ago [\#69293](#69293) by [mariussport](/forum/user/9713-mariussport "View mariussport's Profile")  *[Code in the productname line](/forum/4-how-to/69293-code-in-the-productname-line#69293 "Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats...")* was created by *[mariussport](/forum/user/9713-mariussport "View mariussport's Profile")*

Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats not nice with long product names and not correct.

just started a new Hikashop Business and the site is a test fase, look at it.
Good is:
[ bal.mariusklabbers.nl/index.php/product-...egory/24-speerwerpen](http://bal.mariusklabbers.nl/index.php/product-categorie/category/24-speerwerpen)
[ bal.mariusklabbers.nl/index.php/product-...e/category/19-acties](http://bal.mariusklabbers.nl/index.php/product-categorie/category/19-acties)

(bestelnummer = order code )

Wrong is:
[ bal.mariusklabbers.nl/index.php/product-...iningsspeer-400-gram](http://bal.mariusklabbers.nl/index.php/product-categorie/product/3-trainingsspeer-400-gram)
[ bal.mariusklabbers.nl/index.php/product-...ct/1-basketbal-garmy](http://bal.mariusklabbers.nl/index.php/product-categorie/product/1-basketbal-garmy)

How to change, withs regards Mariussport, thanks

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 2 weeks ago [\#69324](#69324) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: Code in the productname line](/forum/4-how-to/69293-code-in-the-productname-line#69324 "Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats...")*

Hi,

I think that you'll have to :
- Go to "*Hikashop-&gt;Display-&gt;Views*"
- Edit the Show_default file of the product view of the front-end template that you are using

Hope this will help you.

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

- **[mariussport](/forum/user/9713-mariussport "View mariussport's Profile")**
- [![mariussport's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/car.gif)](/forum/user/9713-mariussport "View mariussport's Profile") Topic Author
- [ Offline](/forum/user/9713-mariussport)
- Test fase

Less More

- Posts: 122
- Thank you received: 3
-
-
-
- [](http://bal.mariusklabbers.nl)
-

14 years 2 weeks ago [\#69478](#69478) by [mariussport](/forum/user/9713-mariussport "View mariussport's Profile")  Replied by *[mariussport](/forum/user/9713-mariussport "View mariussport's Profile")* on topic *[Re: Code in the productname line](/forum/4-how-to/69293-code-in-the-productname-line#69478 "Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats...")*

hello and thanks for answer. I found this CSS rule: "product show default"

&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;

i think i have to change the line: echo $this-&gt;element-&gt;product_code;

Can you help maby.

thanks and greetings, Marius Klabbers

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 2 weeks ago [\#69484](#69484) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: Code in the productname line](/forum/4-how-to/69293-code-in-the-productname-line#69484 "Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats...")*

Ok, How do you want to display your product code in your product page ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY5MjkzLWNvZGUtaW4tdGhlLXByb2R1Y3RuYW1lLWxpbmU/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: 86295
- Thank you received: 14273
-
-

14 years 2 weeks ago [\#69576](#69576) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Code in the productname line](/forum/4-how-to/69293-code-in-the-productname-line#69576 "Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats...")*

You can simply add the tag &lt;br/&gt; before that product code display code and that will put the product code on a new line.

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

- **[mariussport](/forum/user/9713-mariussport "View mariussport's Profile")**
- [![mariussport's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/car.gif)](/forum/user/9713-mariussport "View mariussport's Profile") Topic Author
- [ Offline](/forum/user/9713-mariussport)
- Test fase

Less More

- Posts: 122
- Thank you received: 3
-
-
-
- [](http://bal.mariusklabbers.nl)
-

14 years 2 weeks ago [\#69626](#69626) by [mariussport](/forum/user/9713-mariussport "View mariussport's Profile")  Replied by *[mariussport](/forum/user/9713-mariussport "View mariussport's Profile")* on topic *[Re: Code in the productname line](/forum/4-how-to/69293-code-in-the-productname-line#69626 "Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats...")*

Hi Nicolas, thats exactly wat i wamt to do, thanks.
1. In the php file i can make a text rule: Productname/Codenumber.
2. i like to see:
Productname
Codenumber

but i can't find the ride place to put &lt;br /&gt; sorry when i try i lose the productpage!

&lt;div id="hikashop_product_top_part" class="hikashop_product_top_part"&gt;
&lt;h1&gt;
&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;/h1&gt;

will you show me please. Thanks marius

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 2 weeks ago [\#69641](#69641) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: Code in the productname line](/forum/4-how-to/69293-code-in-the-productname-line#69641 "Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats...")*

Hi,

You'll just have to put your "&lt;br/&gt;" before theses lines : Code:

echo $this-&gt;element-&gt;product_code; ?&gt; &lt;/span&gt;

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

- **[mariussport](/forum/user/9713-mariussport "View mariussport's Profile")**
- [![mariussport's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/car.gif)](/forum/user/9713-mariussport "View mariussport's Profile") Topic Author
- [ Offline](/forum/user/9713-mariussport)
- Test fase

Less More

- Posts: 122
- Thank you received: 3
-
-
-
- [](http://bal.mariusklabbers.nl)
-

14 years 2 weeks ago [\#69709](#69709) by [mariussport](/forum/user/9713-mariussport "View mariussport's Profile")  Replied by *[mariussport](/forum/user/9713-mariussport "View mariussport's Profile")* on topic *[Re: Code in the productname line](/forum/4-how-to/69293-code-in-the-productname-line#69709 "Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats...")*

hi, it should work, but the result is a "blanc page".
To separate name and code: i can create in that line" echo "/Articlenumber". than i see
Productname/Articlenumberxxx
but that is not very nice.

greetings Marius

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

14 years 2 weeks ago [\#69779](#69779) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Re: Code in the productname line](/forum/4-how-to/69293-code-in-the-productname-line#69779 "Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats...")*

Sorry Can you do it agin but by putting this line Code:

echo "&lt;br/&gt;";

instead of just &lt;br/&gt;

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

- **[mariussport](/forum/user/9713-mariussport "View mariussport's Profile")**
- [![mariussport's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/car.gif)](/forum/user/9713-mariussport "View mariussport's Profile") Topic Author
- [ Offline](/forum/user/9713-mariussport)
- Test fase

Less More

- Posts: 122
- Thank you received: 3
-
-
-
- [](http://bal.mariusklabbers.nl)
-

14 years 2 weeks ago [\#69831](#69831) by [mariussport](/forum/user/9713-mariussport "View mariussport's Profile")  Replied by *[mariussport](/forum/user/9713-mariussport "View mariussport's Profile")* on topic *[Re: Code in the productname line](/forum/4-how-to/69293-code-in-the-productname-line#69831 "Hello, in the product orders we need ( the product number) CODE. On the site in the categorie product list, its very nice published. But in the product page the code is after the product name. Thats...")*

Hi,
everywhere in the php file "product show default" the function &lt;br /&gt; works perfect. For instance before 'product_top_part" or "product_left_part"
But not there where i want it, between the Name and Code.
At this moment i can't find the solution. maybe later on, now i have too work on the shop products.

greetings Marius

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

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

[](#top)
