Installation


WordPress Dashboard
  • Go to ‘Admin’ -> ‘Plugins’ -> ‘Add New’.
  • Click on ‘Upload Plugin’.
  • Upload plugin zip.
  • Activate plugin.
FTP, SFTP, SCP etc…
  • Unzip plugin zip.
  • Upload the unzip plugin folder to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp, scp, etc…).
  • Activate plugin.

Stores


Add store
  • Go to ‘Admin’ -> ‘Product Sync’ -> ‘Stores’.
  • You will see ‘Add store’ section.
  • Store URL: Add WooCommerce secondary web store (WordPress site) URL.
  • Create WooCommerce App in secondary web stores to get Consumer Key and Consumer Secret.
    • Go to ‘Admin’ -> ‘WooCommerce’ -> ‘Settings’ -> ‘API’ -> ‘Keys/Apps’.
    • Click the ‘Add Key’ button.
    • You will see add WooCommerce App section.
    • Description: Add WooCommerce App description.
    • Permissions: Select a ‘Read/Write’ permission.
    • Click on ‘Generate API Key’ button.
  • Consumer Key: Add WooCommerce App consumer key.
  • Consumer Secret: Add WooCommerce App consumer secret.
  • Click on ‘Add store’ button.

If you fetch the “Authentication failure.” error or not sync products,
1) Pretty permalinks in Settings > Permalinks so that the custom endpoints are supported. Default permalinks will not work. The guide is here.
2) Add “RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]” line in secondary web stores .htaccess file.

The original .htaccess looked like:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
You need to change it like (if you fetch error):
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Edit store
  • Go to ‘Admin’ -> ‘Product Sync’ -> ‘Stores’.
  • You will see list of synced stores.
  • Click on edit icon which you want to edit store.
  • You will see edit store section.
  • Status: Enable/Disable store sync. By default enabled.
  • Consumer Key: Update WooCommerce App consumer key if you want.
  • Consumer Secret: Update WooCommerce App consumer secret if you want.
  • Exclude categories products: Check the checkbox categories which you want to exclude categories products when syncing with stores.
  • Exclude Meta Data: Add the meta key which you want exclude when syncing with stores. Add product meta key by comma separated and don’t add any space between comma. The standard meta keys are featured, catalog_visibility, sku, regular_price, sale_price, date_on_sale_from, date_on_sale_to, virtual, external_url, button_text, manage_stock, stock_quantity, in_stock, backorders, sold_individually, weight, dimensions, shipping_class, reviews_allowed, upsell_ids, cross_sell_ids, purchase_note, variations, menu_order and custom meta keys.
  • Price Adjustment: Enable/Disable product price adjustment. By default disabled.
  • Price Adjustment Type: Select Percentage Amount or Fixed Amount as per your needs.
  • Price Adjustment Amount: Add price adjustment amount as per your needs. It will reflect on product regular price and sale price.

Settings


  • Go to ‘Admin’ -> ‘Product Sync’ -> ‘Settings’.
  • Sync Type: You can set ‘Auto Sync’ or ‘Manual Sync’ as per your needs. By default ‘Auto Sync’.
    • Auto Sync: Sync product automatically when a product add/update.
    • Manual Sync: Sync product manually.
      • Edit product which you want to sync.
      • You will see ‘WooCommerce API Product Sync’ section.
      • Select WooCommerce stores.
      • Click on ‘Sync’ button.
  • Authorization: You can set ‘Header’ or ‘Query String Parameters’. By default ‘Header’. Occasionally some servers may not parse the Authorization header correctly, Select “Query String Parameters” option if you fetch “woocommerce_rest_cannot_view” REST API error.

Bulk Sync


  • Go to ‘Admin’ -> ‘Product Sync’ -> ‘Bulk Sync’.
  • Select product per page.
  • Click on ‘Filter’ button
  • You will see list of products.
  • Select products which you want sync.
  • Select WooCommerce stores.
  • Click on ‘Sync’ button.

Also, support two-way sync. If you sync two stores with two-way sync, purchase two licenses one by one from the CodeCanyon. If you sync three stores with two-way sync, purchase three licenses one by one from the CodeCanyon.