Category and Attributes
The first thing to do for pushing/uploading OMS products to the marketplace is to pull the marketplace categories and attributes. Pulling product categories is retrieving product categories from all registered marketplaces. This action will require Marketplace (MP) Adapter to do action. Here is the flow for pulling product category:
Click on the Pull Category button and please wait for the process to finish. You can check the current progress on the
Tools > CLI Tools menu.Another option for pulling categories is to use CLI in the terminal, just type this command:
php bin/magento swiftoms:mpadapter:pull-product-categoryAfter marketplace categories are pulled. Enable the categories that you want to use by clicking on the Update Status
button.
The template CSV for updating category status can be downloaded by clicking on the Download the Sample CSV.
Open the sample CSV file on any supported application and edit data as needed. Please note that the file to upload is
using comma-separated values. The first row is the column name and below it are category data. For example:
For Status column, “0” is to disable the category while values “1” is to enable product category.
To upload a CSV file, click Choose File button and select the file you have edited earlier. Click on the Submit button to
upload the file and please wait until the update process is complete.
Attributes Mapping
After pulling & enabling product categories, the next step for pushing products to the marketplace is mapping marketplace category attributes to SWIFT OMS attributes.
On the Marketplace > Product Attribute Mapping menu, click Add New Mapping button.
Select the marketplace that you want to add a mapping, then select the category that you have updated status to
active. After that, the Product Attributes will reload its options.
Click Show mandatory attributes to show the attributes list below the form.
Mandatory attributes are the main attribute that you need to map to SWIFT OMS attributes. If you miss one
of these attributes, the process of pushing the product to the marketplace will be failed.Other attributes besides the mandatory attributes are optional, it depends on your need or requirements.
Select Product Attribute on Marketplace Data and select Product Attribute on Mapping To (SWIFT OMS).
Click Submit and repeat all the processes you need.
Set Attribute Value
After attribute mapping, the next step for pushing the product to the marketplace is select the product you want to push and set the attribute value that you have set the mapping.
Go to Catalog > Products menu, click View on the product that you want to push to the marketplace in the Action
column.
On product detail page, set the value of the attribute that you have mapped.
Besides that, you need to select marketplace channel where you want to push this product.
After all mandatory fields are filled, click submit to save product data. Repeat all processes for all products that
you want to push.Lastly, run CLI on terminal to push product to marketplace:
To get the response you need to run this CLI on terminal: