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

#   How to change position for custom fields

##

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

Less More

- Posts: 15
- Thank you received: 1
-
-

5 years 9 months ago [\#328483](#328483) by [48media](/forum/user/32301-48media "View 48media's Profile")  *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#328483 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")* was created by *[48media](/forum/user/32301-48media "View 48media's Profile")*

-- HikaShop version -- : HikaShop Business 4.3.0
-- Joomla version -- : Joomla! 3.9.21
-- PHP version -- : 7,2

Hi.
I need to do two custom groups in product view.
The first group stays in its original position in the "specification". (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors.
I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc.
Is it real? How to get the code to such a group, or how to do it differently?

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

Less More

- Posts: 86292
- Thank you received: 14269
-
-

5 years 9 months ago [\#328489](#328489) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#328489 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")*

Hi,

The simplest would be to just turn off the display of the second group of custom fields, and then edit the show_tabular.php view file via the menu Display&gt;Views to manually display them with custom code such as:
&lt;?php echo $this-&gt;element-&gt;xxx; ?&gt;
where xxx is the column name of the custom field.

The following user(s) said Thank You: [48media](/forum/user/32301-48media "View 48media's Profile")

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

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

Less More

- Posts: 15
- Thank you received: 1
-
-

5 years 9 months ago [\#328515](#328515) by [48media](/forum/user/32301-48media "View 48media's Profile")  Replied by *[48media](/forum/user/32301-48media "View 48media's Profile")* on topic *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#328515 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")*

Super it is works.
Now the question is, can we display the name of this field? With the parameter if empty, do not show?

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

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

Less More

- Posts: 15
- Thank you received: 1
-
-

5 years 9 months ago [\#328530](#328530) by [48media](/forum/user/32301-48media "View 48media's Profile")  Replied by *[48media](/forum/user/32301-48media "View 48media's Profile")* on topic *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#328530 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")*

Ok, I did it:
&lt;?php if(!empty($this-&gt;element-&gt;inneparametry2)) {
echo '&lt;div class="x"&gt;';
echo $this-&gt;element-&gt;inneparametry2;
echo '&lt;/div&gt;';
}
?&gt;

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

Less More

- Posts: 86292
- Thank you received: 14269
-
-

5 years 9 months ago [\#328518](#328518) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#328518 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")*

Hi,

Sure. For example:
&lt;?php if(!empty($this-&gt;element-&gt;xxx)) { echo 'yyy: '.$this-&gt;element-&gt;xxx; } ?&gt;
where yyy is the name of the field.

The following user(s) said Thank You: [48media](/forum/user/32301-48media "View 48media's Profile")

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

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

Less More

- Posts: 17
- Thank you received: 3
-
-

2 years 11 months ago [\#356665](#356665) by [fullwater](/forum/user/57811-fullwater "View fullwater's Profile")  Replied by *[fullwater](/forum/user/57811-fullwater "View fullwater's Profile")* on topic *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#356665 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")*

Hello,
&lt;?php echo $this-&gt;element-&gt;xxx; ?&gt; works for me but the corresponding value of the custom field doesn't change in relation to the variants of the product even if i fill it in every single variant.
How can i solve this?
Thanks in advance

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

Less More

- Posts: 86292
- Thank you received: 14269
-
-

2 years 11 months ago [\#356667](#356667) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#356667 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")*

Hi,

That will be difficult. You need to change the javascript code in product / show_block_characteristic.php to handle a new area and then create a new div around the code you posted above with a specific id ending with _main, and then edit the product / show.php to add the display of the custom field for each variant.
So it requires developer skills to be able to do that.

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

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

Less More

- Posts: 17
- Thank you received: 3
-
-

2 years 11 months ago [\#356674](#356674) by [fullwater](/forum/user/57811-fullwater "View fullwater's Profile")  Replied by *[fullwater](/forum/user/57811-fullwater "View fullwater's Profile")* on topic *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#356674 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")*

Thank You nicolas,

i copied this code :

&lt;?php
echo $specif_tab_content;
?&gt;

under the price block and it works even for variants changes. I also commented it to hide in the tab in tubular layout but now i have product dimensions duplicated. Is it possible to hide them in the new position?

[ ![Screenshot2023-11-16alle17.13.50.png](/forum/attachment/58186) ](/forum/attachment/58186 "...le17.13.50.png")

- [ ![Screenshot2023-11-16alle17.13.50.png](/forum/attachment/58186) ](/forum/attachment/58186 "...le17.13.50.png") [ ](/forum/attachment/58186?download=1 "...le17.13.50.png")

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

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

Less More

- Posts: 17
- Thank you received: 3
-
-

2 years 11 months ago [\#356679](#356679) by [fullwater](/forum/user/57811-fullwater "View fullwater's Profile")  Replied by *[fullwater](/forum/user/57811-fullwater "View fullwater's Profile")* on topic *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#356679 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")*

I solved wrapping the code in a div and hiding the dimension block using css display none.
Maybe someone can find a better solution.
Thanks

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

Less More

- Posts: 86292
- Thank you received: 14269
-
-

2 years 11 months ago [\#356676](#356676) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#356676 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")*

Hi,

This should be possible with CSS code.
Could you provide the URL of that page so that we can look at the HTML ? This would be necessary if you want us to provide you with that CSS code.

The following user(s) said Thank You: [fullwater](/forum/user/57811-fullwater "View fullwater's Profile")

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

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

Less More

- Posts: 17
- Thank you received: 3
-
-

2 years 11 months ago -  2 years 11 months ago [\#356691](#356691) by [fullwater](/forum/user/57811-fullwater "View fullwater's Profile")  Replied by *[fullwater](/forum/user/57811-fullwater "View fullwater's Profile")* on topic *[How to change position for custom fields](/forum/26-product-category-display/901707-how-to-change-position-for-custom-fields#356691 "-- HikaShop version -- : HikaShop Business 4.3.0 -- Joomla version -- : Joomla! 3.9.21 -- PHP version -- : 7,2  Hi. I need to do two custom groups in product view. The first group stays in its original position in the &quot;specification&quot;. (I have a tabular layout). This group describes the standard parameters of the product: dimensions, weight, colors. I would like to do the second group in a separate place, apart from the tabular layout. This group would show shipping times, shipping costs, returns, etc. Is it real? How to get the code to such a group, or how to do it differently?")*

Thank you nicolas,
I already did it.
I wrapped the block in a div and styled it with css.

Last edit: 2 years 11 months ago by [fullwater](/forum/user/57811-fullwater "View fullwater's Profile").

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

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

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

[](#top)
