Menu Close
    Start a Project Request quote Reading list Switch to dark mode
    magento-marketplace-mod

    Magento 2 WooCommerce Connector

    Every E-commerce merchant wants to expose the product range to more and more potential customers via multi-channel selling to grow their business.

    However, if you are a multi-channel seller on Magento 2 and WooCommerce store then managing both the stores could be a tedious task. But using the Magento 2 WooCommerce Connector module, the store owner can integrate the Magento store with the WooCommerce store.

    Using the module, the store owner will no longer be required to configure the product data and information on both the stores separately. The store owner can sync the product, orders from WooCommerce to Magento store.

    Note:

    • Magento 2 WooCommerce Connector module is compatible with the following version of WooCommerce – 2.6.x, 3.0.x, 3.1.x, 3.2.x, 3.3.x, 3.4.x

    Features

    • The admin can map WooCommerce categories with Magento 2 categories.
    • The admin can import WooCommerce products to Magento 2 store.
    • The admin can set a default category for the imported products in the Magento 2 store.
    • The admin can set default quantity and weight values for imported products in the Magento 2 store.
    • The admin can import Simple as well as Configurable product types.
    • The product information like base image, additional images, name, price, SKU, description, quantity, weight and super attributes with options get imported along with the product.
    • Imported WooCommerce product work like same as Magento product.
    • The admin can import WooCommerce orders to Magento 2 store.
    • The admin can set the default store view for the imported order in the Magento 2 store.
    • The orders will fetch automatically via Cron and if order items do not exist in Magento, it will automatically be created.
    • The admin can add multiple WooCommerce Accounts.
    • The admin can view and manage the WooCommerce Accounts.

    Installation

    Customers will get a zip folder and they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder. You need to transfer this app folder into the Magento2 root directory on the server as shown below.

    After the successful installation, you have to run these commands in the Magento2 root directory.

    First command – php bin/magento setup:upgrade

    Second Command – php bin/magento setup:di:compile

    Third Command – php bin/magento setup:static-content:deploy

    Fourth Command – This is for getting WooCommerce API – you@yourhost:/path/to/your-project$ composer require automattic/woocommerce

    After running the commands, you have to flush the cache from the Magento admin panel by navigating through->System->Cache management as shown below.

    Multi-Lingual Configuration

    For Multilingual support, please navigate to Store>Configuration>General >Locale Options. And select your desired language from the Locale option.

    Language Translation

    For module translation, navigate to the following path in your system  app/code/Webkul/WooCommerceConnector/i18n/en_US.csv. Open the file named en_US.CSV for editing as shown in the below screenshot.

    Then replace the words after the comma(,) on the right in the file with your translated words.

    After editing and translating the CSV file, you need to save the translated file name according to your region language and country code such as – de_DE.CSV. Followed by uploading the translated file to the same folder from where you have obtained it. Now your module translation is complete.

    How To Get WooCommerce API Credentials?

    To get the WooCommerce API you need to have WooCommerce installed on your existing WordPress site. If not installed then install it from WooCommerce page.

    Now, in your WordPress backend navigate to WooCommerce -> Settings as per the below image.

    This will navigate you to the settings page where you will select the Advanced – > REST API -> Add Key as per the below image.

    Clicking Add Key will navigate you to the Key Detail page where you will create the API key.

    Here, fill the key details and hit the Generate API Key to get the keys.

    This will successfully create the keys which you can use while integrating the WooCommerce account in the Magento store.

    After generating the keys navigate to Legacy API as shown below.

    Here, the admin will check the checkbox available to enable Legacy REST API.

    Module Configuration

    After the module installation, the admin will configure the module settings by navigating to the Stores -> Configuration -> Webkul -> WooCommerce Connector as per the below image.

    Here the admin will:

    • Allow Default Value- Set “Yes” to allow the use of default values for the imported product whose values are imported empty. Else set “No” to don’t allow the use of default values for the imported product whose values are imported empty.
    • Product Delete From Catalog- Set “Yes” to allow the product deletion from the Magento Catalog if deleted from the imported product list. Else set “No” to don’t allow the product deletion from the Magento Catalog even if deleted from the imported product list.

    Manage WooCommerce Accounts

    Now, the admin can add WooCommerce account credentials. The admin can navigate to WooComemrce Magento Connect > Manage WooComemrce Accounts for managing and adding WooComemrce Accounts.

    After clicking on Manage WooCommerce Accounts, the following page will open showing WooComemrce accounts list with the Store Name and Action.

    Here, the admin can:

    • Edit – edit the WooCommerce account details by clicking on this link.
    • Delete – remove the existing WooCommerce account from the list using the action drop-down list.
    • Add WooCommerce Account – add/create new WooCommerce account.
    Add WooCommerce Account

    After clicking on “Add WooCommerce Account“, the admin will navigate to the New WooCommerce Account page as per the below image.

    Here, the admin will enter :

    • Store Name: Enter your WooCommerce store name and this will not be changed once got saved in the Magento 2 store.
    • Store URL: Enter the base URL of your WooCommerce store.
    • Attribute set: Select the attribute set for the imported product.
    • Enter the WooCommerce Consumer Key and WooCommerce Consumer Secret which the admin has received while creating the REST API from the WooCommerce account.

    When the admin clicks on “Save and Continue Edit” button, the following options become visible as per the below image.

    WooCommerce General Configuration:

    Here admin will configure the “WooCommerce General Configuration”.

    • Default Category: Select the Default Category of Magento 2 store for assigning to WooCommerce products.
    • Default Store View – Select Default Store View of the Magento 2 for order syncing.
    • Default Website: Select Default Website.
    • Default Qty – Default quantity will be assigned to the product when WooCommerce product does not have quantity.

    Category Mapping:

    After this, the admin will map the Magento 2 store categories with the WooCommerce store categories by clicking on the Category Mapping tab which will navigate the admin to a new page as per the below image.

    For mapping, select the Magento Store Category which the admin wants to map with the WooCommerce store Category.

    Note:

    • Only one category can be mapped at a time.
    • You cannot map the parent categories.
    • You need to select the sub-category for mapping.

    For successful category mapping, hit the Map Category button. And after mapping the categories, the admin can view them in the list as per the image.

    Import Products

    The admin can import the desired products from the WooCommerce store to their Magento store.

    To import products from the WooCommerce store, the admin will click on Import Product From WooCommerce tab as per the image.

    Here, the admin will:

    • Import Product: when clicking on “Import Product”, the temporary product data is created and stored in Magento 2 database.

    • Create Imported Product: It is used to create/add the imported products to Magento 2 store.

    Clicking the “Create Imported Product” tab will initiate the Run Profile.

    After successful execution, the admin can check the imported products in the imported product list.

    Also, by navigating to the Magento store category as per the category mapping is done for the imported product.

    Note: 

    • If category mapping is not done for the WooCommerce product category, then the imported products will be assigned to default Category as per the configuration.
    •  If the category mapping is done for the WooCommerce product category, then the imported products will not be assigned to the default category. The imported products automatically get assigned to the mapped category only.

    Configurable Product:

    Along with the simple product, the admin can even import the configurable product from the WooCommerce store.

    To import the configurable product successfully, simply follow the import process defined above for simple product import. After the import, the configurable product will be created with variation in the Magento 2 store as per the below image.

    The admin can even check the imported configurable product at the front-end also.

    HOW TO CHANGE CATEGORY OF THE IMPORTED PRODUCTS?:

    The admin can change the category of the imported products. For this, the admin will click on Import Product From WooCommerce tab as per the image.

    To change the category of the imported products, the admin will do the following:

    • Select one or more than one product from the imported products list.
    • Select Assign to Category option from the Actions drop-down list. This will display the Category field and Submit button beside the Actions drop-down list.
    • Select the desired category from the Category drop-down list.
    • Proceed further by clicking on the Submit button.

    Also, the admin can check the newly assigned category of the product by navigating to the category which has been assigned to the product.

    NOTE: 

    • The product information like base image, additional images, name, price, SKU, description, quantity, weight and super attributes with options get imported along with the product.
    • The module import simple and configurable product(variable product in WooCommerce) types.

    Import Orders

    To import the orders from WooCommerce store, the admin will click on Import Order From WooCommerce tab as per the image.

    Here the admin will:

    • Import Order: when clicking on “Import Order” button, the temporary order data is created and stored in Magento 2 database.

    • Create Imported Order: It is used to create/add the imported orders to Magento 2 store.

    Clicking the “Create Imported Order” tab will initiate the Run Profile.

    After successful execution, the admin can check the imported orders in the imported order list.

    The admin can check the details of imported orders by navigating to the Sales>Orders. 

    Note –

    • A cron is set for this module for auto synchronization of orders. The admin has to configure the cron on Magento 2 server which will automatically import the orders from WooCommerce store to Magento 2 store after every one hour by default. The admin can even change the default cron time.
    • If you are importing orders using cron and certain order items do not exist in Magento 2 store. Then, first those items get created automatically in your Magento 2 store. But if you are importing orders manually then, those products should be imported first.
    • At Magento end, the inventory of synced products will be updated when the orders are imported via cron. If the order imported manually then the inventory of synced products will not get updated.
    • The admin will not get any Email notifications for any order placed on the WooCommerce store. However, the admin needs to check those orders normally by navigating to Sales > Orders after importing them.

    HOW WOOCOMMERCE CUSTOMER GETS CREATED IN MAGENTO 2 WHILE ORDER IMPORT?:

    If you are importing the order and that customer doesn’t exist in Magento 2.

    Then, while order import that WooCommerce customer gets created in  Magento 2 automatically.

    That’s all for the Magento 2 WooCommerce Connector. If you still have any issue, feel free to add a ticket and let us know your views at http://webkul.uvdesk.com/

    Current Product Version - 2.0.0

    Supported Framework Version - 2.0.x, 2.1.x, 2.2.x

    . . .

    Comments (2)

    Add Your Comment

  • Olalekan Adepoju
    Hello,
    Can the integration go the other way round from Magento to WooCommerce I mean, while the products are added/updated within Magento, it will also be updated within wordpress??
    • gunjita joshi
      Hello there,

      On updating a product on Magento, the updates reflect on WordPress as well, but if a new product is added, it won’t reflect on WordPress.

      Please get back to us for more queries and suggestions at support@webkul.com

      Thanks!

  • Back to Top
    css.php
    Hire Us!
    Brief us about your requirements and we'll get back to you.
    Woo! Hooy!
    We have just recieved your project brief and our expert will contact you shortly.
    Send Again
    Close

    Table of Content

    Hide Index