Muhammad Shoaib Posted July 3, 2020 Share Posted July 3, 2020 i want to upload file for multi languages, how I can achieve this.( custom module development ) Thanks Link to comment Share on other sites More sharing options...
Maria Kvasnytska Posted July 3, 2020 Share Posted July 3, 2020 Hello, If you mean you'd like to import multi-lingual product details, you can use Store Manager for PrestaShop (there's a free trial you can try). At the step of import there's a mapping option, where you have to assign columns in default language to default database fields, and the fields where information in particular language listed, map to the database fields that correspond to the needed language. For example, column with product name in English should be assigned to database line Product Name and the column of your file with item’s name in German should be linked to the database field – Product Name (DE). The same concerns all the fields that you have in different languages in your file. 1 Link to comment Share on other sites More sharing options...
Muhammad Shoaib Posted July 3, 2020 Author Share Posted July 3, 2020 5 minutes ago, Maria Kvasnytska said: Hello, If you mean you'd like to import multi-lingual product details, you can use Store Manager for PrestaShop (there's a free trial you can try). At the step of import there's a mapping option, where you have to assign columns in default language to default database fields, and the fields where information in particular language listed, map to the database fields that correspond to the needed language. For example, column with product name in English should be assigned to database line Product Name and the column of your file with item’s name in German should be linked to the database field – Product Name (DE). The same concerns all the fields that you have in different languages in your file. I mean with helper form when I set ' type ' => text set 'lang' => true, so we see there in form multi langual options, the same I want with file uploads when I set 'type' => 'file'. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted July 3, 2020 Share Posted July 3, 2020 There is no functionality in helper form to create multilingual field for file type but you can achieved to same using own HTML & JS code. In the tpl file, Loop through the languages (Assign language from the php file) & create the HTML in the desired format (Take reference of the HTML for text field type) Also, For any code related queries, Kindly post the query in the "Core Developer" section instead of the "General Topics". 1 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