Parametres for div in content module

  • Posts: 1053
  • Thank you received: 11
  • Hikashop Business
11 years 4 months ago #109500

Hello!
I need to show a text in the category layout for products. like this //pilart.cz/produkty/Olepovacky-hran-2/ //
is it possible.
Basically tile, image , and text coming not from the description but from a custom field I ll create for that porpuse. Can you please point an example on how to write the extra code and on which file?
Is there a buildin function for that ?

Thank you!

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

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #109504

Hi there,

If I understood, you just want your custom fields to be displayed on the product listing page?
If so, you should enable the "Display custom item fields" option of the given menu/module, it should display the custom field you filed.

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

  • Posts: 1053
  • Thank you received: 11
  • Hikashop Business
11 years 4 months ago #109547

I understood. I created first a custom field but it was in products teble so It didn t appear on the product listing. I then saw


Custom item fields don't appear on the front end.
When you create a custom field, don't forget to enable the "Front-end" option.
Be careful, when you create the custom field, be sure that you set the good table , which is the "item" table, not the "product" table.
For products listings, enable the default option in System->configuration->display, enable "Display custom item fields" in the Default parameters for products.
For products listings, enable the same option, in Display->content menus/modules.
and followed the instruction. But as an item custom field I can t see it. It doesn appear anywhere

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #109552

No, you should create a custom field of the table product. You will need to enter a value in each product for that custom field. And add a line of code like that:
<?php echo $this->row->COLUMN_NAME; ?>

in the file "listing_img_title" of the "product" view via the menu Display->Views and that will add the text of the custom field on each product box.

The following user(s) said Thank You: verzevoul

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

  • Posts: 1053
  • Thank you received: 11
  • Hikashop Business
11 years 4 months ago #109565

Thats it! Hikashop ROCKS`!!!

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

Time to create page: 0.069 seconds
Powered by Kunena Forum