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

#   Changing the table structure at product page

##

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 1 month ago [\#122944](#122944) by [Jeremy126](/forum/user/27219-jeremy126 "View Jeremy126's Profile")  *[Changing the table structure at product page](/forum/26-product-category-display/861888-changing-the-table-structure-at-product-page#122944 "-- url of the page with the problem -- :   test.idifashion.com/index.php/hikashop-m...td-black-salmon.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : Chrome 28.0.1500.95 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I would like to change the structure of table. I add the td to the quantity table in order to add &quot;Quantity&quot; label.  How can I access the code?")* was created by *[Jeremy126](/forum/user/27219-jeremy126 "View Jeremy126's Profile")*

-- url of the page with the problem -- : [ test.idifashion.com/index.php/hikashop-m...td-black-salmon.html](http://test.idifashion.com/index.php/hikashop-menu-for-categories-listing/01-colorful-td/product/23-colorful-td-black-salmon.html)
-- HikaShop version -- : 2.2.1
-- Joomla version -- : 2.5
-- PHP version -- : 5.2.17
-- Browser(s) name and version -- : Chrome 28.0.1500.95
-- Error-message(debug-mod must be tuned on) -- : Error_message

I would like to change the structure of table.
I add the td to the quantity table in order to add "Quantity" label.

How can I access the code?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjE4ODgtY2hhbmdpbmctdGhlLXRhYmxlLXN0cnVjdHVyZS1hdC1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#122958](#122958) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Changing the table structure at product page](/forum/26-product-category-display/861888-changing-the-table-structure-at-product-page#122958 "-- url of the page with the problem -- :   test.idifashion.com/index.php/hikashop-m...td-black-salmon.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : Chrome 28.0.1500.95 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I would like to change the structure of table. I add the td to the quantity table in order to add &quot;Quantity&quot; label.  How can I access the code?")*

Hi,

In HikaShop you can override every views.
There is an interface in the backend under "Display &gt; Views" where all views are listed. You have to select your front-end template (because the overrides are per template) and edit the view you want to modify.
The product page is under "frontend &#124; your_frontend_template &#124; product &#124; show_default".

You can read more about view override and customization thanks to this tutorial:
[ 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=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjE4ODgtY2hhbmdpbmctdGhlLXRhYmxlLXN0cnVjdHVyZS1hdC1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 1 month ago [\#123104](#123104) by [Jeremy126](/forum/user/27219-jeremy126 "View Jeremy126's Profile")  Replied by *[Jeremy126](/forum/user/27219-jeremy126 "View Jeremy126's Profile")* on topic *[Changing the table structure at product page](/forum/26-product-category-display/861888-changing-the-table-structure-at-product-page#123104 "-- url of the page with the problem -- :   test.idifashion.com/index.php/hikashop-m...td-black-salmon.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : Chrome 28.0.1500.95 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I would like to change the structure of table. I add the td to the quantity table in order to add &quot;Quantity&quot; label.  How can I access the code?")*

Thank you for your kind advice.
I could break down to product &#124; show_tabular.php.
But I cannot reach the table code there.
function setLayout('quantity') seems to set up the table?
Where should I go next in order to change the table structure?
Where can I edit the function?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjE4ODgtY2hhbmdpbmctdGhlLXRhYmxlLXN0cnVjdHVyZS1hdC1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#123118](#123118) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Changing the table structure at product page](/forum/26-product-category-display/861888-changing-the-table-structure-at-product-page#123118 "-- url of the page with the problem -- :   test.idifashion.com/index.php/hikashop-m...td-black-salmon.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : Chrome 28.0.1500.95 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I would like to change the structure of table. I add the td to the quantity table in order to add &quot;Quantity&quot; label.  How can I access the code?")*

Hi,

The function setLayout indicates that it will include the content of another view. In this case it's the view "quantity".
So you have to look at the "product &#124; quantity" view.

Regards,

---

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

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

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 1 month ago [\#123132](#123132) by [Jeremy126](/forum/user/27219-jeremy126 "View Jeremy126's Profile")  Replied by *[Jeremy126](/forum/user/27219-jeremy126 "View Jeremy126's Profile")* on topic *[Changing the table structure at product page](/forum/26-product-category-display/861888-changing-the-table-structure-at-product-page#123132 "-- url of the page with the problem -- :   test.idifashion.com/index.php/hikashop-m...td-black-salmon.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : Chrome 28.0.1500.95 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I would like to change the structure of table. I add the td to the quantity table in order to add &quot;Quantity&quot; label.  How can I access the code?")*

Thank you for your reply.
But it is the same as previous issue.
I cannot reach the table code there.
I need to break down more?
the function displayButton(JText::_('ADD_TO_CART'),'add',$this-&gt;params,$url,$this-&gt;ajax,'',$max,$min); seems to set up the table.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjE4ODgtY2hhbmdpbmctdGhlLXRhYmxlLXN0cnVjdHVyZS1hdC1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#123142](#123142) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Changing the table structure at product page](/forum/26-product-category-display/861888-changing-the-table-structure-at-product-page#123142 "-- url of the page with the problem -- :   test.idifashion.com/index.php/hikashop-m...td-black-salmon.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : Chrome 28.0.1500.95 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I would like to change the structure of table. I add the td to the quantity table in order to add &quot;Quantity&quot; label.  How can I access the code?")*

Hi,

[ www.hikashop.com/support/documentation/6...tation.html#override](http://www.hikashop.com/support/documentation/62-hikashop-developer-documentation.html#override)
You need to override the Quantity input.
You can search in the forum for "hikashop_quantity_render", you will have several thread talking about this override, and different example of customization.

Regards,

---

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

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

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 1 month ago [\#123281](#123281) by [Jeremy126](/forum/user/27219-jeremy126 "View Jeremy126's Profile")  Replied by *[Jeremy126](/forum/user/27219-jeremy126 "View Jeremy126's Profile")* on topic *[Changing the table structure at product page](/forum/26-product-category-display/861888-changing-the-table-structure-at-product-page#123281 "-- url of the page with the problem -- :   test.idifashion.com/index.php/hikashop-m...td-black-salmon.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : Chrome 28.0.1500.95 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I would like to change the structure of table. I add the td to the quantity table in order to add &quot;Quantity&quot; label.  How can I access the code?")*

Thank you for your reply.
It means that developers cannot reach the code directly.
People can change the table structure in 2 minutes if we can reach the code.
As we cannot reach the code, we must make plug-in indirectly.
It presents a serious inconvenience.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjE4ODgtY2hhbmdpbmctdGhlLXRhYmxlLXN0cnVjdHVyZS1hdC1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#123289](#123289) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Changing the table structure at product page](/forum/26-product-category-display/861888-changing-the-table-structure-at-product-page#123289 "-- url of the page with the problem -- :   test.idifashion.com/index.php/hikashop-m...td-black-salmon.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : Chrome 28.0.1500.95 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I would like to change the structure of table. I add the td to the quantity table in order to add &quot;Quantity&quot; label.  How can I access the code?")*

Hi,

It is something that we are improving.
The first version of HikaShop does not have the full override system that we have today. In this first version the override has to be done using plugins.

You can edit the code directly if you want to but because it's in a core file without override, your modification will be lost during updates.
There are few overrides that still need this "plugin" process, we are working to remove them all and provide a generic view override like we did after that.

Regards,

---

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

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

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

Less More

- Posts: 14
- Thank you received: 0
-
-

13 years 1 month ago [\#123581](#123581) by [Jeremy126](/forum/user/27219-jeremy126 "View Jeremy126's Profile")  Replied by *[Jeremy126](/forum/user/27219-jeremy126 "View Jeremy126's Profile")* on topic *[Changing the table structure at product page](/forum/26-product-category-display/861888-changing-the-table-structure-at-product-page#123581 "-- url of the page with the problem -- :   test.idifashion.com/index.php/hikashop-m...td-black-salmon.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : Chrome 28.0.1500.95 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I would like to change the structure of table. I add the td to the quantity table in order to add &quot;Quantity&quot; label.  How can I access the code?")*

If we can edit the code, please show me the route to the core files.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NjE4ODgtY2hhbmdpbmctdGhlLXRhYmxlLXN0cnVjdHVyZS1hdC1wcm9kdWN0LXBhZ2U/dG1wbD1tYXJrZG93bg==) 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: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 1 month ago [\#123585](#123585) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Changing the table structure at product page](/forum/26-product-category-display/861888-changing-the-table-structure-at-product-page#123585 "-- url of the page with the problem -- :   test.idifashion.com/index.php/hikashop-m...td-black-salmon.html  -- HikaShop version -- : 2.2.1 -- Joomla version -- : 2.5 -- PHP version -- : 5.2.17 -- Browser(s) name and version -- : Chrome 28.0.1500.95 -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I would like to change the structure of table. I add the td to the quantity table in order to add &quot;Quantity&quot; label.  How can I access the code?")*

Hi,

File is "administrator/components/com_hikashop/helpers/cart.php".
You can look at the keyword "hikashop_quantity_render" and edit the returned HTML just below (in the "else" block).

Regards,

---

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

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

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

[](#top)
