Saturday, June 29, 2024
HomeWordPress Developmentwoocommerce offtopic - What's one of the simplest ways and site so...

woocommerce offtopic – What’s one of the simplest ways and site so as to add php script API


I’ve WordPress with WooCommerce plugin web site, I wish to add prodcuts that reterived from API information is available in JSon like this: and the web page that I wish to add the procuts in in the principle menu.

So I wish to how add the prodcuts to the web page by the code which is available in json to the woocommerce plugin in a selected web page.

Thanks.

form of information

{
      "sort": "Garment",
      "title": "Sweatshirts",
      "merchandise": [
        {
          "name": "Gildan Sweatshirt - Crew",
          "style": "18000",
          "image": {
            "url": "http://www.ooshirts.com/products/5/catalog.jpg",
            "label": "Catalog"
          },
          "id": "gildan-sweatshirt-crew",
          "url": "https://api.scalablepress.com/v2/products/gildan-sweatshirt-crew"
        },
        {
          "name": "Gildan Heavy Sweatshirt",
          "style": "12000",
          "image": {
            "url": "http://www.ooshirts.com/products/6/catalog.jpg",
            "label": "Catalog"
          },
          "id": "gildan-heavy-sweatshirt",
          "url": "https://api.scalablepress.com/v2/products/gildan-heavy-sweatshirt"
        }
      ],
      "household": "Unisex",
      "url": "https://api.scalablepress.com/v2/classes/sweatshirts",
      "categoryId": "sweatshirts"
    }

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments