| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
if statment to put code in head on cart page | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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:
But I can't use 'checkout' mode to single the page out... can anyone answer or point me to some documentation? Thanks!!
__________________
Shaz X-Cart Developer Sydney - Australia |
|||||||
#2
|
|||||||||
|
|||||||||
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)
__________________
Paul Dodman e-business & m-commerce consultant w: www.luminointernet.com e: xcart@luminointernet.com Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart. |
|||||||||
#3
|
|||||||||
|
|||||||||
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
__________________
Steve Stoyanov CFLSystems.com Web Development |
|||||||||
#4
|
|||||||||
|
|||||||||
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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#5
|
|||||||
|
|||||||
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!
__________________
Shaz X-Cart Developer Sydney - Australia |
|||||||
|
|||
X-Cart forums © 2001-2020
|