Where are error messages encoded?

  • Posts: 31
  • Thank you received: 0
7 years 1 month ago #281120

-- HikaShop version -- : 3.2
-- Joomla version -- : 3.8.1

When I enter a false address in checkout I get an error.

But the error message is without color. Due to an error in the coding. In Bootstrap 3 the don't user class "alert-error" anymore. There is uses class "alert-danger".

Where is the code in HikaShop placed, so I can correct it.

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 1 month ago #281136

Hi,

If you have error messages with "alert-error", it indicates that you've activated the "use bootstrap design" setting of the HikaShop configuration so that HikaShop output HTML with bootstrap 2 classes, which are what the default Joomla template supports.
If you turn off that setting, HikaShop will use its own classes with its own CSS to display the messages and thus it will display correctly regardless of what your template is using.

If you want to keep the "use bootstrap design" setting activated but want to modify the class used, then you'll have to edit the function hikashop_display in the file administrator/components/com_hikashop/helpers/helper.php
However, I don't recommend that since you'll loose the change each time you update your HikaShop.

The following user(s) said Thank You: Jim

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

  • Posts: 31
  • Thank you received: 0
7 years 1 month ago #281179

Hi Nicolas,

thanks for the clarification.

But I need to ask. You said

"use bootstrap design" setting of the HikaShop configuration so that HikaShop output HTML with bootstrap 2 classes, which are what the default Joomla template supports.

.

Joomla 3.8.1 is already on Bootstrap 3 and in Bootstrap 3 there is no more alert-error there it's named alert-danger. So why are still Bootstrap 2 classes used?

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
7 years 1 month ago #281181

Hi,

As I said, by default that setting is turned off and HikaShop uses it's own classes. That setting is only for people still using a template with boostrap 2 so that they can keep the interface looking like before. That's why that setting is in the "legacy" section of the configuration.
If you read the documentation for that option we say in bold:

Since HikaShop 3.0.0, this option is not useful anymore as views are automatically responsive regardless of Bootstrap. However, if you're updating HikaShop from an older version, this option might still be useful for old view overrides you might have.

www.hikashop.com/support/documentation/5...html#advanced_legacy

The following user(s) said Thank You: Jim

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

Time to create page: 0.057 seconds
Powered by Kunena Forum