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

#   Modifying product &gt; show file

##

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

Less More

- Posts: 79
- Thank you received: 0
-
-

15 years 4 months ago [\#18303](#18303) by [PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")  *[Modifying product &gt; show file](/forum/4-how-to/18303-modifying-product-show-file#18303 "Hi there,  I have a product page with characteristics and custom items. The characteristics display first and then the custom items. I would like to swap them around so the custom items are at the top.  I had a look at the product &gt; show file, but I don't know enough about PHP to cut the correct bit of code and paste it above the characteristics.  I tried, but get syntax errors because a '}' ends up in the wrong place when I modify the code.  Thanks")* was created by *[PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")*

Hi there,

I have a product page with characteristics and custom items. The characteristics display first and then the custom items. I would like to swap them around so the custom items are at the top.

I had a look at the product &gt; show file, but I don't know enough about PHP to cut the correct bit of code and paste it above the characteristics.

I tried, but get syntax errors because a '}' ends up in the wrong place when I modify the code.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzE4MzAzLW1vZGlmeWluZy1wcm9kdWN0LXNob3ctZmlsZT90bXBsPW1hcmtkb3du) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14289
-
-

15 years 4 months ago [\#18310](#18310) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Modifying product &gt; show file](/forum/4-how-to/18303-modifying-product-show-file#18310 "Hi there,  I have a product page with characteristics and custom items. The characteristics display first and then the custom items. I would like to swap them around so the custom items are at the top.  I had a look at the product &gt; show file, but I don't know enough about PHP to cut the correct bit of code and paste it above the characteristics.  I tried, but get syntax errors because a '}' ends up in the wrong place when I modify the code.  Thanks")*

The characteristics are displayed by the code:
if(!empty($this-&gt;element-&gt;characteristics)){
?&gt;&lt;span id="hikashop_product_characteristics" class="hikashop_product_characteristics"&gt;&lt;?php
echo $this-&gt;characteristic-&gt;displayFE($this-&gt;element,$this-&gt;params);
?&gt;&lt;/span&gt;&lt;br /&gt;&lt;?php
}

You can cut&amp;paste that code just before the code:
?&gt;
&lt;span id="hikashop_product_price_with_options_main" class="hikashop_product_price_with_options_main"&gt;
if you want to have it after the custom fields.

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

15 years 4 months ago [\#18313](#18313) by [PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")  Replied by *[PhantomPWR](/forum/user/2255-phantompwr "View PhantomPWR's Profile")* on topic *[Re: Modifying product &gt; show file](/forum/4-how-to/18303-modifying-product-show-file#18313 "Hi there,  I have a product page with characteristics and custom items. The characteristics display first and then the custom items. I would like to swap them around so the custom items are at the top.  I had a look at the product &gt; show file, but I don't know enough about PHP to cut the correct bit of code and paste it above the characteristics.  I tried, but get syntax errors because a '}' ends up in the wrong place when I modify the code.  Thanks")*

Brilliant!

Thanks Nicolas

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 6 months ago [\#200916](#200916) by [rturan](/forum/user/36589-rturan "View rturan's Profile")  Replied by *[rturan](/forum/user/36589-rturan "View rturan's Profile")* on topic *[Modifying product &gt; show file](/forum/4-how-to/18303-modifying-product-show-file#200916 "Hi there,  I have a product page with characteristics and custom items. The characteristics display first and then the custom items. I would like to swap them around so the custom items are at the top.  I had a look at the product &gt; show file, but I don't know enough about PHP to cut the correct bit of code and paste it above the characteristics.  I tried, but get syntax errors because a '}' ends up in the wrong place when I modify the code.  Thanks")*

hi can you help me to find the php file of

"&lt;div id="hikashop_product_characteristics" class="hikashop_product_characteristics"&gt;&lt;table class="hikashop_product_characteristics_table"&gt;&lt;tr&gt;&lt;td&gt;COLORS&lt;/td&gt;&lt;td&gt;&lt;div class="controls"&gt;
&lt;label for="hikashop_product_characteristic_1110" id="hikashop_product_characteristic_1110-lbl" class="radio"&gt;

&lt;input type="radio" name="hikashop_product_characteristic[11]" id="hikashop_product_characteristic_1110" value="10" checked="checked" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);" &gt;&lt;span class="color-name"&gt;Orchid Purple&lt;/span&gt;&lt;img onclick="return hikashopUpdateVariant('hikashop_product_characteristic_1110');" src="[ thequirkshop.com/moleskine/images/color-icons/color2.jpg](http://thequirkshop.com/moleskine/images/color-icons/color2.jpg)" /&gt;
&lt;/label&gt;
&lt;label for="hikashop_product_characteristic_1119" id="hikashop_product_characteristic_1119-lbl" class="radio"&gt;

&lt;input type="radio" name="hikashop_product_characteristic[11]" id="hikashop_product_characteristic_1119" value="19" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);" &gt;&lt;span class="color-name"&gt;Black&lt;/span&gt;&lt;img onclick="return hikashopUpdateVariant('hikashop_product_characteristic_1119');" src="[ thequirkshop.com/moleskine/images/color-icons/black.jpg](http://thequirkshop.com/moleskine/images/color-icons/black.jpg)" /&gt;
&lt;/label&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;COVER&lt;/td&gt;&lt;td&gt;&lt;div class="controls"&gt;
&lt;label for="hikashop_product_characteristic_1514" id="hikashop_product_characteristic_1514-lbl" class="radio"&gt;

&lt;input type="radio" name="hikashop_product_characteristic[15]" id="hikashop_product_characteristic_1514" value="14" checked="checked" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);" &gt;HARD
&lt;/label&gt;
&lt;label for="hikashop_product_characteristic_1526" id="hikashop_product_characteristic_1526-lbl" class="radio"&gt;

&lt;input type="radio" name="hikashop_product_characteristic[15]" id="hikashop_product_characteristic_1526" value="26" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);" &gt;SOFT
&lt;/label&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;FORMAT&lt;/td&gt;&lt;td&gt;&lt;div class="controls"&gt;
&lt;label for="hikashop_product_characteristic_1321" id="hikashop_product_characteristic_1321-lbl" class="radio"&gt;

&lt;input type="radio" name="hikashop_product_characteristic[13]" id="hikashop_product_characteristic_1321" value="21" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);" &gt;LARGE (5 x 8 ¼)
&lt;/label&gt;
&lt;label for="hikashop_product_characteristic_1323" id="hikashop_product_characteristic_1323-lbl" class="radio"&gt;

&lt;input type="radio" name="hikashop_product_characteristic[13]" id="hikashop_product_characteristic_1323" value="23" checked="checked" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);" &gt;A4 (8 ¼ x 11 ¾)
&lt;/label&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;LAYOUT&lt;/td&gt;&lt;td&gt;&lt;div class="controls"&gt;
&lt;label for="hikashop_product_characteristic_1724" id="hikashop_product_characteristic_1724-lbl" class="radio"&gt;

&lt;input type="radio" name="hikashop_product_characteristic[17]" id="hikashop_product_characteristic_1724" value="24" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);" &gt;RULED
&lt;/label&gt;
&lt;label for="hikashop_product_characteristic_1725" id="hikashop_product_characteristic_1725-lbl" class="radio"&gt;

&lt;input type="radio" name="hikashop_product_characteristic[17]" id="hikashop_product_characteristic_1725" value="25" checked="checked" class="inputbox" size="1" onclick="return hikashopUpdateVariant(this);" &gt;DOTTED
&lt;/label&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"

I cant see in the administrator/components/com_hikashop/type/characteristic.php ..

I want to add &lt;span&gt; to text after &lt;input radio&gt;

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

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

Less More

- Posts: 9
- Thank you received: 0
-
-

11 years 6 months ago [\#200917](#200917) by [rturan](/forum/user/36589-rturan "View rturan's Profile")  Replied by *[rturan](/forum/user/36589-rturan "View rturan's Profile")* on topic *[Re: Modifying product &gt; show file](/forum/4-how-to/18303-modifying-product-show-file#200917 "Hi there,  I have a product page with characteristics and custom items. The characteristics display first and then the custom items. I would like to swap them around so the custom items are at the top.  I had a look at the product &gt; show file, but I don't know enough about PHP to cut the correct bit of code and paste it above the characteristics.  I tried, but get syntax errors because a '}' ends up in the wrong place when I modify the code.  Thanks")*

administrator/components/com_hikashop/type/characteristic.php

can you help me.. how i will locate the &lt;label&gt; in the characteristic.php

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

11 years 6 months ago [\#200924](#200924) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Modifying product &gt; show file](/forum/4-how-to/18303-modifying-product-show-file#200924 "Hi there,  I have a product page with characteristics and custom items. The characteristics display first and then the custom items. I would like to swap them around so the custom items are at the top.  I had a look at the product &gt; show file, but I don't know enough about PHP to cut the correct bit of code and paste it above the characteristics.  I tried, but get syntax errors because a '}' ends up in the wrong place when I modify the code.  Thanks")*

Hi,

To generate the content we give parameters to the Joomla function: Code:

JHTML::_('select.'.$characteristic_display.'list', $this-&gt;values, $map, 'class="inputbox" size="1"' . $this-&gt;options, 'value', 'text', (int)$value,$id );

In the "display()" function of that file.

So what do you exactly want to do ?
You can potentially replace the line: Code:

$html = JHTML::_('select.'.$characteristic_display.'list', $this-&gt;values, $map, 'class="inputbox" size="1"' . $this-&gt;options, 'value', 'text', (int)$value,$id );

to pass your custom html content in the $html var, or you can change the given informations to the current function.

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

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