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

#   Changing the format of the product page

##

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

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 5 months ago [\#52836](#52836) by [joe1255](/forum/user/5294-joe1255 "View joe1255's Profile")  *[Changing the format of the product page](/forum/4-how-to/52836-changing-the-format-of-the-product-page#52836 "Please go here...    leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet  &quot;1 3/8&quot; PB BEAR ASSY W/ROT SEN MAGNET 880779 880779&quot;  Notice that it lists the product name and after that has the product name twice.  How can I show the product name only once, or none?  Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.  Another question: Please go here   leslaundry.com/index.php/parts/adc  an notice there is no space between the discount and the price...please advise. Thanks")* was created by *[joe1255](/forum/user/5294-joe1255 "View joe1255's Profile")*

Please go here...

[ leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet](http://leslaundry.com/index.php/parts/adc/product/6-1-3-8-pb-bear-assy-w-rot-sen-magnet)

"1 3/8" PB BEAR ASSY W/ROT SEN MAGNET 880779 880779"

Notice that it lists the product name and after that has the product name twice.

How can I show the product name only once, or none?

Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.

Another question: Please go here [ leslaundry.com/index.php/parts/adc](http://leslaundry.com/index.php/parts/adc) an notice there is no space between the discount and the price...please advise. Thanks

- [ ![adchikaexample.jpg](/forum/attachment/4144) ](/forum/attachment/4144 "...ikaexample.jpg") [ ](/forum/attachment/4144?download=1 "...ikaexample.jpg")

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 5 months ago [\#52902](#52902) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Changing the format of the product page](/forum/4-how-to/52836-changing-the-format-of-the-product-page#52902 "Please go here...    leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet  &quot;1 3/8&quot; PB BEAR ASSY W/ROT SEN MAGNET 880779 880779&quot;  Notice that it lists the product name and after that has the product name twice.  How can I show the product name only once, or none?  Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.  Another question: Please go here   leslaundry.com/index.php/parts/adc  an notice there is no space between the discount and the price...please advise. Thanks")*

Hi joe1255,

The name is not displayed twice, the second is the product code.
Go in HikaShop &gt; System &gt; Configuration &gt; Display, and check "No" for the option "Display product code".

You can edit the product view in HikaShop &gt; Display &gt; Views, and edit the view product /show_default.php to format the product page like you want.

And the view: product / listing_price.php

add: Code:

echo " ";

before: Code:

echo JText::_('PRICE_DISCOUNT_END').'&lt;/span&gt;';

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

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

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 5 months ago -  14 years 5 months ago [\#52928](#52928) by [joe1255](/forum/user/5294-joe1255 "View joe1255's Profile")  Replied by *[joe1255](/forum/user/5294-joe1255 "View joe1255's Profile")* on topic *[Re: Changing the format of the product page](/forum/4-how-to/52836-changing-the-format-of-the-product-page#52928 "Please go here...    leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet  &quot;1 3/8&quot; PB BEAR ASSY W/ROT SEN MAGNET 880779 880779&quot;  Notice that it lists the product name and after that has the product name twice.  How can I show the product name only once, or none?  Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.  Another question: Please go here   leslaundry.com/index.php/parts/adc  an notice there is no space between the discount and the price...please advise. Thanks")*

Sorry I meant product code...

Ok here is my problem. On the products listing page for a certain category, for example this one...

[ leslaundry.com/index.php/parts/adc](http://leslaundry.com/index.php/parts/adc)

I want to have the product code show up, which it does, because I went to HikaShop &gt; System &gt; Configuration &gt; Display, and check "Yes" for the option "Display product code".

Ok now, if you click on the the top product in the list...

[ leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet](http://leslaundry.com/index.php/parts/adc/product/6-1-3-8-pb-bear-assy-w-rot-sen-magnet)

You'll notice that the product code is listed twice. I only want it to show once but I still want to product code to show up on the previous page, the products listing page for a certain category.

Please see the attachment in this thread for how I would like the product page to look. I want the product code below the product info. Thanks.

Last edit: 14 years 5 months ago by [joe1255](/forum/user/5294-joe1255 "View joe1255's Profile").

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 5 months ago -  14 years 5 months ago [\#52932](#52932) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Changing the format of the product page](/forum/4-how-to/52836-changing-the-format-of-the-product-page#52932 "Please go here...    leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet  &quot;1 3/8&quot; PB BEAR ASSY W/ROT SEN MAGNET 880779 880779&quot;  Notice that it lists the product name and after that has the product name twice.  How can I show the product name only once, or none?  Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.  Another question: Please go here   leslaundry.com/index.php/parts/adc  an notice there is no space between the discount and the price...please advise. Thanks")*

Try to add this property: Code:

.hikashop_product_page hikashop_product_code_main{ display: none; }

In HikaShop &gt; System &gt; Configuration &gt; Display, edit the Front-end CSS File.

Last edit: 14 years 5 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

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

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 5 months ago -  14 years 5 months ago [\#52943](#52943) by [joe1255](/forum/user/5294-joe1255 "View joe1255's Profile")  Replied by *[joe1255](/forum/user/5294-joe1255 "View joe1255's Profile")* on topic *[Re: Changing the format of the product page](/forum/4-how-to/52836-changing-the-format-of-the-product-page#52943 "Please go here...    leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet  &quot;1 3/8&quot; PB BEAR ASSY W/ROT SEN MAGNET 880779 880779&quot;  Notice that it lists the product name and after that has the product name twice.  How can I show the product name only once, or none?  Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.  Another question: Please go here   leslaundry.com/index.php/parts/adc  an notice there is no space between the discount and the price...please advise. Thanks")*

That worked! Thanks.

Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.

Last edit: 14 years 5 months ago by [joe1255](/forum/user/5294-joe1255 "View joe1255's Profile").

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 5 months ago [\#52957](#52957) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Changing the format of the product page](/forum/4-how-to/52836-changing-the-format-of-the-product-page#52957 "Please go here...    leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet  &quot;1 3/8&quot; PB BEAR ASSY W/ROT SEN MAGNET 880779 880779&quot;  Notice that it lists the product name and after that has the product name twice.  How can I show the product name only once, or none?  Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.  Another question: Please go here   leslaundry.com/index.php/parts/adc  an notice there is no space between the discount and the price...please advise. Thanks")*

Which attachment ? I think you forgot it.

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

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

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 5 months ago [\#52970](#52970) by [joe1255](/forum/user/5294-joe1255 "View joe1255's Profile")  Replied by *[joe1255](/forum/user/5294-joe1255 "View joe1255's Profile")* on topic *[Re: Changing the format of the product page](/forum/4-how-to/52836-changing-the-format-of-the-product-page#52970 "Please go here...    leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet  &quot;1 3/8&quot; PB BEAR ASSY W/ROT SEN MAGNET 880779 880779&quot;  Notice that it lists the product name and after that has the product name twice.  How can I show the product name only once, or none?  Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.  Another question: Please go here   leslaundry.com/index.php/parts/adc  an notice there is no space between the discount and the price...please advise. Thanks")*

It's the one on the first post of this thread.

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

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

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 5 months ago [\#52973](#52973) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Changing the format of the product page](/forum/4-how-to/52836-changing-the-format-of-the-product-page#52973 "Please go here...    leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet  &quot;1 3/8&quot; PB BEAR ASSY W/ROT SEN MAGNET 880779 880779&quot;  Notice that it lists the product name and after that has the product name twice.  How can I show the product name only once, or none?  Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.  Another question: Please go here   leslaundry.com/index.php/parts/adc  an notice there is no space between the discount and the price...please advise. Thanks")*

Yes it's possible.

Edit the product view in HikaShop &gt; Display &gt; Views, and edit the view product /show_default.php to format the product page like you want.

For example, if you want to put the product code under the product name, just do like that: Code:

echo "&lt;br /&gt;&lt;span class='hika_product_code_show'&gt;".$this-&gt;element-&gt;product_code."&lt;/span&gt;";

Instead of: Code:

echo " &lt;span class='hika_product_code_show'&gt;".$this-&gt;element-&gt;product_code."&lt;/span&gt;";

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

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

Less More

- Posts: 24
- Thank you received: 0
-
-

14 years 5 months ago [\#52984](#52984) by [joe1255](/forum/user/5294-joe1255 "View joe1255's Profile")  Replied by *[joe1255](/forum/user/5294-joe1255 "View joe1255's Profile")* on topic *[Re: Changing the format of the product page](/forum/4-how-to/52836-changing-the-format-of-the-product-page#52984 "Please go here...    leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet  &quot;1 3/8&quot; PB BEAR ASSY W/ROT SEN MAGNET 880779 880779&quot;  Notice that it lists the product name and after that has the product name twice.  How can I show the product name only once, or none?  Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.  Another question: Please go here   leslaundry.com/index.php/parts/adc  an notice there is no space between the discount and the price...please advise. Thanks")*

Here's what I have now and it's not working. Please advise.

&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;
if ($this-&gt;config-&gt;get('show_code')) {
echo "&lt;br /&gt;&lt;span class='hika_product_code_show'&gt;".$this-&gt;element-&gt;product_code."&lt;/span&gt;";
}
?&gt;
&lt;/span&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzUyODM2LWNoYW5naW5nLXRoZS1mb3JtYXQtb2YtdGhlLXByb2R1Y3QtcGFnZT90bXBsPW1hcmtkb3du) 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: 86363
- Thank you received: 14296
-
-

14 years 5 months ago [\#53088](#53088) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Changing the format of the product page](/forum/4-how-to/52836-changing-the-format-of-the-product-page#53088 "Please go here...    leslaundry.com/index.php/parts/adc/produ...ssy-w-rot-sen-magnet  &quot;1 3/8&quot; PB BEAR ASSY W/ROT SEN MAGNET 880779 880779&quot;  Notice that it lists the product name and after that has the product name twice.  How can I show the product name only once, or none?  Please look at the attachment and let me know if it is possible to format the parts page this way...with the part number below the description.  Another question: Please go here   leslaundry.com/index.php/parts/adc  an notice there is no space between the discount and the price...please advise. Thanks")*

It doesn't work because you're not editing the view file for the correct template. Please double check your modifications.

Another solution is to simply add that CSS on your template's CSS:
.hika_product_code_show{display:block;}

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

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