News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Allow Script Tags in Category Descriptions

Started by beesbane, March 06, 2013, 03:48:26 AM

Previous topic - Next topic

beesbane

I've looked around for a while now, and I can't seem to figure this out.

How do I allow script within the product category descriptions? All the solutions I have found reference a folder structure that doesn't exist.

certico

Came across this old post when trying to figure this out for myself, OP seems well indexed in google for relevant search term so here is how I did it:

This is in Virtuemart 2.6.8 find the following file:
/administrator/components/com_virtuemart/controllers/category.php

around line 56:

$data['category_description'] = JRequest::getVar('category_description','','post','STRING',JREQUEST_ALLOWHTML);


Change this to


$data['category_description'] = JRequest::getVar('category_description','','post','STRING',JREQUEST_ALLOWRAW);


AFAIK this bypasses all filtering on the category description user input so use with caution.