Skip to content

Commit b4f8429

Browse files
committed
Updated: vendor table content
1 parent 04426ac commit b4f8429

File tree

1 file changed

+163
-0
lines changed

1 file changed

+163
-0
lines changed

content/vaahstore/2.basics/3.vendor.md

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,169 @@ And a left-side you can access all other crud like store, vendor etc.
7777
| Is Active | | Activate or deactivate vendors using this field.|
7878

7979

80+
## Vendor Table
81+
82+
The Vendor Table contains all the vendors registered in VaahStore. Using this table, you can
83+
search for any vendor in the list using the search filter. The table also provides you with the option
84+
to view and update the details of the vendors,exclusively accessible to those with the necessary permissions and roles.
85+
86+
<img src="/images/vaahstore/Vendors/vendor-1.png">
87+
88+
::alert{type="warning"}
89+
NOTE
90+
Want to Know about Permissions And Roles: [Click Here](/vaahcms-2/the-basics/user-and-access/permissions)
91+
::
92+
93+
## Add product to vendor
94+
95+
96+
Once you have created a vendor, you can easily add products directly to the vendor. To do this, follow these steps:
97+
98+
### Step 1.
99+
Look for the table that displays all the vendors in your system. This table provides a comprehensive list of vendors and their details.
100+
### Step 2.
101+
In the table, locate the `Product` column. Here, you will find the total count of products associated with each vendor.
102+
103+
<img src="/images/vaahstore/Vendors/vendor-2.png">
104+
105+
### Step 3.
106+
To add a new product to a specific vendor, click on the `+` option under the `Product` column for that vendor.
107+
108+
<img src="/images/vaahstore/Vendors/vendor-3.png">
109+
110+
### Step 4.
111+
Clicking on the `+` option will open the `Add Product` page.
112+
113+
<img src="/images/vaahstore/Vendors/vendor-4.png">
114+
115+
### Step 5.
116+
117+
On the `Add Product` page, you will find a dropdown menu that allows you to select and add a product to the vendor.
118+
119+
<img src="/images/vaahstore/Vendors/vendor-5.png">
120+
121+
### Step 6.
122+
123+
After selecting the desired product from the dropdown menu, it will be added to the vendor.
124+
125+
### Step 7.
126+
All the added products will be displayed in a table below. You can make any necessary changes to the product details in the table.
127+
128+
<img src="/images/vaahstore/Vendors/vendor-6.png">
129+
130+
### Step 8.
131+
Once you have made the desired changes, click on the "Save" button to save the changes and associate the product with the vendor.
132+
133+
<img src="/images/vaahstore/Vendors/vendor-7.png">
134+
135+
## API
136+
137+
### create
138+
139+
#### URL
140+
```php
141+
POST <public-url>/public/api/store/vendors
142+
```
143+
144+
#### Request samples
145+
146+
```php
147+
parameter = [
148+
"name", // String
149+
"slug", // String
150+
"vh_st_store_id", // Id
151+
"approved_by", // Id
152+
"owned_by", // Id
153+
"taxonomy_id_vendor_status", // Id
154+
"status_notes", // String
155+
"is_default", // Boolean
156+
"auto_approve_products", // Boolean
157+
"is_active", // Boolean
158+
];
159+
```
160+
161+
#### Response sample
162+
163+
```php
164+
{
165+
"status": "success",
166+
"messages": [
167+
"Saved"
168+
],
169+
"data": {
170+
...........
171+
...........
172+
...........
173+
}
174+
}
175+
```
176+
177+
### Get List
178+
179+
#### URL
180+
```php
181+
GET <public-url>/public/api/store/vendors?rows={number_of_rows}
182+
```
183+
184+
#### Response sample
185+
186+
```php
187+
{
188+
"success": true,
189+
"data": {
190+
...........
191+
...........
192+
...........
193+
}
194+
}
195+
```
196+
197+
### Get Record
198+
199+
#### URL
200+
```php
201+
GET <public-url>/public/api/store/vendors/{record_id}
202+
```
203+
204+
#### Response sample
205+
206+
```php
207+
{
208+
"success": true,
209+
"data": {
210+
...........
211+
...........
212+
...........
213+
}
214+
}
215+
```
216+
217+
### Save Product
218+
219+
#### URL
220+
```php
221+
POST <public-url>/public/api/store/vendors/product
222+
```
223+
224+
#### Request samples
225+
226+
```php
227+
parameter = [
228+
..........
229+
'same as create'
230+
..........
231+
"products": {
232+
"can_update" // Boolean
233+
"id" // product id
234+
"product" // Id
235+
"status" // Id
236+
},
237+
];
238+
```
239+
240+
241+
242+
80243

81244

82245

0 commit comments

Comments
 (0)