ovy79ro Posted March 19, 2015 Share Posted March 19, 2015 Hello, I want to make a script for importing products from external xml file, but I havve a confusion. On product name for example, you can enter max 128 characters. If you enter more than 128 characters, prestashop gives error and the product is not save. My products from xml file have more than 128 characters on product name. Same think on product short description, meta tags, etc... How can i import these products? I have some 10000 products in xml. Thank you. Link to comment Share on other sites More sharing options...
PrestaShopDeveloper Posted March 19, 2015 Share Posted March 19, 2015 If you want to import the products with the 128+ characters as a name, you will need to change the database table structure - increasing the fields length and the definition of that fields, overriding the corresponding ObjectModel classes. In every ObjectModel class there is one static array called $definition. Link to comment Share on other sites More sharing options...
ovy79ro Posted March 19, 2015 Author Share Posted March 19, 2015 Yes, but i dont't think this is a solution. On product page for example, if the name of product is too long, the name overlaps the picture. So i have to modify product list page too. And what about product meta name? Or product meta description? Link to comment Share on other sites More sharing options...
criacaosites Posted March 24, 2015 Share Posted March 24, 2015 Yes, but i dont't think this is a solution. On product page for example, if the name of product is too long, the name overlaps the picture. So i have to modify product list page too. And what about product meta name? Or product meta description? Do you have this code? Can you share? I can help you. 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