VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: Grisu74 on November 20, 2016, 22:00:41 PM

Title: Insert snippets
Post by: Grisu74 on November 20, 2016, 22:00:41 PM
Hello,
I need help.

How do I put this snippet in virtuemart products? (see screenshot)

I tried plugging in backend for each product (with JCE) but when I save the code is deleted.

Thank you
Title: Re: Insert snippets
Post by: Studio 42 on November 20, 2016, 22:25:02 PM
It's not possible (and very bad for security reason to permit this type of code in the editor).
THe standard way is, or to modify the overide for products details or make a standard Joomla system plugin or customfield plugin (depending your needs).
Title: Re: Insert snippets
Post by: Milbo on November 21, 2016, 20:03:38 PM
You can store this. But you must ensure that you store as raw. Check your permissions and your Editor settings.

But Patrick is right, a correct override or plugin is more suitable