LLLL_LLLL
Forum Replies Created
-
Forum: Plugins
In reply to: [Woocommerce CSV importer] Product in another language creation (WMPL)Hi Allaerd,
After a bit more investigation on WPML it turns out that I do not need duplicated product but product translated independently.
So code on lines 50->60 of http://pastebin.com/bngjJHff wouldn’t work as it would create duplicated product in other languages in WPML.
I would then have to manually click on “translate independently” button for each of the duplicated products.So, rather than having your csv importer plugin be dependent on WPML, I think the following approach would be easier for everyone :
1- Batch-create all products in main language using your csv importer plugin
2- Use WPML plugin to create independent translations for each product in each language
3- Use you csv importer to batch-rename products in each language by using the merge functionBut for this 3- to happen, as independent translations have the same SKU as the main language post but a different post ID, we would need your plugin to match a product for merge based :
– on post_ID if in the csv file
– if no post_ID specified, use SKU
(note that “WP All Import” and “Product CSV Import Suite” plugins let you do this and this is the only big feature I havent found in your plugin)What do you think ? Would you be able to update yoru plugin to have it use post_ID before SKU if present in the spreadsheet for a product merge ?
In the meantime I’m going to request WPML to provide a way to batch-translate-independently a list of products, which would make step 2- a breeze.
Thanks !
Forum: Plugins
In reply to: [Woocommerce CSV importer] Product in another language creation (WMPL)Hi Allaerd,
Thank you very much for the quick answer, much appreciated !
Are you talking about this script http://pastebin.com/bngjJHff
(from this post http://wpml.org/forums/topic/translation-is-not-there-yet-when-importing-product/#post-146218 ) ?A- If so, could I just add lines 50->60 of http://pastebin.com/bngjJHff into your csv importer plugin somewhere so that everytime you create a new product, it is also duplicated in every other language ?
Duplication should not be happening when you update an existing product of course.If we test for WPML presence before calling those lines (with something like “if (function_exists(icl_register_string)) { do this wpml specific code }”) it should be quite robust (and for the future you could even add a “Create product in every language if WPML is used” checkbox in the csv importer plugin settings to toggle this)
B- For now, the process I’d like to achive would be the following:
1- Batch-create all products in main language using your csv importer (let’s say English)
2- Have your csv importer duplicate those products for each other language and link them with main language product with modification from A-
(at that point, duplicated products in other languages would have a title in English, I assume)
3- Use you csv importer to batch-rename products in each other language.But for 3- to happen I’m not sure how to target duplicated products to update them with your csv importer (I’m not sure what field your csv importer use to assess a product exists and only needs to be updated ? In this case SKU will be the same as the original product, so this couldn’t be used to target the duplicated product)
What do you think about A- and B- ? Do you reckon this could work ?
Sorry, my bad, I was still logged out as an admin when checking the website.
This is indeed working perfectly on wp 3.6 for me.Thank you for your work on this very nice plugin,
Cheers !Same for me.
and no js error shown in Chrome console…