Checkout alert div missing class

  • Posts: 1119
  • Thank you received: 114
6 years 2 months ago #288598

Hi,

I am not sure is this joomla related or hikashop but in the checkout when registering and wrong email entered alert class is missing so no alert styling for it.

As example using registration simplified:

<div class="alert  alert-  alert-block"><button type="button" class="close" data-dismiss="alert">×</button><p>This email address is already registered.</p></div>

As you can see second alert is missing "warning" after line.

Could you please fix it.

Thanks

Last edit: 6 years 2 months ago by kyratn.

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
6 years 2 months ago #288614

Hi,

The error messages are displayed by Joomla/your template.
Check again with the default template of Joomla. If you don't have the issue then, contact your template provider.
Otherwise, as this error message doesn't come from HikaShop, but directly from Joomla, you might need to change something in Joomla.

Last edit: 6 years 2 months ago by nicolas.

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

  • Posts: 1119
  • Thank you received: 114
6 years 1 month ago #288629

Hi,

I see same issue with default protostar template. In" show_block_login" file I see this:

$this->checkoutHelper->displayMessages('login');

and for login messages are showing fine, they displayed like this:
<div class="alert alert-warning alert-block"><button type="button" class="close" data-dismiss="alert">×</button><p>Username and password do not match or you do not have an account yet.</p></div>

but for registration or guest the "alert-warning" class is missing.

I have checked Joomla from where this message comes and all seems fine. I also have tried to register via joomla registration and error was showing fine. Except that different language string was in use.

Is there anything more could be checked?

Seems that type of error message is not defined.

Thanks

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

  • Posts: 26007
  • Thank you received: 4004
  • MODERATOR
6 years 1 month ago #288634

Hello,

There is no translation for "This email address is already registered." so we can't know if you had perform a translation override or if it's just not coming from HikaShop.

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: 1119
  • Thank you received: 114
6 years 1 month ago #288662

Hi,

Are you sure that there is no such translation? You have same translation and same issue with missing class "alert-warning" on hikashop site during checkout. Please check my screenshot attached.

However if you are not willing to check it then we can just close this topic.

Kind Regards

Attachments:

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

  • Posts: 81540
  • Thank you received: 13069
  • MODERATOR
6 years 1 month ago #288685

Hi,

We are sure that there is no such error message in HikaShop. You can check it yourself in the translation file of HikaShop or even in the whole code of HikaShop.
As I said, that error message comes from Joomla.

However, I had another look and we do have a similar message (albeit the wording is different). So maybe you didn't provide the exact text ?
Looking at its code, if it comes from it, try changing the line:

$ret['messages'][] = array(JText::_('EMAIL_ADDRESS_ALREADY_USED'), '');
to:
$ret['messages'][] = array(JText::_('EMAIL_ADDRESS_ALREADY_USED'), 'warning');
in the file administrator/components/com_hikashop/class.user.php
Let us know how it goes.

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

  • Posts: 1119
  • Thank you received: 114
6 years 1 month ago #288733

Hi,

Thanks for looking into it. Unfortunately it made no difference. Yes, this meesage comes from Joomla. I just thought maybe hikashop define the error class somewhere.

Anyway. Thanks again fro looking into it and have a great day.

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

Time to create page: 0.070 seconds
Powered by Kunena Forum