Skip to content

WooCommerce Remote Sync Alta

Documentation for the Plug and Pay WooCommerce Remote Sync Alta plugin.

Requirements

Technical Requirements

  • PHP: 8.1, 8.2, or 8.3
  • ionCube Loader: Required. For more details, check the ionCube Manual.
  • WooCommerce: 3.5 or higher
  • WP-CLI: Recommended for background sync and product imports.

Store Setup Prerequisites

  • Alta API Credentials: Client ID and Client Secret provided by Alta.

Integrations

Sync Products periodically pulls product data (price, stock) from Alta into WooCommerce. Products must first be mapped manually in the admin before they are synced.

Import Products creates new WooCommerce products from Alta's catalogue. On first run it drafts all products that don't yet exist in WooCommerce, optionally fetching attributes and images per product. Products imported this way are automatically registered in the sync table, so there is no need to map them manually.

Technical Specification & Feature Support

FeatureSupported
HPOS
Sync Products
--Stock sync
--Price sync
--Force sync
--Product mapping table
Import Products
--Simple products
--Categories
--Attributes & images
Order Sync

WP-CLI Commands

Sync Products

# Pull latest price and stock from Alta into WooCommerce
wp alta sync

# Download the remote product list into the local mapping table
wp alta download-list

Import Products

# Create WooCommerce products for all remote products not yet imported
wp alta create-wc-products

Cron Scheduling

Product sync is lightweight and can run frequently. Import is slower (especially with attributes & images enabled) and should run rarely. A typical setup runs sync every 15 minutes and import once at midnight:

# /etc/cron.d/remote-sync-alta

# Sync price & stock every 15 minutes
*/15 * * * * www-data wp --path=/var/www/html alta sync

# Import new products once a day at midnight
0 0 * * * www-data wp --path=/var/www/html alta create-wc-products