- Posts: 24
- Thank you received: 4
Checkout shows Hikashop error on login page
- beemerrider
-
Topic Author
- Offline
Less
More
8 years 1 month ago #297386
by beemerrider
Checkout shows Hikashop error on login page was created by beemerrider
-- 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.
-- 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.
Please Log in or Create an account to join the conversation.
8 years 1 month ago #297398
by nicolas
Replied by nicolas on topic Checkout shows Hikashop error on login page
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
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.190 seconds