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

FieldsDescriptions
NameThis will contain name of the product.
StoreThis is to choose Store for the product.
BrandSelect the brand of the product
TypeSelect the type of your product
QuantityTotal number of product available
In StockIndicate that the product is in stock or not
StatusThis is to set the status of the product.
Status NotesNotes are to describe your decision for any status.
Is ActiveThis 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.

product linking from vendor

After that a Add Product page will open.

Inside the Add Product page there is a dropdown to select and add product.

product linking from vendor

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
    },
];