Jump to content

nastavenie - dodavatel, vyrobca, Evidecne cislo, dodavatelske cislo, ean13


peterpavoll

Recommended Posts

Bohuzel povolenim jednoho tlacitka v obchode to nepujde. Budete k tomu muset prizpusobit sablonu (product.tpl). Pokud chcete zobrazit v detailu produktu tyto udaje, tak prikladam maly tahak .-) Samozrejme je potreba to opatrit patricnymi "ify", nechcete prece vypisovat neco, co zrovna treba nemate nastaveny.

//kod zbozi
{$product->reference|escape:'htmlall':'UTF-8'}

//kod zbozi dodavatele
{$product->supplier_reference|escape:'htmlall':'UTF-8'}

//ean13
{$product->ean13|escape:'htmlall':'UTF-8'}

// vyrobce vc. odkazu na nej
manufacturer_name|escape:'htmlall':'UTF-8'}" href="{$base_dir}manufacturer.php?id_manufacturer={$product->id_manufacturer}">{$product->manufacturer_name|escape:'htmlall':'UTF-8'}



Ziskat nazev dodavatele neni tak jednoduchy. Cekal bych, ze to bude stejny jako s vyrobcem, takze bych cekal existenci nejakeho {supplier_name}, ale nic takoveho ve Smarty neni assignovany. Více viz tento odkaz.

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...