presta_jsM Posted October 26, 2022 Share Posted October 26, 2022 Hello, I am trying to assign a feature "video" with a youtube video url in some products. But when I save the feature "Video" disappears, instead when putting a word if it works. Is there a way to enable saving URLs in that field? Thanks! Link to comment Share on other sites More sharing options...
ps8modules Posted October 27, 2022 Share Posted October 27, 2022 Hi. Such modification requires the intervention of an expert, a programmer. It is necessary to modify or override several controllers and, of course, to modify the tpl template. Link to comment Share on other sites More sharing options...
presta_jsM Posted October 27, 2022 Author Share Posted October 27, 2022 3 hours ago, 4you.software said: Hi. Such modification requires the intervention of an expert, a programmer. It is necessary to modify or override several controllers and, of course, to modify the tpl template. No, I don't want to modify the front to show the video, only I want to save the link. Thank you! Link to comment Share on other sites More sharing options...
ps8modules Posted October 27, 2022 Share Posted October 27, 2022 (edited) Hi. ./classes/FeatureValue.php change line 53 to: /* Lang fields */ 'value' => ['type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml', 'required' => true, 'size' => 255], Edited October 27, 2022 by 4you.software (see edit history) Link to comment Share on other sites More sharing options...
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