Search the Community
Showing results for tags 'CC528'.
-
Warning: CubeCart 5.2.8 adds the ability to have Smarty statements in the HomePage Document. If your HomePage Document contains CSS or javascript statements, those statements may be using braces that do not have whitespace next to them. For example: h2.bold {font-weight:bold;} if (expression) {do_some_function;} Smarty will claim for itself and attempt to parse any content contained in braces that does not have whitespace between the brace and the contents. There are two fixes - choose one: Remove that ability Manually work through the HomePage Document (admin, Documents, any document marked as Homepage) making the changes to the code in Source mode (hopefully, the rich text editor will not try to compress the HTML so that the whitespaces are removed). In the file /classes/cubecart.class.php, near line 86, find: 'content' => $GLOBALS['smarty']->fetch('string:'.$home['doc_content']) Make it look like: 'content' => $home['doc_content'] When you have CubeCart open a document for editing, the Content tab has a rich text editor. The upper-left corner has a "Source" button. Click it. Viewing the raw HTML of the document, work your way through looking for braces -- intentional or not (that is, braces grouping CSS property statements or simply using {braces} in paragraphs). These braces must be fixed. h2.bold { font-weight:bold; } Simply using {literal}{braces}{/literal} in paragraphs. or Simply using { braces } in paragraphs.