How to add product description to listing_table

  • Posts: 62
  • Thank you received: 0
  • Hikashop Business
7 years 10 months ago #238923

-- HikaShop version -- : 2.6.2
-- Joomla version -- : 3.5.1

Hi,

I have been searching around but not able to find the answer.... How can I add the product description to product_listing_table_view? On one page I want to show all the products in one category with their title, description and price. I have added the url where you can see my page.

regards,
Joost

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

  • Posts: 4486
  • Thank you received: 609
  • MODERATOR
7 years 10 months ago #238930

Hello,

In order to have product description on your table listing you must create a override view on your product/listing_table.php.
For this follow the way :
- Go to Components => HikaShop => Configuration
- On Display dropdown, select Views



- Use dropdown to filter results, first on "Product", second with your front end template and last on "Front end"



- And look for listing_table, and click on it

Note : An override can't be erased by an HikaShop updates, you can only erased it by clicking on little trash icon, displayed on views listing IF you have created an override.

To help you, you will get product description in this view with :
$this->row
.

Hope that will help you.

Regards.

Attachments:
Last edit: 7 years 10 months ago by Philip.

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

  • Posts: 62
  • Thank you received: 0
  • Hikashop Business
7 years 10 months ago #238967

Hi,

Thanks for the quick reply. It was clear for me how to override the view. It is not clear to me what code to add. I think your last tip about the code is not correct because it is not working. My code looks like this:



It is not showing the description. What am I doing wrong?

regards,
Joost

Attachments:

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

  • Posts: 81361
  • Thank you received: 13035
  • MODERATOR
7 years 10 months ago #238992

Hi,

Philippe was a bit fast there.
It's this code:
<?php echo $this->row->product_description; ?>

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

  • Posts: 62
  • Thank you received: 0
  • Hikashop Business
7 years 10 months ago #239158

Got it!
Perfect!

Thanks a lot

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

Time to create page: 0.084 seconds
Powered by Kunena Forum