if statment to put code in head on cart page
Hi All,
Bit stuck... I bet it's bleedingly obvious tho!! What is the correct context to use to add code to the header of the cart.php page ONLY. Something like below... I have had a few guesses but no luck so far! Code:
{if $main eq "order_message"} But I can't use 'checkout' mode to single the page out... can anyone answer or point me to some documentation? Thanks!! |
Re: if statment to put code in head on cart page
What version of X-Cart are you using?
(best if you add it to your signature so people can help you better) |
Re: if statment to put code in head on cart page
{if $main eq "cart"} - cart page
{if $main eq "checkout'} - checkout pages - but depending on the checkout used this may be different - FLC, OPC, AC OPC... 'order_message' is the mode for order confirmation page You can also use {if $smarty.get.mode eq 'order_message'} which will be the order confirmation page |
Re: if statment to put code in head on cart page
Slightly off topic, I've started assigning $main to a css class on the container. Helps a lot when you want specific CSS styles on certain page types.
|
Re: if statment to put code in head on cart page
Sorry my bad! This particular site is 4.6.5.
Quote:
Thanks cflsystems. It worked this time!! Not sure why it didn't work last time... all good :) Quote:
Nice one totaltec, will keep that in mind for future mods! |
All times are GMT -8. The time now is 11:44 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.