Skip to main content

Changing the table structure at product page

More
13 years 3 weeks ago #122944 by Jeremy126
-- 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_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 or Create an account to join the conversation.

More
13 years 3 weeks ago #122958 by Jerome
Hi,

In HikaShop you can override every views.
There is an interface in the backend under "Display > 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 | your_frontend_template | product | 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

Regards,

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

Please Log in or Create an account to join the conversation.

More
13 years 3 weeks ago #123104 by Jeremy126
Thank you for your kind advice.
I could break down to product | 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 or Create an account to join the conversation.

More
13 years 3 weeks ago #123118 by Jerome
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 | quantity" view.

Regards,

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

Please Log in or Create an account to join the conversation.

More
13 years 3 weeks ago #123132 by Jeremy126
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->params,$url,$this->ajax,'',$max,$min); seems to set up the table.

Please Log in or Create an account to join the conversation.

More
13 years 3 weeks ago #123142 by Jerome
Hi,

www.hikashop.com/support/documentation/6...tation.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 & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #123281 by Jeremy126
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 or Create an account to join the conversation.

More
13 years 2 weeks ago #123289 by Jerome
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 & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #123581 by Jeremy126
If we can edit the code, please show me the route to the core files.

Please Log in or Create an account to join the conversation.

More
13 years 2 weeks ago #123585 by Jerome
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 & HikaSerial developer / HikaShop core dev team.

Please Log in or Create an account to join the conversation.

Time to create page: 0.231 seconds
Powered by Kunena Forum