Jump to content

Short Description Bullet Points


Recommended Posts

it's because you've got in code something like $product.description_short||strip_tags

 

you have to remove all instances of |strip_tags modifier from $product.description_short variable

 

remember, that if you remove |strip_tags, you jave to remove also |truncate because your code will have got unclosed html tags

Link to comment
Share on other sites

in each part of website, where the short description appears, for example:

 

product-list.tpl from your theme directory (lists of products in categories)

homefeatured.tpl from /modules/homefeatured/ directory (featured products on homepage)

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

 

In the back office i have made bullet points in the Short Description but in the shop front there is not bullet points ad the text is continuous.

 

I would like line breaks between the lines or the info just looks muddled.

 

I'd like to add bulletted list to longer product description, but I've trying to figure it out why i do not have "bullet" mode on my Tinymce at all?

 

If i hit unordered list button, it does not create bulletted list on BO or in SF either. Even if i use Html editor to create bulletted list, all bullets are removed in BO and SF.

 

It's like my purchaced template is doing some limitations? Is it possible?

 

post-757113-0-51270800-1396181418_thumb.png

 

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

after deleted the "strip_tags" ,change the <p> tag to <a> tag. 
before

<p class="product-desc" itemprop="description">{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}</p>

after

<a class="product-desc" itemprop="description">{$product.description_short}</a>

now html tags are showing in my short description under list view mode

Edited by donut42 (see edit history)
Link to comment
Share on other sites

I´m interested in this too. Bullet lists works in short description on product view, but not in category list view. 

(PS 1.6 default theme customized)

 

you have to do the same for product-list.tpl file

Link to comment
Share on other sites

Just a thought, and I do not know if this will work for you, but for me, I use the following format.

<ul>
<li type="square">Some Important Bullet Point</li>
</ul>

By defining an <li type> in my case "square" TinyMCE recognizes it as a bullet and places a bullet in place. If you do not define a "type" you get no bullet.

Link to comment
Share on other sites

Before: 

	<p class="product-desc" itemprop="description">
						{$product.description_short|strip_tags:'UTF-8'|truncate:360:'...'}
					</p>

After: 

	<p class="product-desc" itemprop="description">
						{$product.description_short}
					</p>

Also tried:

<a class="product-desc" itemprop="description">{$product.description_short}</a>

as donut42 suggested above.

Link to comment
Share on other sites

  • 1 month later...

 

strange :(

so now what you see if you're browsing product listings?

when you check page source, <p> elements are empty?

<p class="product-desc" itemprop="description">

Hi vekia, I have the same problem, have It any solution? Id Like to an HTML mp3 player on category product list but I cant.

 

Thanks

Link to comment
Share on other sites

remove |strip_tags modifier from short_description variable in product_list.tpl file

 

Thanks for the reply,

 

I have tried with:

 

{$product.description_short|truncate:360:'...'}

 

and

{$product.description_short}

 

1st Picture Product view with Mp3 Player

post-274950-0-21475600-1404514922_thumb.png

 

2nd Picture: Category view doesnt show Mp3 Player

post-274950-0-79423100-1404514952_thumb.png

 

But it doesnt work, i use PS 1.6

 

Regards

Edited by Nando112 (see edit history)
Link to comment
Share on other sites

just a note: the reason that ps does not allow html in short description is this can/will affect your sitemap.  The short description is used for the image description, so if you hack core, this can lead to 'bad results' for your sitemap and possible for seo bots. 

 

so if you do change core, make sure to run sitemap and review short desc.

 

also using google webmaster tools, test product with fetch.

 

my advice?  do  not change core (you will lose changes when upgraded), do not add html to make things pretty when they will have adverse affects to more important parts of your shops seo.

  • Like 2
Link to comment
Share on other sites

Thanks vekia and El Patron for the replies, and excuse me for not answer you before.

 

I Understand you say me, but Is there any alternative to embed Mp3 Player in the Products category view short description? My shop is about music and I need them to show the music.

But I dont want this affects SEO, Is there any solution?

Link to comment
Share on other sites

  • 1 year later...
×
×
  • Create New...