Redirect Registration form to Hikashop form

  • Posts: 63
  • Thank you received: 6
3 months 2 weeks ago #362553

-- HikaShop version -- : 5.1.0
-- Joomla version -- : 4.4.6
-- PHP version -- : 8.3.8

Hi,

We are installing JT Login for Registration and Login on our development server. The Login works perfect however, the Registration does not go to Hikashop but use Joomla default. There are a lot of settings possible but whatever I try it will not work. I have read topics here which is similar but they do not give me a hint or solution. I've read to go to Display > View > registration. I've searched for registration there are 3 results, I opened registration. There I find:
<!-- REGISTER BUTTON -->
<?php
if(empty($this->form_name)) {
$this->form_name = 'hikashop_checkout_form';
}
$registerButtonName = JText::_('HIKA_REGISTER');
if($this->simplified_registration == 2) {
$registerButtonName = JText::_('HIKA_NEXT');
}
?>
<label class='hkc-sm-4 hkcontrol-label'></label>
<button type="submit" onclick="var field=document.getElementById(
'hikashop_product_quantity_field_1'
);
hikashopSubmitForm('<?php echo $this->form_name; ?>', 'register');
return false;"
class="<?php echo $this->config->get('css_button','hikabtn'); ?> hikabtn_checkout_login_register"
id="hikashop_register_form_button"><?php
echo $registerButtonName;
?></button>
<!-- EO REGISTER BUTTON -->
<input type="hidden" name="data[register][id]" value="<?php echo (int)$this->mainUser->get( 'id' );?>" />
<input type="hidden" name="data[register][gid]" value="<?php echo (int)$this->mainUser->get( 'gid' );?>" />
</div>


In JT Login I can choose only:



My question is how can use use Hikashop form when clicking the Registration button? Which file/code should I use?

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 months 2 weeks ago #362566

Hi,

I don't think you need to edit a view for this.
I think that what you want to do is to activate and configure the "Redirect Joomla registration to HikaShop Plugin" via the Joomla plugins manager. This will automatically redirect from the Joomla registration form to the HikaShop registration form so that should work fine with this module.

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

  • Posts: 63
  • Thank you received: 6
3 months 1 week ago #362581

Hi Nicolas,

First of all, I like to thank you again for you very fast and detailed answer. Much to my regret, we were well aware of this option and we tried the ON as well as the OFF in every possible configuration.
For us it looks like two different worlds were 1 “Hikashop” is pinpointing to the coding, the other 1 (JT Login) is giving a redirect option where you see Hikashop “Registration form” to select.
Both are not working and we cannot glue that together. We searched the internet, all fora, websites but no clue at all.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
3 months 1 week ago #362590

Hi,

So, from what I can see it seems that "JT Login for Registration and Login" adds a "login" and a "register" buttons on your website, and when you click on them, it opens the login form or the registration form in a popup.
And from what I can see, it seems that for the login popup, they include the HTML of the Joomla login module in the popup. But for the registration popup, it's actually not Joomla's registration form, but "JT Login for Registration and Login"'s own registration form, which go through Joomla's registration process once you validate the form.
So, in this case, it's normal that HikaShop's registration doesn't display in the registration popup. It would require modifying "JT Login for Registration and Login" to support this.

One alternative I can propose would be using Modals:
extensions.joomla.org/extension/style-a-...ps-a-iframes/modals/
With it, you can easily add the modals tag to a custom HTML module ( docs.joomla.org/Help25:Extensions_Module_Manager_Custom_HTML ) to display a register button similar to what you already have, and use the URL of the HikaShop registration page with the extra paramater ?tmpl=component
This will allow you to have HikaShop's registration form in a popup quite easily.

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

  • Posts: 63
  • Thank you received: 6
3 months 1 week ago #362655

Hi Nicolas,

Be aware that the plugin Modals since the update to J5, the free version suddenly is stripped for a lot of functions what is now only available in the paid version.

Thank you for all your explanation and tips.

The following user(s) said Thank You: nicolas, Philip

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

Time to create page: 0.045 seconds
Powered by Kunena Forum