Title: Wp cli with soo commerce
Last modified: October 16, 2020

---

# Wp cli with soo commerce

 *  Resolved [Jean R.](https://wordpress.org/support/users/efbi/)
 * (@efbi)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/wp-cli-with-soo-commerce/)
 * Hello, I would like to try to use the wp cli to run my imports
 * I have some questions to use it with Cron :
 * – Do I have to run the wp cli every 2mins as the processing ?
    – Does Using the
   cli change the compatibilitY with woocommerce addon ? It just launch the import
   non ? If yes what should I do

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-with-soo-commerce/#post-13559095)
 * Hi [@efbi](https://wordpress.org/support/users/efbi/),
 * > Do I have to run the wp cli every 2mins as the processing ?
 * No, you just have to run it once to run the import.
 * > Does Using the cli change the compatibilitY with woocommerce addon ? It just
   > launch the import non ?
 * It just runs the import, and the WooCommerce Add-On is compatible.
 *  Thread Starter [Jean R.](https://wordpress.org/support/users/efbi/)
 * (@efbi)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-with-soo-commerce/#post-13562933)
 * Hello, thanks for the answer
 * It’s weird because when I run the import with WP CLI, it doesn’t take the products
   attributes…
 *  Thread Starter [Jean R.](https://wordpress.org/support/users/efbi/)
 * (@efbi)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-with-soo-commerce/#post-13563590)
 * Well, when running WP CLI, the following filters do not launch :
 * add_filter( ‘wp_all_import_multi_glue’, ‘wpai_wp_all_import_multi_glue’, 10, 
   1 );
    add_filter( ‘wp_all_import_product_attributes_delimiter’, ‘wpai_wp_all_import_product_attributes_delimiter’,
   10, 3 ); add_action( ‘pmxi_saved_post’, ‘my_saved_post’, 10, 3 );
 * Theses fonctions are in my functions.php
    by `require_once 'inc/import.php';`
 * When I run this with processing cron, it works.
 *  Thread Starter [Jean R.](https://wordpress.org/support/users/efbi/)
 * (@efbi)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-with-soo-commerce/#post-13570139)
 * AFter trying multiple test, I found that the problem come with :
    wp_all_import_product_attributes_delimiter
   filter
 * Sometimes the filter don’t work. Can you check please ?
 *  Thread Starter [Jean R.](https://wordpress.org/support/users/efbi/)
 * (@efbi)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-with-soo-commerce/#post-13576264)
 * Well, I’m lost, yes the filter works well but the only one attribute is imported
 * I have three attributes to import : size, color and brand
 * Only the first one (with drag and drop) is imported, so for the moment I use 
   size in first, but the two others are not imported.
 * I thought it was the filter, but no
 *  Thread Starter [Jean R.](https://wordpress.org/support/users/efbi/)
 * (@efbi)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-with-soo-commerce/#post-13576439)
 * I finally found the issue !
 * When the option “Link all variations” is not checked, you can choose options 
   in the “Variations” Tab
 * The option where selected to “All products with variations are grouped with a
   unique value that is the same for each variation and unique for each product.”
 * Even after re-enabled the “Link all variations”, it seems that the plugin kept
   use the Variations Tab options.
 * I put the first option then re-enable Link all variations.
    It worked ! Maybe
   a bug.
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-with-soo-commerce/#post-13592961)
 * Hey [@efbi](https://wordpress.org/support/users/efbi/),
 * > Even after re-enabled the “Link all variations”, it seems that the plugin kept
   > use the Variations Tab options.
 * That’s really strange, and I can’t replicate it in my tests. If you can replicate
   it at [http://www.wpallimport.com/debug/](http://www.wpallimport.com/debug/) 
   and open a support request at [http://www.wpallimport.com/support/](http://www.wpallimport.com/support/)
   with the details, we’d be happy to take a look at why it’s happening.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Wp cli with soo commerce’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/wp-cli-with-soo-commerce/#post-13592961)
 * Status: resolved