Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/shahjalal132/coasteramer-woocommerce-plugin/archive/refs/heads/main.zipUpdates itself. It ships its own updater (Update URI header), so new versions appear under Dashboard → Updates.
Coaster amer woocommerce plugin.
This is a custom plugin as client requirement. when plugin activate then 4 table will create named wpsyncprice, wpsynccategory, wpsyncinventory, wpsyncproducts.
Call api and stored data to database
I created 6 shortcode for fetch data from api and insert them to database. to use and test these create one or multiple page on wordpress dashboard then paste and run one by one. if successfully insert it will return a successful message
Test shortcode
1. call category api and insert categories to database
create a page and paste this shortcode and run. if successfully insert it will return a successful message.
2. call products api and insert products to database
create a page and paste this shortcode and run. if successfully insert it will return a successful message.
3. call inventory api and insert inventory to database
create a page and paste this shortcode and run. if successfully insert it will return a successful message.
4. call price api and insert products to database
create a page and paste this shortcode and run. if successfully insert it will return a successful message.
5. this shortcode for cu