Laravel ONDC Connector – Webkul Blog


The Laravel ONDC Connector module integrates Bagisto with the Open Network for Digital Commerce (ONDC), enabling seamless interoperability and product sync between both platforms.

The Laravel ONDC Connector module enables seamless integration between Bagisto and the ONDC platform.

It allows admins to import products and categories from ONDC into their Bagisto store.

Table of Contents

Key Features of the Laravel Bagisto ONDC Connector:

The Bagisto ONDC Connector enables seamless synchronization of products and categories from ONDC to Bagisto.

Admin can import products.

Additionally, categories can be imported by the admin.

Mapping Bagisto categories to ONDC categories is handled by the admin.

The synchronization process is also managed efficiently.

Installation of the Laravel Bagisto ONDC Connector Module:

Unzip the respective extension zip and then merge the “packages” folders into the project root directory.

  • Goto config/app.php file and add the following line under ‘providers’
Webkul\ONDCConnector\Providers\ONDCConnectorServiceProvider::class,
  • Goto composer.json file and add following line under ‘psr-4’
"Webkul\\ONDCConnector\\": "packages/Webkul/ONDCConnector/src"
  • In the config/bagisto-vite.php file, add the following line under the ‘viters’ section:
'ondc' => [
   'hot_file'                 => 'ondc-vite.hot',
   'build_directory'          => 'themes/ondc/default/build',
   'package_assets_directory' => 'src/Resources/assets',
],
#### Run these commands below to complete the setup

composer dump-autoload

php artisan ondc-connector:install

Seller Onboarding Process

“For the seller’s onboarding process for ONDC, please check out the following link: https://webkul.com/blog/seller-onboarding-process-for-ondc/“

Admin Configuration –

Once you successfully execute the commands, you will see the ONDC Connector by navigating through Configure-> ONDC Connector.

Here, the store admin will be able to configure the initial settings –

Status: Enable or disable the module by clicking the toggle switch.

Product Delete Toggle: Enable or disable the system to automatically delete the ONDC product when a product is removed from Bagisto.

Product Import Button: Enable or disable the creation of a Bagisto product during product import

Location ID: The admin can set the location ID.

Seller ID: The admin can enter the seller ID.

Seller Portal URL: Enter the seller portal URL.

API Server URL: Enter the API server URL.

Access Token: Enter the seller Access Token.

Refresh Token: Enter the Refresh Token.

Connector Configure –

Bagisto ONDC Connector product import interface screenshot

API Server URL: Enter the seller API server URL here.

Access Token: Enter the seller Access Token.

Refresh Token: Enter the Refresh Token.

Product Import Using the Laravel Bagisto ONDC Connector:

By clicking on the ‘Import Products’ button, you can import products from ONDC to Bagisto.

Product listing in Laravel Bagisto ONDC Connector module

Category Import with the Laravel Bagisto ONDC Connector:

By clicking on ‘Import Category’, you can import categories from ONDC to Bagisto.

Category mapping in Laravel Bagisto ONDC Connector module

Map Category:

By clicking on ‘Map with Store Category’, you can map a Bagisto category to an Multiple ONDC category.

Mapping Bagisto categories to ONDC categories in Laravel ONDC Connector

Support:

That’s all for the Laravel ONDC Connector module. If you encounter any further issues, please don’t hesitate to submit a support ticket and provide your feedback at bagisto.uvdesk.com.

Current Product Version – v2.2.1

Supported Framework Version – v2.2.1


Share this content:

I am a passionate blogger with extensive experience in web design. As a seasoned YouTube SEO expert, I have helped numerous creators optimize their content for maximum visibility.

Leave a Comment