Apply affiliate have no effect on bootstrap load

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 4 weeks ago #218296

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.4.43
-- Error-message(debug-mod must be tuned on) -- : No error message

please test on the url using below id

user:test1
password:test1

when we go to
index.php?option=com_hikashop&view=user&layout=cpanel&Itemid=545

click into
access the affiliate program

select yes and press apply button

the status is not changed


this problem can be solved by do not load bootstrap in configuration but we need responsive and some other bootstrap feature

any existing solution?

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

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
9 years 4 weeks ago #218322

Hi,

The problem comes from your Joomla template which has a modified version of the bootstrap CSS and it's not working properly.
Disabling bootstrap is indeed a solution, but as you saw, you loose the responsive capabilities of bootstrap. So instead, the best would be to contact your template provide so that they could fix the CSS of your template to properly handle bootstrap buttons.

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
9 years 4 weeks ago #218356

Any suggestion that we can make some tweak on this page since we only have problem on this page?

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

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
9 years 3 weeks ago #218456

Hi,

Could change the line:

if(HIKASHOP_J30 && (($app->isAdmin() && HIKASHOP_BACK_RESPONSIVE) || (!$app->isAdmin() && HIKASHOP_RESPONSIVE))) {
to:
if(HIKASHOP_J30 && (($app->isAdmin() && HIKASHOP_BACK_RESPONSIVE)) {
in the file administrator/components/com_hikashop/helpers/helper.php and that will deactivate the bootstrap for all the HikaShop radios on the frontend.

The following user(s) said Thank You: ler@singmuiheng.com

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

  • Posts: 567
  • Thank you received: 11
  • Hikashop Business
8 years 7 months ago #234393

nicolas wrote: Hi,

Could change the line:

if(HIKASHOP_J30 && (($app->isAdmin() && HIKASHOP_BACK_RESPONSIVE) || (!$app->isAdmin() && HIKASHOP_RESPONSIVE))) {
to:
if(HIKASHOP_J30 && (($app->isAdmin() && HIKASHOP_BACK_RESPONSIVE)) {
in the file administrator/components/com_hikashop/helpers/helper.php and that will deactivate the bootstrap for all the HikaShop radios on the frontend.


This is a very usefull way to deactive radio button, however, i find that the radio button can not compatible with 90% of templates in the market especially some of the framework(helix, xtc and jsn etc), is it possible to make it as an option in configuration in future?

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

  • Posts: 82823
  • Thank you received: 13370
  • MODERATOR
8 years 7 months ago #234408

Hi,

Ok, let's first replace this line of code with:

if(HIKASHOP_J30 && (($app->isAdmin() && HIKASHOP_BACK_RESPONSIVE) || (!$app->isAdmin() && HIKASHOP_RESPONSIVE && $configClass->get('bootstrap_radios','1')))) {
we'll do that on our end too.
Then, you can simply add an entry with the namekey bootstrap_radios and the value 0 in the table hikashop_config and that will deactivate the bootstrap radios even when the use bootstrap design setting is activated without needing to change the code each time you update.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum