stix_ Posted April 21, 2011 Share Posted April 21, 2011 zdravim, potreboval bych v header.tpl podminkou zjistit jestli se zakaznik nachazi zrovna na strance se zbozim nebo jinde na eshopu, poradil by nekdo? Link to comment Share on other sites More sharing options...
stix_ Posted April 21, 2011 Author Share Posted April 21, 2011 tak sem nahodou pri reseni neceho jinyho zjistil jak na to kdyby se nekomu hodilo tak: {if $smarty.server.PHP_SELF != '/product.php'} ted bych jeste potreboval zjistit jak v header.tpl dostat obrazek produktu a seo url, jinde mam: url: {$base_dir}{$product->id}-{$product->link_rewrite}.html obrazek: {$link->getImageLink($product.link_rewrite, $product.id_image, 'home')} jenze to nefunguje v headeru protoze nejspis jeste neni $product nacteny, mozna je to jinak ale nenapada me cim jinym by to mohlo byt Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now