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

#   What code writes the product-code...

##

- **[Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")**
- [![Micke&#95;skane's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile") Topic Author
- [ Offline](/forum/user/7228-micke-skane)

Less More

- Posts: 56
- Thank you received: 0
-
-

14 years 6 months ago -  14 years 6 months ago [\#48247](#48247) by [Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")  *[What code writes the product-code...](/forum/2-general-talk-about-hikashop/48247-what-code-writes-the-product-code#48247 "In the show&#95;default.php there´s this code at the top of the page:  I want to know what php-file that populate the product-code on the frontend-page for the specific product. Now there is a static word Art-Nr i the file but if I choose another charistic of the product the static word disappear. So I thought that if create the Art-Nr-word in the product-code-file that wil solve the problem...  /Micke")* was created by *[Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")*

In the show_default.php there´s this code at the top of the page: Code:

&lt;span id="hikashop_product_code_main" class="hikashop_product_code_main"&gt; Art-Nr: &lt;?php echo $this-&gt;element-&gt;product_code; ?&gt; &lt;/span&gt;

I want to know what php-file that populate the product-code on the frontend-page for the specific product.
Now there is a static word Art-Nr i the file but if I choose another charistic of the product the static word disappear.
So I thought that if create the Art-Nr-word in the product-code-file that wil solve the problem...

/Micke

Last edit: 14 years 6 months ago by [Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ4MjQ3LXdoYXQtY29kZS13cml0ZXMtdGhlLXByb2R1Y3QtY29kZT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86323
- Thank you received: 14283
-
-

14 years 6 months ago [\#48309](#48309) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: What code writes the product-code...](/forum/2-general-talk-about-hikashop/48247-what-code-writes-the-product-code#48309 "In the show&#95;default.php there´s this code at the top of the page:  I want to know what php-file that populate the product-code on the frontend-page for the specific product. Now there is a static word Art-Nr i the file but if I choose another charistic of the product the static word disappear. So I thought that if create the Art-Nr-word in the product-code-file that wil solve the problem...  /Micke")*

You should do the same modification in the file "show" of the view "product" where the variants product code is displayed.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ4MjQ3LXdoYXQtY29kZS13cml0ZXMtdGhlLXByb2R1Y3QtY29kZT90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")**
- [![Micke&#95;skane's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile") Topic Author
- [ Offline](/forum/user/7228-micke-skane)

Less More

- Posts: 56
- Thank you received: 0
-
-

14 years 6 months ago [\#48411](#48411) by [Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")  Replied by *[Micke\_skane](/forum/user/7228-micke-skane "View Micke&#95;skane's Profile")* on topic *[Re: What code writes the product-code...](/forum/2-general-talk-about-hikashop/48247-what-code-writes-the-product-code#48411 "In the show&#95;default.php there´s this code at the top of the page:  I want to know what php-file that populate the product-code on the frontend-page for the specific product. Now there is a static word Art-Nr i the file but if I choose another charistic of the product the static word disappear. So I thought that if create the Art-Nr-word in the product-code-file that wil solve the problem...  /Micke")*

Now It´s behaves like I wanted!
Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzQ4MjQ3LXdoYXQtY29kZS13cml0ZXMtdGhlLXByb2R1Y3QtY29kZT90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.065 seconds

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