Custom field to product listing page

  • Posts: 27
  • Thank you received: 0
12 years 5 months ago #52108

Hello,

I would like to display a product note to each product and display it in the product listing.
Example,

Category ABC
Product A - serves 6 person
Product B - 500g per piece
Product C - 10 packs per box

How do I go about to add this? I have tried the custom field "item" and "product" but not sure how I can display this in the product listing page. I do not need it in the product detail page though.

Thanks in advance :)

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

  • Posts: 27
  • Thank you received: 0
12 years 5 months ago #52149

anyone able to help pls?

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #52222

You could indeed use a custom field of the table "product". Then, you will have to edit the file "listing_img_title" of the view "product" via the menu Display->Views and add that line of code to display the field:

<?php echo $this->row->COLUMN_NAME; ?>

where COLUMN_NAME is the column name of your custom field.

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

  • Posts: 27
  • Thank you received: 0
12 years 5 months ago #52302

Hi Nicolas, thanks for your reply. I have tried and got it done.

Many thanks!

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

Time to create page: 0.056 seconds
Powered by Kunena Forum