View Single Post
Old 02-06-2020, 10:40 AM
  The Knotty Celt's Avatar 
The Knotty Celt The Knotty Celt is offline

Join Date: Jan 2020
Posts: 23

Default Re: onclick propery of button being scrubbed out.

I resolved the issue by inserting the HTML elements into the database directly rather than using the HTML editor in the BO.
UPDATE `xc_page_translations` SET `body` = '[html]' WHERE `id` = [id of page] AND `code` = [language code];
It is important to note that I also had to remove all carriage returns and new lines (\r and \n) from the HTML before pasting it into my UPDATE query.
X-Cart version
PHP version 7.3.27
Reply With Quote