[color=#282828][font=arial, verdana, tahoma, sans-serif]I'm using a separate CMS for a site and need to show the cart quantity outside of CS Cart. My set up currently has CS Cart installed in a sub directory (/shop).[/font][/color]
[color=#282828][font=arial, verdana, tahoma, sans-serif]I've tried setting the following in the config.local file however it doesn't seem to be working? Im using version 4+:[/font][/color]
[color=#000000][size=2]$config[/size][/color][color=#666600][size=2][[/size][/color][color=#008800][size=2]"tweaks"[/size][/color][color=#666600][size=2]][[/size][/color][color=#008800][size=2]"allow_php_in_templates"[/size][/color][color=#666600][size=2]][/size][/color][color=#000000][size=2] [/size][/color][color=#666600][size=2]=[/size][/color][color=#000000][size=2] [/size][/color][color=#000088][size=2]false[/size][/color][color=#666600][size=2];[/size][/color][color=#000000][size=2] [/size][/color]
In another thread someone said the following code (setting the cart amount as a cookie) would then allow the cart quantity to be accessible within the CMS files, is this correct?
[color=#000000]{php}
setcookie(“cart_amount”, $_SESSION['cart']['amount'], time()+3600247, “/”);
{/php}[/color]
Does anyone have a answers on how to achieve this?