Search the Community
Showing results for tags 'product editor'.
-
bug report Can't save various product pages due to HTML validator
justivo posted a topic in Bug reports
I've imported a big store from WooCommerce so it came with a bunch of unnecessary HTML and inline CSS... yet none of it is technically wrong. HTML elements are closed, CSS rules are valid, and all quotes are opened and closed properly. About 30% of my product pages imported cannot be saved now when editing in the Prestashop 1.7 product editor, always claiming the description to be invalid. I'm tired of going over and over this HTML soup only to realize that it's not wrong and it even validates in the W3C editor after removing the width's from the table elements, and my conclusion is that there is something wrong with the HTML validator used on the product page (other products that I can save also have those width attributes, so that's not it either). I have noticed while trying to find more information about my own issue online that people will go as far as override this validation method and, while I'm probably also going to do that for the time being, I think it's more useful for the community to report a bug. I'm thus attaching an example of a page HTML that doesn't "validate". example2.txt -
I have a problem and I am having trouble finding a correct to fix it. When I set up my shop, it was installed with English language (id_lang="1". I added Danish language (id_lang="2") and deleted the English language from Backoffice. However, all the Id_lang="1" entries are not gone from the database. Now, when I add a new product attribute, it is added in the database as id_lang="2", BUT the Product Editor speaks the wrong language and looks for attributes of id_lang="1". So, I cannot add new combinations as the new attributes do not appear in the product editor. When I go to phpmyadmin and check tables 'ps_attribute_lang' and 'ps_attribute_groups_lang', the new attributes are only saved as 'id_lang*="2". If I make a copy with 'id_lang'="1", then the new attributes become visible in the Product Editor. I'm running Prestashop 1.7.4.2.
-
Prestashop 1.6.1.18 tinyMCE editor removes some css inline properties from HTML source code in product description. No matter if it is short or long description, custom theme or default-bootstrap theme? For instance while saveing product description property "background-size: auto 100%; " is deleted from HTML source code. Could someone possibly tell me why?!! Is there validation process that deletes css property ? There is example here ( having saved HTML code I have lost "background-size" property) : <!-- Input HTML: --> <div style=" margin: 0 0 18px 0; background-image: url('Thumb-Orange.jpg'); background-repeat: no-repeat; background-position: left top; background-size: auto 100%; padding: 35px 30px 35px 20px; font-family: georgia, palatino; font-style: italic; letter-spacing: 4px;"> <p>description</p> <ul> <li>feature no1</li> </ul> </div> <!-- Output HTML: --> <div style=" margin:0 0 18px 0; background-image:url("Thumb-Orange.jpg"); background-repeat:no-repeat; background-position:left top; padding:35px 30px 35px 20px; font-family:georgia, palatino; font-style:italic; letter-spacing:4px;"> <p>description</p> <ul> <li>feature no1</li> </ul> </div> - Input: --> a
-
- description
- html
-
(and 6 more)
Tagged with:
-
Hi, after upgrade (1-click module) to 1.6.0.14 from 1.6.0.6, the product editor page is not loaded properly (look t the screenshot attached). In Safari element inspection it displays: [Error] ReferenceError: Can't find variable: $ global code (index.php, line 39) [Error] ReferenceError: Can't find variable: $ global code (index.php, line 657) [Error] ReferenceError: Can't find variable: $ global code (index.php, line 756) [Error] ReferenceError: Can't find variable: $ global code (index.php, line 897) [Error] ReferenceError: Can't find variable: $ global code (index.php, line 930) [Error] ReferenceError: Can't find variable: $ global code (index.php, line 963) [Error] ReferenceError: Can't find variable: hideOtherLanguage global code (index.php, line 1008) [Error] ReferenceError: Can't find variable: $ global code (index.php, line 1052) Chrome shows: Uncaught ReferenceError: $ is not defined index.php?controller=AdminProducts&id_product=67&updateproduct&token=b35d81e8fd9104c978648bd9d85471…:39 (anonymous function) ... Firefox: ReferenceError: $ is not defined index.php:39 ... I've tried activate the development mode, but the error remains always the same. What it is about? Did anybody face this issue? Thanks
- 3 replies
-
- referenceerror
- 1.6.0.14
-
(and 2 more)
Tagged with: