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

#   2° table in custom field product

##

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

Less More

- Posts: 39
- Thank you received: 1
-
-

11 years 1 week ago -  11 years 1 week ago [\#219737](#219737) by [leonte54](/forum/user/32684-leonte54 "View leonte54's Profile")  *[2° table in custom field product](/forum/26-product-category-display/880311-2-0-table-in-custom-field-product#219737 "-- HikaShop version -- : HikaShop Essential: 2.6.0 -- Joomla version -- : Joomla! 3.4.5 -- Browser(s) name and version -- : 46.0.2490.80 (64-bit)  Hi, I wish to add a second table with other custom field after the &quot;add to cart&quot; button, out of the first right table. Any help would be appreciated. Thank you")* was created by *[leonte54](/forum/user/32684-leonte54 "View leonte54's Profile")*

-- HikaShop version -- : HikaShop Essential: 2.6.0
-- Joomla version -- : Joomla! 3.4.5
-- Browser(s) name and version -- : 46.0.2490.80 (64-bit)

Hi,
I wish to add a second table with other custom field after the "add to cart" button, out of the first right table.
Any help would be appreciated.
Thank you

- [ ![custom-field.jpg](/forum/attachment/27482) ](/forum/attachment/27482 "custom-field.jpg") [ ](/forum/attachment/27482?download=1 "custom-field.jpg")

Last edit: 11 years 1 week ago by [leonte54](/forum/user/32684-leonte54 "View leonte54's Profile").

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

11 years 1 week ago [\#219740](#219740) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[2° table in custom filed product](/forum/26-product-category-display/880311-2-0-table-in-custom-field-product#219740 "-- HikaShop version -- : HikaShop Essential: 2.6.0 -- Joomla version -- : Joomla! 3.4.5 -- Browser(s) name and version -- : 46.0.2490.80 (64-bit)  Hi, I wish to add a second table with other custom field after the &quot;add to cart&quot; button, out of the first right table. Any help would be appreciated. Thank you")*

Hi,

We do have a documentation page for the HikaShop customization :
[ www.hikashop.com/support/documentation/1...ize-the-display.html](http://www.hikashop.com/support/documentation/153-customize-the-display.html)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 39
- Thank you received: 1
-
-

11 years 1 week ago [\#219907](#219907) by [leonte54](/forum/user/32684-leonte54 "View leonte54's Profile")  Replied by *[leonte54](/forum/user/32684-leonte54 "View leonte54's Profile")* on topic *[2° table in custom filed product](/forum/26-product-category-display/880311-2-0-table-in-custom-field-product#219907 "-- HikaShop version -- : HikaShop Essential: 2.6.0 -- Joomla version -- : Joomla! 3.4.5 -- Browser(s) name and version -- : 46.0.2490.80 (64-bit)  Hi, I wish to add a second table with other custom field after the &quot;add to cart&quot; button, out of the first right table. Any help would be appreciated. Thank you")*

Thanks for the reply but I would have appreciated a little help, at least to start.
I read the page indicated and I think that makes my case show_bolck_product_files, because I want to show a link of the book in ebook format to download, but if I add a custom field appears inside the tablella right, I want to appear to outside and under the right table.
Thank you

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

11 years 1 week ago [\#219913](#219913) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[2° table in custom filed product](/forum/26-product-category-display/880311-2-0-table-in-custom-field-product#219913 "-- HikaShop version -- : HikaShop Essential: 2.6.0 -- Joomla version -- : Joomla! 3.4.5 -- Browser(s) name and version -- : 46.0.2490.80 (64-bit)  Hi, I wish to add a second table with other custom field after the &quot;add to cart&quot; button, out of the first right table. Any help would be appreciated. Thank you")*

Hi,

The custom product fields are all displayed in the file show_block_custom_item
So you want to modify that file and remove the display of the ones you don't want inside that area.
And then, you want to modify the file show_default to add the display of these fields there, before the bottom part of the layout.

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

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

Less More

- Posts: 39
- Thank you received: 1
-
-

11 years 1 week ago [\#219945](#219945) by [leonte54](/forum/user/32684-leonte54 "View leonte54's Profile")  Replied by *[leonte54](/forum/user/32684-leonte54 "View leonte54's Profile")* on topic *[2° table in custom field product](/forum/26-product-category-display/880311-2-0-table-in-custom-field-product#219945 "-- HikaShop version -- : HikaShop Essential: 2.6.0 -- Joomla version -- : Joomla! 3.4.5 -- Browser(s) name and version -- : 46.0.2490.80 (64-bit)  Hi, I wish to add a second table with other custom field after the &quot;add to cart&quot; button, out of the first right table. Any help would be appreciated. Thank you")*

Hello,
sorry but I do not understand how to do, I had already tried your solution, I would just like one of the items belonging to the group of fields that is moved below, as indicated you'd move the whole group.

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

11 years 1 week ago [\#219971](#219971) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[2° table in custom field product](/forum/26-product-category-display/880311-2-0-table-in-custom-field-product#219971 "-- HikaShop version -- : HikaShop Essential: 2.6.0 -- Joomla version -- : Joomla! 3.4.5 -- Browser(s) name and version -- : 46.0.2490.80 (64-bit)  Hi, I wish to add a second table with other custom field after the &quot;add to cart&quot; button, out of the first right table. Any help would be appreciated. Thank you")*

Hi,

Well, that's what I explained in my previous message.
For example, suppose that the field that you want to display separately is called "test", you could add the line:
if($fieldName == 'test') continue;
after the line:
foreach ($this-&gt;itemFields as $fieldName =&gt; $oneExtraField) {
in show_block_custom_item in order to skip the display of that field in show_block_custom_item.
And then you could copy past the code of that file in show_default and change the line:
if($fieldName == 'test') continue;
to:
if($fieldName != 'test') continue;

That's what I wanted to say in my previous message so as you can see, it's not really complex to do if you know a bit of programming.

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

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

Less More

- Posts: 39
- Thank you received: 1
-
-

11 years 6 days ago -  11 years 6 days ago [\#220084](#220084) by [leonte54](/forum/user/32684-leonte54 "View leonte54's Profile")  Replied by *[leonte54](/forum/user/32684-leonte54 "View leonte54's Profile")* on topic *[2° table in custom field product](/forum/26-product-category-display/880311-2-0-table-in-custom-field-product#220084 "-- HikaShop version -- : HikaShop Essential: 2.6.0 -- Joomla version -- : Joomla! 3.4.5 -- Browser(s) name and version -- : 46.0.2490.80 (64-bit)  Hi, I wish to add a second table with other custom field after the &quot;add to cart&quot; button, out of the first right table. Any help would be appreciated. Thank you")*

Hi,
thanks for the reply.
I hope to solve this problem with your help step by step.
In the panel to create custom fields I mentioned a text area "ebooks", then: label and column name is "ebooks", now if I enter the code Code:

if($fieldName == 'ebooks') continue;

after Code:

foreach ($this-&gt;itemFields as $fieldName =&gt; $oneExtraField) {

to skip the field, this does not work, the field remains visible.

Regards

Last edit: 11 years 6 days ago by [leonte54](/forum/user/32684-leonte54 "View leonte54's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3Byb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84ODAzMTEtMi10YWJsZS1pbi1jdXN0b20tZmllbGQtcHJvZHVjdD90bXBsPW1hcmtkb3du) 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 days ago [\#220100](#220100) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[2° table in custom field product](/forum/26-product-category-display/880311-2-0-table-in-custom-field-product#220100 "-- HikaShop version -- : HikaShop Essential: 2.6.0 -- Joomla version -- : Joomla! 3.4.5 -- Browser(s) name and version -- : 46.0.2490.80 (64-bit)  Hi, I wish to add a second table with other custom field after the &quot;add to cart&quot; button, out of the first right table. Any help would be appreciated. Thank you")*

Hi,

Are you sure that you are editing the view at the correct place in the correct template ?
The custom fields are of the "item" type ? If it is "product" so the view to edit is "product / show_block_custom_main".

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

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

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