Jump to content

Edit History

mausbaus

mausbaus

On 7/9/2017 at 12:54 PM, Scully said:

 


{if isset($product->id_supplier) && $product->id_supplier > 0}
    <a href="{$link->getsupplierLink($product->id_supplier)|escape:'html':'UTF-8'}">
     {Supplier::getNameById($product->id_supplier)}
    </a>
{/if}

 

@Scully Glad to have found your answer after 2h of searching. 💋

  {if $product.id_supplier}
              <a href="{$link->getSupplierLink($product.id_supplier)}">{Supplier::getNameById($product->id_supplier)}</a>
              {/if}

Works wonderful in 1.7.5 as well. The missing piece was how to get the supplier name since $product_supplier->name  was not working...

 

mausbaus

mausbaus

On 7/9/2017 at 12:54 PM, Scully said:

 


{if isset($product->id_supplier) && $product->id_supplier > 0}
    <a href="{$link->getsupplierLink($product->id_supplier)|escape:'html':'UTF-8'}">
     {Supplier::getNameById($product->id_supplier)}
    </a>
{/if}

 

@Scully Glad to have found your answer after 2h of searching. 💋

Works wonderful in 1.7.5 as well.

 

×
×
  • Create New...