How can I show weight, length, width and height in category view?

  • Posts: 91
  • Thank you received: 5
4 years 7 months ago #310474

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.11
-- PHP version -- : 5.6
-- Browser(s) name and version -- : Chrome 76

I know that I can show product weight, length, width and height in product view, by switching it on in Options. How can I show them in category view?
I am especially interested to create 3 columns: length, width and height in Table view for a category, to have 3 additional columns.
Probably I shoud edit
/html/com_hikashop/category/listing.php
but how?

thank you

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

  • Posts: 12953
  • Thank you received: 1778
4 years 7 months ago #310481

Hello,

Can you show us some screenshots of what you exactly want to achieve so that we can properly advise you ? Thank you.

Kind regards,
Mohamed Thelji.

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

  • Posts: 91
  • Thank you received: 5
4 years 7 months ago #310499

Yes, I attach what I would like to achieve on category page.

Attachments:

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

  • Posts: 81509
  • Thank you received: 13064
  • MODERATOR
4 years 7 months ago #310505

Hi,

You'll have to edit the file "listing_table" of the view "product" via the menu Display>Views.
There, you'll have to add the tr/td cells for the title of the columns and for each product.
The data of the products is available with such code:
<?php echo $this->row->product_height; ?>

The following user(s) said Thank You: bolando

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

Time to create page: 0.070 seconds
Powered by Kunena Forum