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

Member
  
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.
Code:
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 5.4.1.29
PHP version 7.3.27
Reply With Quote