Product description on category view

  • Posts: 14
  • Thank you received: 0
8 years 5 months ago #258465

Hi community. Firstly I'm not an expert with Hikashop (Just decided to try it out as I'm currently looking for a replacement for Virtuemart).
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

Last edit: 8 years 5 months ago by svjatoslavs.krasnikovs.

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

  • Posts: 14
  • Thank you received: 0
8 years 5 months ago #258470

Basically, the idea is to show some brief information about the product before going to product view.
(Hikashop version 2.6.4)

Last edit: 8 years 5 months ago by svjatoslavs.krasnikovs.

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 5 months ago #258466

Hi,

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.

The following user(s) said Thank You: svjatoslavs.krasnikovs

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

  • Posts: 14
  • Thank you received: 0
8 years 5 months ago #258597

Cool, and what if I want to do the same for categories in category views ?

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

  • Posts: 14
  • Thank you received: 0
8 years 5 months ago #258600

Oh, I figured it out myself.
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.

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 5 months ago #258638

Hi,

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:

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.

So if that doesn't help you, please provide more details on what you want to do.

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

  • Posts: 14
  • Thank you received: 0
8 years 5 months ago #258765

I'll try to be more precise. I managed to do the operations you gave me in order to place product description below the picture, such as shown in the picture below.



However as expected in the product view I have the followig:


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 ?

Last edit: 8 years 5 months ago by svjatoslavs.krasnikovs.

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

  • Posts: 83993
  • Thank you received: 13605
  • MODERATOR
8 years 5 months ago #258790

Hi,

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.

  • Posts: 14
  • Thank you received: 0
8 years 5 months ago #259062

Worked, thank you.

Last edit: 8 years 5 months ago by svjatoslavs.krasnikovs.

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

Time to create page: 0.076 seconds
Powered by Kunena Forum