Custom field content is not showed

  • Posts: 45
  • Thank you received: 0
11 years 11 months ago #80980

Hi!

I have created custom field called short_description (see attachment) and I would like that the text that I put on this field for each product to be shown on the view of product list like this one:
smartshop-ks.com/jo/index.php/kuzhina

and also on the individual product page like this one:

smartshop-ks.com/jo/index.php/kuzhina/product/7-pro-v-premium

In addition to this I would write the longer description on the default description page. I am aiming on something like this:
www.jadsinternational.com/marvel/mischief.html
you see the short description is different field from the long one.

The field that I created ant the text that I put on it is not shown on the product page. So my question is:

- how to put short_description content below product thumbnails and also on the product page?

Attachments:

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

  • Posts: 82818
  • Thank you received: 13360
  • MODERATOR
11 years 11 months ago #81023

Hi,

If you want to see the custom field value on the product page, you can turn on the "frontend" option of the custom field.

If you want to see the custom field value on the product listing page, you will need to edit the file "listing_img_title" of the view "product" via the menu Display>Views and add the code below in it:
<?php echo $this->row->short_description; ?>

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

  • Posts: 45
  • Thank you received: 0
11 years 11 months ago #81033

It is working on the product page:
smartshop-ks.com/jo/index.php/bukuri/product/2-belvia-bra (see short description text)
thaks a lot!

But I can't get it to work on the product listing page:
smartshop-ks.com/jo/index.php/bukuri

for exapmle in the case of BELVIA BRA product the short description text should be shown below the image. I added code
<?php echo $this->row->short_description; ?> on "listing_img_title" but it did not help.

What should I try next?

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

  • Posts: 45
  • Thank you received: 0
11 years 11 months ago #81035

I've just notised that short description text is showed here:
smartshop-ks.com/jo/index.php/bukuri/product/listing

but not on my cagtegory pages like:
smartshop-ks.com/jo/index.php/bukuri

bukuri is HikaShop category that shows only porducts that belongs to category bukuri. Maybe there is some other view that I have to modify?

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

  • Posts: 45
  • Thank you received: 0
11 years 11 months ago #81036

Nicolas,

I think I got it;)

It was listing_img_desc view that I had to modify. Now it seems to be working the way I wanted to.

Thanks a lot!

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

Time to create page: 0.065 seconds
Powered by Kunena Forum