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

#   Vendor - Not saving user

##

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

Less More

- Posts: 112
- Thank you received: 1
-
-

10 years 3 months ago [\#247581](#247581) by [darrelluk](/forum/user/38717-darrelluk "View darrelluk's Profile")  *[Vendor - Not saving user](/forum/23-market-how-to/885997-vendor-not-saving-user#247581 "-- HikaShop version -- : 2.6.3 Business -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.6.2  Hi,  When we add a user to a vendor account it is being removed when we save the Vendor record.  Which table does the record get written to? What checks does it make?  How can I figure why the user isn't being saved on the Vendor account?  before.PNG = user before pressing SAVE. after.PNG = user after pressing SAVE.  Thx, Darrell")* was created by *[darrelluk](/forum/user/38717-darrelluk "View darrelluk's Profile")*

-- HikaShop version -- : 2.6.3 Business
-- HikaMarket version -- : 1.7.1
-- Joomla version -- : 3.6.2

Hi,

When we add a user to a vendor account it is being removed when we save the Vendor record.

Which table does the record get written to? What checks does it make?

How can I figure why the user isn't being saved on the Vendor account?

before.PNG = user before pressing SAVE.
after.PNG = user after pressing SAVE.

Thx, Darrell

- [ ![before.png](/forum/attachment/33012) ](/forum/attachment/33012 "before.png") [ ](/forum/attachment/33012?download=1 "before.png")
- [ ![after.png](/forum/attachment/33013) ](/forum/attachment/33013 "after.png") [ ](/forum/attachment/33013?download=1 "after.png")

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

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

Less More

- Posts: 112
- Thank you received: 1
-
-

10 years 3 months ago [\#247591](#247591) by [darrelluk](/forum/user/38717-darrelluk "View darrelluk's Profile")  Replied by *[darrelluk](/forum/user/38717-darrelluk "View darrelluk's Profile")* on topic *[Vendor - Not saving user](/forum/23-market-how-to/885997-vendor-not-saving-user#247591 "-- HikaShop version -- : 2.6.3 Business -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.6.2  Hi,  When we add a user to a vendor account it is being removed when we save the Vendor record.  Which table does the record get written to? What checks does it make?  How can I figure why the user isn't being saved on the Vendor account?  before.PNG = user before pressing SAVE. after.PNG = user after pressing SAVE.  Thx, Darrell")*

Hi all,

After a bit of an investigation, I have found that the Vendor ID is stored in field user_vendor_id in the hikashop_user table.

The problem is that for some old test vendors that were deleted the vendor_id was still stored against the hikashop_user. Trying to assign that user back to a new vendor always fails (it doesn't save). Setting the user_vendor_id to 0 for that user then allows that user to be saved against a vendor and saving now works.

Why was the user_vendor_id left again the hikashop_user?

Thx, Darrell

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg1OTk3LXZlbmRvci1ub3Qtc2F2aW5nLXVzZXI/dG1wbD1tYXJrZG93bg==) 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: 26401
- Thank you received: 4081
-
- [](http://obsi.dev)
-

10 years 3 months ago [\#247603](#247603) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Vendor - Not saving user](/forum/23-market-how-to/885997-vendor-not-saving-user#247603 "-- HikaShop version -- : 2.6.3 Business -- HikaMarket version -- : 1.7.1 -- Joomla version -- : 3.6.2  Hi,  When we add a user to a vendor account it is being removed when we save the Vendor record.  Which table does the record get written to? What checks does it make?  How can I figure why the user isn't being saved on the Vendor account?  before.PNG = user before pressing SAVE. after.PNG = user after pressing SAVE.  Thx, Darrell")*

Hi,

I checked the HikaMarket code and when you do delete a vendor through the HikaMarket backend interface, the vendor assignation on the user table is clean-up
You can check it yourself, you will see the query in the function "delete" of the HikaMarket vendor class.
So if you do not have the vendors anymore but you still have some values in the user table ; I have to suppose that you deleted the vendor directly in the database.

When you add a user to a vendor, you need to use the green button "add users" that we can see in your first screenshot.
The "save". It will add the line in the interface and the "save" will confirm the addition.
Before you do not provide the screenshot with the user in the "table" we could thought that you miss to click on that button before the save.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzIzLW1hcmtldC1ob3ctdG8vODg1OTk3LXZlbmRvci1ub3Qtc2F2aW5nLXVzZXI/dG1wbD1tYXJrZG93bg==) 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.065 seconds

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