two type of description

  • Posts: 47
  • Thank you received: 0
11 years 8 months ago #92399

hi, i have a problem with view,

i have a listing views with many different column, the order is
name- photo- description- price- add to cart
fino a qui tutto va bene
up to here is all perfect, but for the product that have a description too long, it is orrible to see all these words on a page


my question is:

piu lunga

can i have 2 different kind of description? a shorter description to put on the list of products and a longest description to put on the product page

i tried with module in description, but in list of product remains the written "{loadposition nomeposizione}"

what can i do?

thanks for reply

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

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #92422

Hi,

I think that you'll find more information there :

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" />

The following user(s) said Thank You: danilo87

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

  • Posts: 47
  • Thank you received: 0
11 years 8 months ago #92870

hi

i try to use this divider in the product description, but it not cuts the description on the listings, you can see in attachment

thanks

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 8 months ago #92918

Ok, so can you show me how did you set your product description ?

The following user(s) said Thank You: danilo87

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

  • Posts: 47
  • Thank you received: 0
11 years 8 months ago #93091

<p>Per HP Photosmart C 5380, C 6380, D 5460, PRO B 8550, C 5324 AIO. Compatibile con CB321EE</p>

<hr id="system-readmore" /> 155555555555555555555555555555555555555555555555555 5555555555555555555555555555555555555555555555555555

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

  • Posts: 13201
  • Thank you received: 2322
11 years 8 months ago #93129

Hi,

Are you using the view "product / listing_table" ?

Try to edit it and replace:

echo $this->row->product_description;
By:
echo preg_replace('#<hr *id="system-readmore" */>.*#is','',$this->row->product_description);

The following user(s) said Thank You: danilo87

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

  • Posts: 47
  • Thank you received: 0
11 years 8 months ago #93149

perfect now work

thanks very much and apologise for any inconvenience.

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

Time to create page: 0.082 seconds
Powered by Kunena Forum