Re: How-To: Add new Properties to your Products
Sorry, I meant to mention the link didn't work... I found it easy enough
Quote:
Somewhat surprisingly, it's not too difficult to apply the desired sanitization once the regex stuff at the bottom is better understood (currently doesn't have "straight" words about what it allows/removes, just identifies the "code" of what it does).
At the moment, I'm playing around off-line, so it's quick and easy to disable it... I've also enabled logging and once I get my head around the instructions and what's in the logs, I should be able to nut it out
John
Re: How-To: Add new Properties to your Products
I seem to have figured it out and as suggested, it was a pretty easy solution... I'll post this so it might help others trying the same idea.
In "init_sanitize.php" I added the code in red : (That's the variable I've been playing around with)
Code:
$group = array('products_description', 'products_info', 'coupon_desc', 'file_contents', 'categories_description', 'message_html', 'banners_html_text', 'pages_html_text', 'comments', 'products_options_comment');
$sanitizer->addSimpleSanitization('PRODUCT_DESC_REGEX', $group);
As for as I can see everything works perfect - Thanks for the assistance, it's much appreciated.
John