REST vendor products Archives | WC Lovers https://wclovers.com WooCommerce Frontend Manager - Multivendor marketplace vendor dashboard Sat, 06 Jun 2020 00:16:35 +0000 en-US hourly 1 https://wordpress.org/?v=5.9.9 https://wclovers.com/wp-content/uploads/2018/03/wcfm_favicon.png REST vendor products Archives | WC Lovers https://wclovers.com 32 32 WCFM REST API – How to Create Product Associated with Store/Vendor https://wclovers.com/forums/topic/wcfm-rest-api-how-to-create-product-associated-with-store-vendor-2/ Sat, 06 Jun 2020 00:16:35 +0000 https://wclovers.com/forums/topic/wcfm-rest-api-how-to-create-product-associated-with-store-vendor-2/ I tried posting this in the REST API section but for whatever reason it tells me I need to log in when I’m already logged in. I’m trying to create a product for specific vendor through the REST API but when I do, the store is not linked. I try something like { "name": "API […]

The post WCFM REST API – How to Create Product Associated with Store/Vendor appeared first on WC Lovers.

]]>
I tried posting this in the REST API section but for whatever reason it tells me I need to log in when I’m already logged in.

I’m trying to create a product for specific vendor through the REST API but when I do, the store is not linked. I try something like

{
  "name": "API Product 5",
  "type": "simple",
  "regular_price": "21.99",
  "description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.",
  "short_description": "Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.",
  "store": {
        "id": 0,
        "name": "",
        "shop_name": "",
        "url": "https://v3.inourstores.com/store/",
        "address": ""
    }
}

But the association is not made. I also tried the URL trick like mymarketplace.com/wp-json/wcfmmp/v1/products/?id=0 with no success.

The post WCFM REST API – How to Create Product Associated with Store/Vendor appeared first on WC Lovers.

]]>
WCFM REST API – How to Create Product Associated with Store/Vendor https://wclovers.com/forums/topic/wcfm-rest-api-how-to-create-product-associated-with-store-vendor/ Tue, 02 Jun 2020 03:14:08 +0000 https://wclovers.com/forums/topic/wcfm-rest-api-how-to-create-product-associated-with-store-vendor/ Greetings – I love your product as a marketplace builder and developer. I setup JWT auth for the REST API and can create products. I can retrieve by vendor with the /?id=<vendorId> trick. When I POST to the same products/?id=<vendorId> endpoint, the product is created and the store Id appears to be set but none […]

The post WCFM REST API – How to Create Product Associated with Store/Vendor appeared first on WC Lovers.

]]>
Greetings –

I love your product as a marketplace builder and developer. I setup JWT auth for the REST API and can create products. I can retrieve by vendor with the /?id=<vendorId> trick. When I POST to the same products/?id=<vendorId> endpoint, the product is created and the store Id appears to be set but none of the other store information is populated. No store name or other information that is retrieved in the store object.

How do I create a product that is associated to a vendor?

The post WCFM REST API – How to Create Product Associated with Store/Vendor appeared first on WC Lovers.

]]>