JDStar Posted April 29, 2015 Share Posted April 29, 2015 (edited) W jaki sposób pozwolić na używanie tagów HTML w polu z cechami produktu? Presta 1.6.0.5, w klasie FeatureValue zmieniłem: 'value' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml', 'required' => true, 'size' => 5000) Niestety w dalszym ciągu przy zapisie Presta czyści mi wszystkie tagi. Gdzie jeszcze szukać jakiegoś validatora, który mi to czyści? Edited April 29, 2015 by JDStar (see edit history) Link to comment Share on other sites More sharing options...
0 JDStar Posted April 30, 2015 Author Share Posted April 30, 2015 Rozwiązałem problem - oprócz tego co powyżej to w klasie Product.php musimy dodać parametr zezwalający na HTML w zapisie do bazy pSQL($cust, true): public function addFeaturesCustomToDB($id_value, $lang, $cust) { $row = array('id_feature_value' => (int)$id_value, 'id_lang' => (int)$lang, 'value' => pSQL($cust, true)); return Db::getInstance()->insert('feature_value_lang', $row); } 1 Link to comment Share on other sites More sharing options...
Question
JDStar
W jaki sposób pozwolić na używanie tagów HTML w polu z cechami produktu?
Presta 1.6.0.5, w klasie FeatureValue zmieniłem:
Niestety w dalszym ciągu przy zapisie Presta czyści mi wszystkie tagi.
Gdzie jeszcze szukać jakiegoś validatora, który mi to czyści?
Edited by JDStar (see edit history)Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now