Check Here
Check Here

How to create your own product type ?

In Bagisto there are 7 types of products e.g – Simple, Configurable, Virtual, Downloadable, Grouped, Bundled, and Booking. In Bagisto we can also create our custom product type. To create follow the given steps below

Step 1

Create a file called product_types.php in Webkul\Custom\src\Config in which write the below code

Step 2

After creating the above file merge the file in the Service provider in Webkul/Custom/src/Providers/CustomServiceProvider.php by using $this->mergeConfigFrom(“path”,”namespace”) as illustrated below

Step 3

Now create a folder name Type in Webkul\Custom\src in which create a file Coupon.php which extends a class Webkul\Product\Type\AbstractType  as illustrated below

Step 4

Run a command php artisan optimize


So, that was much about the “How to create your own product type” for any queries or doubts reach out to us at [email protected] You can also raise a ticket at our HelpDesk System.

. . .


Add Your Comment

Be the first to comment.

Bagisto helped us in creating this full functional, professional and user friendly web app. Bagisto has lot to offer to the developer and the user. The framework is outstanding.

Yosseph Baruch Dolgopolsky

Yosseph Baruch Dolgopolsky
Talk to Sales


Live Chat
Start a Project

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home