Checkout shows Hikashop error on login page

  • Posts: 24
  • Thank you received: 4
6 years 7 months ago #297386

-- url of the page with the problem -- : buttonshanks.com/products/6mm-shanks/checkout/task-show/cid-2
-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.12
-- PHP version -- : 7.0.31
-- Browser(s) name and version -- : Chrome 65
-- Error-message(debug-mod must be tuned on) -- : Hikashop error:

function hikashopToggleFields(new_value, namekey, field_type, id, prefix) { if(!window.hikashop) return false; return window.hikashop.toggleField(new_value, namekey, field_type, id, prefix); } window.hikashop.ready(function() { if(!document.formvalidator) return; var container = document.getElementById('hikashop_checkout_login_2_0'); if(container) document.formvalidator.attachToForm(container); });

No error in the Joomla Debug console

Appears that the guest checkout works and the user can purchase products. But this error comes up and scares users off and off course the error should not be there.

Attachments:

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

  • Posts: 83605
  • Thank you received: 13538
  • MODERATOR
6 years 7 months ago #297398

Hi,

The issue, is that you have edited one of the view files of the login view of the checkout system, but you have a security system on your website/web server which detected the javascript of the view file as potentially harmful and added some dashes in the script tag of the javascript code in order to deactivate it.
These dashes shouldn't be here: monosnap.com/file/mnE0ZCp9AmE1Yt5rEg1RkOfirqm8mm
So you need to remove your view override and if you need to redo it, you'll have to either deactivate that security system temporarily, or do the override manually by copying the view file from the core of HikaShop to the template's override folder at the correct place:
docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core

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

Time to create page: 0.058 seconds
Powered by Kunena Forum