Skip to content
This repository was archived by the owner on Jun 1, 2021. It is now read-only.

jamesmerk/woocommerce-amazon-mws-integration

Repository files navigation

WooCommerce Amazon MWS Integration

The WooCommerce Amazon MWS Integration is a WordPress/WooCommerce plugin that connects a WooCommerce store to an Amazon Seller Account via Amazon MWS (Marketplace Web Services). Once connected, the plugin syncs the pricing and inventory of products in your WooCommerce store with the products listed in your Amazon Seller Account.

NOTE: This repository is archived and the software is considered to be incomplete.

How It Works

  1. When creating a new data feed, the plugin pulls data from the WooCommerce REST API via AJAX long polling.
  2. The data pulled from the WooCommerce REST API is converted to a flat file with MWS formatting.
  3. The flat file mentioned above is then automatically submitted to MWS for processing
  4. When the submitted data is finished processing by MWS, Amazon SQS will notify you by sending a notification to the registered notification Destination (see MWS Prerequisites). This notification will contain data regarding the number of successfully processed records, errors, etc.

Data syncing with the plugin can either be triggered manually via the plugin's settings menu, or can be ran at a scheduled time with provided CRON Job triggers.

MWS Prerequisites

Amazon MWS recommends the following to be implemented to avoid long polling MWS for submission updates:

  1. A Destination for notifications related to submissions to MWS (inventory, etc). This is where Amazon SQS will send submission related notifications.
  2. A Subscription to be made to the above Destination. This allows for Amazon SQS (Simple Queue Service) to notify you of MWS events related to your account or submissions (such as inventory process completion) without polling MWS.
  3. Not required, but test notifications can be sent to your Amazon SQS Destination for testing purposes.

Plugin Requirements

  • Amazon Seller Account
  • Amazon AWS Account
  • Amazon SQS (Simple Queue Service)
  • WordPress 5.0 or higher
  • WooCommerce Plugin 3.0 or higher
  • Composer
  • Install below dependencies via Composer

Software Dependencies

  • automattic/woocommerce - 3.0 or higher - required for WooCommerce REST API

Changelog

[ 0.11.0 ] - Subscription Creation Stable, Subscription Update Stable, Test Notifications Stable - latest stable version

Added

  • Test Notification Support
  • Additional Model files for test notification support
  • Class MWS_Test_Notifications to handle testing notifications with registered subscription destinations
  • Update subscription support
  • Class MWS_Subscriptions to handle creating and updating Amazon MWS Subscriptions
  • Subscription Creation via Amazon SQS
  • Documentation for Subscription Creation
  • Amazon MWS Subscription service files and classes
  • Class MWS_Destination to handle registering and deregistered Amazon MWS Notification destinations

[ 0.10.0 ]

Notable features

  • Inventory feed can now be submitted to Amazon MWS via plugin admin area

Added

  • Send feed condition and response to WP REST API
  • Feed submission list condition and response to REST API
  • Feed submission result condition and response to REST API
  • send feed event listener in woo-amz-integration-admin.js
  • Inventory feed submission to Amazon MWS via plugin admin area
  • REST API feed submission response (submission response data was previously only available in logs)

Fixed

  • PHP 5 warning where the object passed to isSetParameters() in Model/ContentType.php could not institute count() (fixed by casting the object to an array)

[ 0.9.0 ]

Notable features

  • Stop and restart feed creation functionality now working
  • Inventory file now deleted and recreated on feed restart

Added

  • Database functions to class TFS_DB_MAN
  • Feed incomplete warning in plugin options interface
  • Continue feed button to plugin options interface
  • Feed Continue support in woo-amz-integration-admin.js
  • Continue and Restart Feed functionality (still a bit buggy)
  • File deletion handler to class Woo_Amz_File_Handler
  • File path constants to class Woo_Amz_File_Handler

Removed

  • Database functions from woo-rest-api.php

[ 0.8.0 ]

Notable feature

  • complete product download with variations successful

Added

  • Product variation support
  • Product variations to inventory file
  • File data parameters to Woo_Amz_File_Handler constructor
  • Woo_Amz_File_Handler initialization to class Woo_REST_API

Removed

  • File Handler initialization from function run_woo_amz_integration()

[ 0.7.1 ]

Fixed

  • WooCommerce REST API bug where product loop would complete before finished
  • Database bug where product download would be mark as completed before being completed

[ 0.7.0 ]

Added

  • Error log to Class MWS_FEED
  • Response Logging to Class MWS_FEED

Changed

  • Reformatted invoke feed methods in Class MWS_FEED
  • Invoke method exception handling

Fixed

  • HTTP Bug where connection would not close with MWS

[ 0.6.0 ] - 7.28.2020 - Most recent stable version for Amazon MWS

Added

  • Class MWS_FEED to handle construction and responses related to MWS feed submission
  • Amazon MWS Feed submission list
  • Amazon MWS Feed submission results
  • New Model files related to Feed Lists and Feed Results
  • Class DB_MAN to manage database operations within plugin

[ 0.6.0 ] - 7.27.2020

Added

  • Amazon MWS API Support
  • Amazon MWS Feed submission files

[ 0.5.0 ] - 7.9.2020

Added

  • Delete file feature if a file exists and user wants to create a new one
  • Admin nonces
  • Download button support (now works
  • Inventory feed row reset

Removed

  • Dynamic SQL row creation (only one row will be needed)

[ 0.5.0 ] - 7.7.2020 - Most recent stable version

Added

  • Stop feed creation button, download file button and send file button to settings menu
  • Admin notice for whether or not an inventory file exists
  • Progress messages to admin menu to notify when the feed is running, etc.
  • WP REST API Json response to deliver information about feed while running
  • Basic CSS

Changed

  • Admin settings menu
  • Asynchronous product tracker to be more accurate

Removed

  • JS Ajax progress checker function

[ 0.4.0 ] - 7.7.2020

Added

  • class Woo_Amz_File_Handler to create product inventory files
  • documentation for woo-rest-api.php and class-woo-amz-file-handler.php

[ 0.3.0 ] - 7.6.2020

Added

  • Database creation on plugin activation
  • Custom SQL table creation, custom SQL columns for plugin feed download progress
  • URL query string for triggering feed creation via CRON (trigger script)
  • URL query string for triggering feed restart if it doesn't complete (process script)
  • Feed restart callback function (checks if feed is finished, if not continue where it left off)

[ 0.3.0 ] - 7.3.2020

Added

  • Progress Tracker and SSE integration ( checks progress of product data download )
  • WP REST API ( used for MWS calls to amazon and tracking product data download progress )
  • Options.php to keep track of saved options in plugin settings
  • Plugin settings menu
  • WP Admin navigation menu
  • Ability to start product feed creation from WP Admin

[ 0.2.0 ]

Added

  • REST API file and Class Woo_REST_API to handle api calls
  • WooCommerce REST API Keys
  • WooCommerce REST API integration (gets data from woocommerce installation such as stock and pricing)
  • Product objects containing each product's sku, pricing, and stock in accordance with Amazon
  • PHP composer dependency manager (required for woocommerce rest api integration)
  • HTTP handler for WooCommerce REST API (allows internal and external communication from website)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages