Jump to content

rozpoznani stranky se zbozim


stix_

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...