Changing the table structure at product page

  • Posts: 14
  • Thank you received: 0
11 years 9 months ago #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_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.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 9 months ago #122958

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 14
  • Thank you received: 0
11 years 9 months ago #123104

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.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 9 months ago #123118

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 14
  • Thank you received: 0
11 years 9 months ago #123132

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.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 9 months ago #123142

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 14
  • Thank you received: 0
11 years 9 months ago #123281

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.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 9 months ago #123289

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 14
  • Thank you received: 0
11 years 9 months ago #123581

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.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 9 months ago #123585

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.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.065 seconds
Powered by Kunena Forum