BigCommerce is one of the most popular e-commerce platforms. It is an excellent and cost-efficient way to implement everything you need in a single platform. BigCommerce is the most sought-after e-commerce platform for businesses that wish to quickly set up their online store with endless and extensible integration possibilities.

Here, we are going to be creating a custom application to customize the existing features and add new features to the store. First, you must download the stable Laravel package to start with the BigCommerce app development. You will need to add the package for integrating with BigCommerce. This package will support version 2 and 3 of the BigCommerce API.

Follow these steps for installation

Step 1:

Add the package to composer.json:

Step 2:

Add the service provider to config/app.php in the provider’s array.

Set-up alias for the Facade.

Step 3:

Create an app in BigCommerce by following these steps:

Go to https://devtools.bigcommerce.com/my/apps

Click on Create an app button and choose your app name.

Fill out the App summary and Details tab by referring to https://developer.bigcommerce.com/api-docs/partner/app-store-approval-requirementsyou can also skip some details for the initial set-up.  

In the Technical tab, choose the app features based on your needs.

Callback URLs and OAuth Scopes:

Callback URLs are more important for app installation and processing. Auth Callback URL gets called when you click on the install button in the BigCommerce app. Load Callback URL gets called whenever you open the app after installation. Uninstall Callback URL is not mandatory, Bigcommerce automatically uninstalls the app when you click on the uninstall button. If you want some functions to get done while uninstalling the app, you can give that function route in this URL.

Most importantly, communication with these endpoints must get done over HTTPS.

Provide your Callback URLs as below:

Create an app in BigCommerce using Laravel

OAuth Scopes specify which API resources does your app require access to, so choose the scopes according to your app’s needs.

Click on the update and close button, so that the app will get created successfully.

Step 4:

Create a Laravel App Controller:

The function given below is the Load Callback; it gets called every time you open the app.

The function below is the Auth Callback; it gets called when you install the app. We have shown it here to save the access token with the storehash in the database, which can be used for future purposes.

Step 5:

Now open your BigCommerce store and view the created app in your “My Draft Apps” under My Apps tab.

Create an app in BigCommerce using Laravel

Your app installation will be shown as above, and then click on the install button.

 Create an app in BigCommerce using Laravel

BigCommerce is a very user-friendly platform for customers, but for developers, not all customizations can get done in the store admin. At this stage, the BigCommerce app will be useful to achieve all the customization needs. In our conclusion, we find Laravel to be very flexible for creating an app in BigCommerce.

Be the first to Know

Subscribe to our blog to get the latest articles directly to your inbox.

READY TO DRIVE SALES?

Ready to drive online revenue

Get In Touch

Leave a Reply

Be the First to Comment!