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

  • Posts: 60
  • Thank you received: 2
  • Hikashop Business
2 weeks 6 days 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: 12136
  • Thank you received: 1673
  • MODERATOR
2 weeks 5 days 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: 60
  • Thank you received: 2
  • Hikashop Business
2 weeks 5 days 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: 66889
  • Thank you received: 9887
  • MODERATOR
2 weeks 5 days 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.054 seconds
Powered by Kunena Forum