Basics of Product in VaahStore
What is Product?
How to create a Product?
After activating VaahStore
, to create a vendor go into VaahCMS > Store > Products
then click on create button. A form to create product will open.
Requirement to create a Product
Fields | Descriptions | |
---|---|---|
Name | This will contain name of the product. | |
Store | This is to choose Store for the product. | |
Brand | Select the brand of the product | |
Type | Select the type of your product | |
Quantity | Total number of product available | |
In Stock | Indicate that the product is in stock or not | |
Status | This is to set the status of the product. | |
Status Notes | Notes are to describe your decision for any status. | |
Is Active | This is to Activate or Deactivate your product. |
Add vendor to product
After creating a product, to add vendors directly to product look into the table where all the listing of vendor is coming.
Over there under the Product
column you will find the total count of the product to their respective vendors along with an option +
to add new product, click on that.

After that a Add Product
page will open.
Inside the Add Product
page there is a dropdown to select and add product.

All the added product will be shown in the below table, and some basic changes to the product can be done in the table and then click on above save button, to save the changes.
API
create
URL
POST <public-url>/public/api/store/vendors
Request samples
parameter = [
"name", // String
"slug", // String
"vh_st_store_id", // JSON
"approved_by", // JSON
"owned_by", // JSON
"taxonomy_id_vendor_status", // JSON
"status_notes", // String
"is_default", // Boolean
"auto_approve_products", // Boolean
"is_active", // Boolean
];
Response sample
{
"status": "success",
"messages": [
"Saved"
],
"data": {
...........
...........
...........
}
}
Get List
URL
GET <public-url>/public/api/store/vendors?rows={number_of_rows}
Response sample
{
"success": true,
"data": {
...........
...........
...........
}
}
Get Record
URL
GET <public-url>/public/api/store/vendors/{record_id}
Response sample
{
"success": true,
"data": {
...........
...........
...........
}
}
Save Product
URL
POST <public-url>/public/api/store/vendors/product
Request samples
parameter = [
..........
'same as create'
..........
"products": {
"can_update" // Boolean
"id" // product id
"product" // JSON
"status" // JSON
},
];