- Posts: 14
- Thank you received: 0
Product description on category view
- svjatoslavs.krasnikovs
-
Topic Author
- Offline
For the moment my category view looks like following:
https://postimg.org/image/cy5qke2wv/
I want to get some information about the product to be displayed between picture and price. I guess it can be done using PHP - linking it either to full description or a custom field containing additional description I'll require. Can you please guide me how to do so? Thank You
Please Log in or Create an account to join the conversation.
- svjatoslavs.krasnikovs
-
Topic Author
- Offline
- Posts: 14
- Thank you received: 0
(Hikashop version 2.6.4)
Please Log in or Create an account to join the conversation.
You can edit the file "listing_img_title" for the "product" view via the menu Display>Views to add your code.
If it's the description, you can do it like that:
<?php echo $this->row->product_description; ?>
If it's a custom product field, you can do it like that:
<?php echo $this->row->XXX; ?>
where XXX is to be replaced by the column name of your custom field.
Custom fields of the table "product" can be created via the menu Display>Custom fields with the Essential or Business editions of HikaShop.
Please Log in or Create an account to join the conversation.
- svjatoslavs.krasnikovs
-
Topic Author
- Offline
- Posts: 14
- Thank you received: 0
Please Log in or Create an account to join the conversation.
- svjatoslavs.krasnikovs
-
Topic Author
- Offline
- Posts: 14
- Thank you received: 0
So now I can place Category description for Category view, as well as product description in category view.
Now I want to put some text below image of a product in category view. Can you please explain how to do it using custom field (like, how to create a custom field containing text and link it to products) ? Thank You.
Please Log in or Create an account to join the conversation.
It's seems I didn't understand what you're asking because the last part of my previous answer already explains how to display the content of a custom product field below the image of the product on the listing of products:
So if that doesn't help you, please provide more details on what you want to do.You can edit the file "listing_img_title" for the "product" view via the menu Display>Views to add your code.
If it's a custom product field, you can do it like that:
<?php echo $this->row->XXX; ?>
where XXX is to be replaced by the column name of your custom field.
Custom fields of the table "product" can be created via the menu Display>Custom fields with the Essential or Business editions of HikaShop.
Please Log in or Create an account to join the conversation.
- svjatoslavs.krasnikovs
-
Topic Author
- Offline
- Posts: 14
- Thank you received: 0
image missing https://s23.postimg.org/45khxednr/category_view.png
However as expected in the product view I have the followig:
image missing https://s23.postimg.org/95hy5cjaf/product_view.png
So the question is, is it possible to create a certain custom field (with different text for each individual product) that will be displayed underneath the image in the category view and would not be displayed in the product view ?
Please Log in or Create an account to join the conversation.
Sure. Just create a custom field of the table "product" and in its display options, turn off the display on the product page and turn on the display on the products listing. Then, just enter text in the field in each product.
Please Log in or Create an account to join the conversation.
- svjatoslavs.krasnikovs
-
Topic Author
- Offline
- Posts: 14
- Thank you received: 0
Please Log in or Create an account to join the conversation.