News:

Support the VirtueMart project and become a member

Main Menu

Adding some HTML in VM product title

Started by quadbsys, November 26, 2013, 18:03:03 PM

Previous topic - Next topic

quadbsys

We have the need to have our products have line breaks in their title. For example we would like the product title to appear as:
SuperCoolc
Ointment


The title field in Virtuemart should be able to be filled out as
Supercool<sup>&copy;</sup> <br />Ointment

Problem is, any html like my <br> is stripped from the title when saving and does not appear on the frontend. Does anyone please know how to go about this? I have tried telling the client it is not possible, but they persist that they require this functionality. The <br> is the most important piece.

jenkinhill

#1
I have used ReReplacer to do something very similar to that as it is very simple to use.

I just tested this with the default product, Hand Shovel for which I entered the title as Hand^^^Shovel

In the rereplacer component I set ^^^ to be replaced by <sup>&copy;</sup> <br />
and the result is:

Hand©
Shovel

Note that on the page the © was superscripted. Of course you don't have to use ^^^
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

PolishedGeek

What a wonderfully simple solution! Beautiful.
~ Deb Cinkus, CEO
Polished Geek, LLC   |    www.PolishedGeek.com

Creators of JoomLister - eBay Lister for Joomla!