Custom Store Interface

Are you a developer and want to create your own custom store interface?

We have created a small rest api to get categories/items, using this rest api you can

1- get all categories
2- get items for a category
3- get categories and first five items for each category
4- get detail for an item
5- get the cart content
5- add items to cart
Then you can use our checkout page for checkout process (btw will add this feature to our rest api very soon).
To use the rest api use this url :  https://yourdomain.com/wp-json/moo-clover/v1/
1- get all categories : https://yourdomain.com/wp-json/moo-clover/v1/categories
2- items for a category : https://yourdomain.com/wp-json/moo-clover/v1/categories/7PQM149AFWHDA/items (change the  7PQM149AFWHDA with category uuid)
3- To get categories with some items : https://yourdomain.com/wp-json/moo-clover/v1/categories?expand=five_items
4-  to get detail for an item with modifier groups and modifiers use this endpoint :
https://yourdomain.com/wp-json/moo-clover/v1/items/8WA4F5NM1517T (don’t forget to change item id)
5- To get your cart content send a simple GET request to  https://yourdomain.com/wp-json/moo-clover/v1/cart
the response will contain the items and information abour order total
6- to add items to cart send a POST request with form data that contain :
  1. item_uuid,
    item_qty,
    tem_modifiers[0][uuid],
    item_modifiers[0][qty]
  2. to add more modifiers add other one and change 0 by 1 or 2 …
To this endpoint:  https://yourdomain.com/wp-json/moo-clover/v1/cart
you can test the request 1-5 in your navigator to see the response and the fields
you can use our rest api directly from your page using javascript or from your php code using Curl or Guzzle to send requests
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.