how to prevent duplicate vendor name?

  • Posts: 52
  • Thank you received: 0
7 years 1 month ago #264975

-- HikaShop version -- : 3.0.1
-- HikaMarket version -- : 1.7.3
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6

hi
how to check vendors name when user change vendor name or create a vendor account. like user registration .
if hikamarket don't have this option, which file must change to have it. (with ajax) . must change some code in hikashop or not?

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
7 years 1 month ago #264979

Hello,

If you want to control and filter the vendor name ; you'll need a custom plugin with the usage of the triggers "onBeforeVendorCreate" / "onBeforeVendorUpdate" so you can refuse the creation (or modification) of the vendor if the vendor name is already used by another.
www.hikashop.com/support/documentation/1...onBeforeVendorCreate

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 52
  • Thank you received: 0
7 years 3 weeks ago #265924

i can use this functions in ajax mode? it means that when user type vendor name automatically check vendor name.

Please Log in or Create an account to join the conversation.

  • Posts: 26000
  • Thank you received: 4004
  • MODERATOR
7 years 3 weeks ago #265925

Hello,

There is no ajax in the HikaMarket registration ; so what you want to implement is a complete new feature with some javascript and a function which will allow to check if a vendor name is available or not.
For sure with some development it is possible, but it will require more work than just using the trigger (and the usage of that trigger will be required either way).

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.060 seconds
Powered by Kunena Forum