News:

Looking for documentation? Take a look on our wiki

Main Menu

Display html code before product title in details view

Started by johnyDev, February 05, 2014, 18:25:13 PM

Previous topic - Next topic

johnyDev

Hello,

I just want to create a plugin to display some html before, after or next to the title of the product in the details view of the product, I can't find a way, can you help ? I don't care if it's a joomla plugin of virtuemart plugin.

Thank you.

jenkinhill

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

johnyDev

Thank you for you fast replay, Maybe I wasn't clear in my question, I am a developer, and I want to create a plugin for VirtueMart, I have created some plugins for other components and they provide some plugin events where you can display html, for example an event to be fired before title display another one after title display, so it's so easy to create plugins for those components, in virtuemart it's different, you have to create product plugins and then create a custom field plugin ! and then add that custom field to every product you have !! so I forget about that and I moved to Joomla ordinary content plugin and I was able to display html after product description in onContentPrepare function and then $row->text .= $myhtml;

it's better now since user will not be obliged to add a plugin custom field in all his products ! but there is a  limitation ! I can only display html after description ! what i I want to let the users of my plugin to display something before the title of the product.

please if you can help don't hesitate
 

johnyDev