product description lenght

  • Posts: 95
  • Thank you received: 1
12 years 5 months ago #50597

Hello,

is it possible to set the length of product description shown in category product view?

Lets say I have a quiet long product description and if set "Image and description" in "Parameters for DIV" - "Type of item layout" the length of this description is too long (it looks not nice such long text) to be displayed in category products list - I need to set the maximum characters length shown in category products list.

Is it possible to set the characters length anywhere?

Thanks
Vaclav

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
12 years 5 months ago #50678

There is no automatic length limit option.
However, if you set a page break tag in your descriptions, the system will only display the description up to that tag and not the rest of the description in the listing.

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

  • Posts: 95
  • Thank you received: 1
12 years 5 months ago #50730

Do you mean this tag <br />? If yes, it does not work.

I have another question for product description - where can I edit the product description (for option "image and description") style and content shown there. I would like to change the style of this.

Thanks

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
12 years 5 months ago #50775

No, below the editor you have a "read more" button you can click on to add that in the description. If you don't have it, you can activate the "read more" button in the hikashop configuration.
Or you can add the HTML code directly:
<hr id="system-readmore" />

All the CSS styling of HikaShop can be edited via the Display tab of the configuration.
If you're talking about editing the view itself, you can edit the file "listing_img_desc" of the view "product" via the menu Display->Views of HikaShop.

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

  • Posts: 95
  • Thank you received: 1
12 years 5 months ago #50935

I had the read me switched off. Thanks for help.

Is it difficult for you to show me how to edit the "listing_img_desc" file to make product listing appear as on attached image?
I would like to have the product name above the product image. Price, product description, the text form manufacturer URL and the add to cart button - all below the product image. I thing it should be a little bit of copying from "listing_img_title" and from "listing_img_desc" together to get the demanded result...but maybe I am wrong :-).

Thanks
Vaclav

EDIT: The text form manufacturer URL is not so necessary if it is complicated to add it there. But it would be great if it was also there.

Attachments:
Last edit: 12 years 5 months ago by vaclav.

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
12 years 5 months ago #51063

Then, you should rather use the "image and title" layout.
Get the description block of code from the listing_img_desc file and paste it in the listing_img_title file. Then, move around the blocks of code to match what you need, it's really easy to do.
For the manufacturer url field, you can add something like that in that file:
<?php echo $this->row->product_url; ?>

The following user(s) said Thank You: ximbo

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

  • Posts: 95
  • Thank you received: 1
12 years 5 months ago #51071

That was really easy.

Thank you Nicolas.

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

  • Posts: 10
  • Thank you received: 1
11 years 6 months ago #100648

This option does not work. It still shows the description beyond the breaks for both Page and Read More tags. Please help.

*USING HIKASHOP 2.0 WHICH MAY BE THE REASON. (Either way help is very needed and welcome. Thank you)

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

  • Posts: 82760
  • Thank you received: 13347
  • MODERATOR
11 years 6 months ago #100677

It's working fine on our end. Please make sure that the tag is correct and if that doesn't help update to the latest version.

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

Time to create page: 0.081 seconds
Powered by Kunena Forum