| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
{if} statement to identify browser/platform? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
{if} statement to identify browser/platform?
Having a cross-browser issue with one of my clients, and need to throw in a padding value for Safari only. Anyone know what the {if} statement would be for this? Only reference I can find is this from button.tpl:
{if $style eq 'button' && ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#2
|
|||||||||
|
|||||||||
You can try
{if $config.Adaptives.browser eq 'Safari'} |
|||||||||
#3
|
|||||||
|
|||||||
I did...but then it shows on Firefox as well
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#4
|
|||||||||
|
|||||||||
Quote:
Now, that should not happen because the value in that variable if you are using Firefox IS 'Firefox'. |
|||||||||
#5
|
|||||||
|
|||||||
Yea, that is what I thought too
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#6
|
|||||||||
|
|||||||||
I know this is obvious... but you did use eq and not ne... right?
|
|||||||||
#7
|
|||||||
|
|||||||
Whadaya think I'm some newb?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#8
|
|||||||||
|
|||||||||
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|