Shofy Ecommerce laravel codecanyon project customization for a USA client

Shofy Ecommerce is multi vendor platforms. Shop owners or small business can join the portal and sell their product on the platform. This project build on laravel framework version 10. It is code canyon project and the ecommerce platform has theme system. So you can buy or develop your own theme and apply on it. Bootstrap jquery and other javascript library used for different purpose like slider, popup, notification bubles.

My client requirement was to generate 3166 category from another ecommerce website category page https://www.etsy.com/help/categories/seller .

feature

Technology

Most popular php framework laravel used to develop this projec. Mysql used as database management and bootstrap used as frontend framework. There are many javascript library used some of them are jquey, datatable

Laravel php framework (version 10).
Mysql Database
bootstrap, jQuery, datatable

Requirement and Challenges

Client requirement was import category from a another ecommerce website page where listed all category in a html page.

Its a huge category listing in that category page. Total 3166 categories listed and 3 level of sub category and Shofy ecommerce only support 2 level of sub category
If I want to add all this categories from backend to copy and paste then it will take 2 or 3 days.
Good news shofy ecommerce backend support any level of sub categories
But Bad news is front end theme that come with default only support 2 levels of sub category. So I need to update view file that generate category as well

My Solution

First of all when I heard the requirement I have plan to download the page and parse the html file and insert the categories.

First I check the code base of the project and try to understand the structure and make a plan to implement the solution.
Download the page with file_get_contents function and save as html file in the storage folder.
Add html parser package for laravel 10 and create an controller and add relevent route.
Find relevant files and query which is related to insert category in the database and sub category 3 level. I have created 3 functions in the controller. First function download the external ecommerce page and store in the storage. second function parse the html file and insert categories into the database as same alphabetical order. third function is for create slug of the categories which is different table that category.

Demo Details

If you want to know more about the project you can contact with me.

  • Codecanyon project url: Shofy Ecommerce
  • I dont encurrage or suggest or promote this project.

  • Its Just a recent experience of codecanyon laravel project that I work for one of my client.