Display default vendor page after user connection

  • Posts: 27
  • Thank you received: 0
8 years 1 month ago #234350

-- HikaShop version -- : 2.6.1
-- HikaMarket version -- : 1.6.7
-- Joomla version -- : 3.4.8

Hi,

I've already written a plugin which attribute a default vendor to a user.
I configured the rights and group so the user can only see the products of this vendor.
The vendor ID is stored in a user personnalized field and the user has only the right to see the product of this vendor.

Now, I want to display the vendor description page.
I know that I can display the vendor description with thisURL " test.debienne.fr/index.php/page-vendeur/vendor/show/vendoralias ".
But I want to display, after user login, the description of the default vendor for this user.
How can I do that?

I also see the "Hika market" module, which let us display the list of vendor.
I would like that my client can see only specific vendors in this list, as currently my client can only see the product of this specific vendor.

Regards,

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
8 years 1 month ago #234373

Hi,

It really depends of what you want to do with your customer and where you want to display that information.
Do you want to redirect the user once the log-in ? Or on a specific page ?

Without that kind of information I'm afraid that I won't be able to provide you any tip to help you.
We first need to know what you're doing and what kind of action you want to do. The "display of the vendor description" is just a tiny rock in the mountain.

The usage of a custom module to display the default vendor description is one solution ; but it would be easier to have your own module that using the hikamarket one (which allow to display an HikaMarket view in the module).

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: 27
  • Thank you received: 0
8 years 1 month ago #234529

Hi,

I will try to be more clear ...
I want that the user, just after login, is redirect to a page written by its default vendor (and not by another vendor).
This page could be an article or the description of the vendor, no matter.
By this way, the vendor can introduce itself, and why not propose some promotions.

Regards

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
8 years 1 month ago #234638

Hi,

In that case I would recommend you to use a custom "user" plugin.
docs.joomla.org/Plugin/Events/User/en#onUserAfterLogin
You can use the JApplication redirection (or use the one to redirect after the processing of the page) in order to send the customer to the vendor page.
For sure, that kind of plugin should only do his job in the front-end and for customer accounts.
After that you can improve the system to check if the login already have a "after redirect" value (if the user was in the login page due to a restricted access page).

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: 27
  • Thank you received: 0
8 years 1 month ago #234783

Hi,

Thanks for your answer.
I will write the plugin.
There was a second question in my topic:
I was able to restrict access to categories et products own by the default vendor.
But the user can see the list of all vendor.
How could I restrict access for a user to see only the default vendor?

Regards

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

  • Posts: 26017
  • Thank you received: 4004
  • MODERATOR
8 years 1 month ago #234793

Hi,

Sorry, I missed that point.
Another solution is to completely remove the access on the vendor menus but use a Joomla page with a module.
With a module, you can see to call an HikaShop/HikaMarket view ("mod_hikashop" and "mod_hikamarket" are working like that) so you can display a specific vendor page into that module.

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.061 seconds
Powered by Kunena Forum