Joomla -> HikaShop user synchronization

  • Posts: 2143
  • Thank you received: 747
9 years 2 months ago #215142

-- url of the page with the problem -- : local
-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.5.3

Hi,

I'm having the "HikaShop user synchronisation plugin" disabled for the purpose of keeping admins and other special Joomla users out of the HikaShop user/customer database tables and listings.
I understand from here and elsewhere, that this plugin is responsible for sync'ing users, meaning adding Joomla users to the HikaShop user tables if they weren't yet, "when they go through the checkout or through the registration page of HikaShop", as per linked post.

Just FYI, admins and other special users register only per default Joomla registration (not HikaShop), while customers register only in checkout per simplified registration with address.

However, first I figured that, with the plugin enabled and with an admin deleted from the shop customers in the backend, the sync is triggered not only when going "through" checkout (meaning to me = finishing an order) or so, but also when adding an item to the cart, e.g. accidentally. At least I thought - but in fact, next I noticed that the sync already happens as soon as an admin logs into the frontend.

So, I disabled the plugin. But even then, still an admin, who was formerly deleted from the shop users, is getting added to shop customers again if he only logs into the frontend.

Am I overlooking something? How can I stop special "Joomla only" users automatically becoming customers in HikaShop?

Thanks!


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Last edit: 9 years 2 months ago by lousyfool.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 2 months ago #215145

Hi,

You are logged in Joomla and you're displaying an HikaShop page or an HikaShop module ; at the moment when the function "getID" of the HikaShop user class is called, an HikaShop customer entry will be created for your Joomla account.

HikaShop is a Joomla component ; which means that it integrates with Joomla. It uses the Joomla user system for his customers and store the extra information in his own table.

You don't want that creation ?
You can user a custom plugin with the trigger "onBeforeUserCreate" and control what customer can be created and what could not.

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.
The following user(s) said Thank You: lousyfool

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

  • Posts: 2143
  • Thank you received: 747
9 years 2 months ago #215191

Thanks Jerome,

So, I guess I've misunderstood what the plugin does, falsely assuming that it's solely responsible for any addition of "Joomla only" users to the HikaShop user tables, and we're rather talking a sort of core function here.

I'll see if I get a plugin to do what I need. This one is perhaps simple enough for my limited skills... ;)


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

Time to create page: 0.059 seconds
Powered by Kunena Forum