[Skip to main content](#vessel-content)

#   Vendor stock control by simple form

##

- **[dickf](/forum/user/33979-dickf "View dickf's Profile")**
- [![dickf's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/33979-dickf "View dickf's Profile") Topic Author
- [ Offline](/forum/user/33979-dickf)

Less More

- Posts: 1
- Thank you received: 0
-
-

12 years 1 month ago [\#171107](#171107) by [dickf](/forum/user/33979-dickf "View dickf's Profile")  *[Vendor stock control by simple form](/forum/23-market-how-to/871046-vendor-stock-control-by-simple-form#171107 "-- HikaShop version -- : 2.3.2 -- HikaMarket version -- : 1.4.3 -- Joomla version -- : 3.3.3  Hello, I'm setting up a multi vendor site and have a question about stock control by vendors. Because Vendors in the online shop also have a normal shop it's a challange to keep the stock data up to date. Now vendors should login, search for the product en decrease the stock with one sold item manual. Same thing if the recieve now stock in the store but then increase the stock levels online.  I also have a licence of RSformpro that have the possibility of some costum scripting. So the question isif it's possible to do it by a form after a vendor log in like: &#95;&#95;&#95;&#95; Productcode &#91;FIELD&#93; (vendor fills in or scans the code) Vendor id &#91;ID&#93; (get vendor id or name from Hikamarkt database after login) Stock level change with &#91;Amount, standard value by Rsform -1&#93;  Submit &#95;&#95;&#95;&#95; Then system checks if vender has such a product:  if not: returns &quot;no product find in online store&quot; if found: decrease level with amount requested in form and return text &quot;Stock changing succesful&quot;  Hope I can get any help on that. Thanks")* was created by *[dickf](/forum/user/33979-dickf "View dickf's Profile")*

-- HikaShop version -- : 2.3.2
-- HikaMarket version -- : 1.4.3
-- Joomla version -- : 3.3.3

Hello,
I'm setting up a multi vendor site and have a question about stock control by vendors. Because Vendors in the online shop also have a normal shop it's a challange to keep the stock data up to date. Now vendors should login, search for the product en decrease the stock with one sold item manual. Same thing if the recieve now stock in the store but then increase the stock levels online.

I also have a licence of RSformpro that have the possibility of some costum scripting. So the question isif it's possible to do it by a form after a vendor log in like:
____
Productcode [FIELD] (vendor fills in or scans the code)
Vendor id [ID] (get vendor id or name from Hikamarkt database after login)
Stock level change with [Amount, standard value by Rsform -1]

Submit
____
Then system checks if vender has such a product:

if not: returns "no product find in online store"
if found: decrease level with amount requested in form and return text "Stock changing succesful"

Hope I can get any help on that.
Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODcxMDQ2LXZlbmRvci1zdG9jay1jb250cm9sLWJ5LXNpbXBsZS1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 1 month ago [\#171108](#171108) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor stock control by simple form](/forum/23-market-how-to/871046-vendor-stock-control-by-simple-form#171108 "-- HikaShop version -- : 2.3.2 -- HikaMarket version -- : 1.4.3 -- Joomla version -- : 3.3.3  Hello, I'm setting up a multi vendor site and have a question about stock control by vendors. Because Vendors in the online shop also have a normal shop it's a challange to keep the stock data up to date. Now vendors should login, search for the product en decrease the stock with one sold item manual. Same thing if the recieve now stock in the store but then increase the stock levels online.  I also have a licence of RSformpro that have the possibility of some costum scripting. So the question isif it's possible to do it by a form after a vendor log in like: &#95;&#95;&#95;&#95; Productcode &#91;FIELD&#93; (vendor fills in or scans the code) Vendor id &#91;ID&#93; (get vendor id or name from Hikamarkt database after login) Stock level change with &#91;Amount, standard value by Rsform -1&#93;  Submit &#95;&#95;&#95;&#95; Then system checks if vender has such a product:  if not: returns &quot;no product find in online store&quot; if found: decrease level with amount requested in form and return text &quot;Stock changing succesful&quot;  Hope I can get any help on that. Thanks")*

Hi,

I'm not an expert of RSForm but HikaMarket have some tools which could help you.

To check if the current user is logged as a vendor (function returns "true" or "false") Code:

hikamarket::loginVendor()

To get the current vendor id Code:

hikamarket::loadVendor(false);

To check if the current user have the right to edit products (function returns "true" or "false") Code:

hikamarket::acl('product_edit')

To check if a product is associated with a current logged vendor (function returns "true" or "false") Code:

hikamarket::isVendorProduct($product_id)

Hope it will help you.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODcxMDQ2LXZlbmRvci1zdG9jay1jb250cm9sLWJ5LXNpbXBsZS1mb3JtP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.139 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
