Using Easy Social to log into Hika Shop Cart System?

  • Posts: 139
  • Thank you received: 10
6 years 7 months ago #291793

-- HikaShop version -- : 3.4.0
-- Joomla version -- : 3.8.7
-- Browser(s) name and version -- : Firefox
-- Error-message(debug-mod must be tuned on) -- : N/A

Hi Hika Shop

I had a developer modify the following files:

i) components\com_hikashop\views\product\tmpl\add_to_cart_ajax.php
ii) components\com_hikashop\views\product\tmpl\quantity.php

So that when not logged a user would be forced to login via Easy Social and NOT the regular Joomla login.

This worked.
There are two problems that I see with this.

a) I have to update there files manually every time there is a Hika Shop update.
b) The potential buyer is taken away from the “Cart” to the ES login.

I am wondering 2 things.

1) Would it be in theory possible for my developer to set this up as a plugin. My technical understanding of a plugin is some what hazy. But essentially some thing that would work and be a satellite to HS and be in the rule HS update proof! i.e. Normally I would not have to update those files manually?

2) Would it be in theory possible for my developer to set this up as a plugin. Where the ES Login module is displayed in the first tab of the cart. i.e. you are not taken off to the login page but log into Easy Social in the HS Cart and after login/registration are taken to the next tab of the cart?

I hope this makes sense?

thanks

Paul

Last edit: 6 years 7 months ago by paurray.

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

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
6 years 7 months ago #291817

Hi,

1. You could do a plugin, but even simpler, you could have them as view overrides.
Simply copy these files in the folder templates/YOUR_TEMPLATE/html/com_hikashop/product/ and they will be used instead of the default ones and they won't be overwritten during updates.
That's the basics of view overrides in Joomla:
docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core

2. It's not impossible but much more complex. That's because the whole checkout is inside a form of HikaShop. And the easysocial module login has its own form. If you try to put a form into a form, the form inside won't work and it's even not valid HTML.
So it would require hacking in the checkout system of HikaShop to remove the form of the checkout on that step to have only the module form and then have it redirect back to the checkout once logged in. It's possible but will require a skilled developer knowing how Joomla works at least a bit. I'm afraid that if you're developer doesn't even know about view overrides, it will be difficult for him to do that.

The following user(s) said Thank You: paurray

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

  • Posts: 139
  • Thank you received: 10
6 years 7 months ago #291842

Hi Nicolas

Thank you for your detailed and thorough reply.

Very enlightening.

All the best

Paul

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

Time to create page: 0.056 seconds
Powered by Kunena Forum