After the successful installation of ImprintNext on your custom platform, you can access the admin and tool with dummy data that provided with the package for testing.


But you need to develop/change a few codes inside the installation directory of ImprintNext to integrate your custom store with ImprintNext. So that the store data like products can be fetched from your custom store.


The ImprintNext API is built in PHP with the Slim framework. Mainly the used store modules are stores, products, customers, carts, and orders. Please follow our API documentation to know more in detail.


Let's start the integration with the product module as an example,

 We need to fetch the product list from the custom store.


1. Get the endpoint from the API documentation. 



You need to run the endpoint using postman like https://abc.com/designer/api/v1/products?name=tshirt&category=34&orderby=name&order=asc&page=1&per_page=40&is_admin=1&store_id=1, where the 'abc.com' is your domain and 'designer' is the ImprintNext installation directory.


2. Go to the custom store product module code. The path should be like document root/designer/api/v1/app/Modules/Products/Stores/Others/v2x/Controllers/StoreProductsController.php


3. Open the file and search the function name 'getProducts'.




4. Find the code line where the product list data are fetched from dummy JSON. Replace with your custom store code to fetch the product list from your store.


5. The code should return the data as per the API documentation responses. Then only the ImprintNext will process the data for further use.