Description intro on products listing

  • Posts: 94
  • Thank you received: 2
  • Hikashop Business
4 years 9 months ago #308848

-- HikaShop version -- : 4.1.0
-- Joomla version -- : 3.9.10
-- PHP version -- : 7.1.29
-- Browser(s) name and version -- : Chrome - 75.0.3770.142
-- Error-message(debug-mod must be tuned on) -- : No error

Hi there,

Is it possible in some way to change the layout type "Image and Title" and add a small description of the product on the products listing? Title and image are not enough info for our customers, because most of the products in a group looks the same, but have different specs.

Cheers,
Remco

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

  • Posts: 81513
  • Thank you received: 13068
  • MODERATOR
4 years 9 months ago #308849

Hi,

Sure. That's quite easy. Edit the file product / listing_img_title.php via the menu Display>Views and add such code where you want to display it:
<?php echo $this->row->product_description; ?>

You can read more here:
www.hikashop.com/support/documentation/1...ize-the-display.html
www.hikashop.com/forum/product-category-...o-listing-table.html
www.hikashop.com/forum/4-how-to/32677-sh...roduct-listings.html

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

  • Posts: 94
  • Thank you received: 2
  • Hikashop Business
4 years 9 months ago #309012

Hi Nicolas,

Thanks for replying, but this is not what I'm trying to achieve. The description for the products is way to big to be shown on products listings. I want to have one line of text what can be filled differently for every article and showed at the products listing: Like a "short description".
Is that possible?

Cheers

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

  • Posts: 81513
  • Thank you received: 13068
  • MODERATOR
4 years 9 months ago #309017

Hi,

Sure. Then, create a custom field of the table "product" via the menu Display>Custom fields so that you can add that line of text in that custom field when you edit your products.
The you can use similar code in the same view file:
<?php echo $this->row->XXX; ?>
where XXX is the column name of your custom field.

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

  • Posts: 94
  • Thank you received: 2
  • Hikashop Business
4 years 9 months ago #309055

Thanks Nicolas,

works great!!

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

Time to create page: 0.060 seconds
Powered by Kunena Forum