Jump to content

Edit History

Prestashop Addict

Prestashop Addict

il y a 16 minutes, IonutP a dit :

Thanks for your answer!

I know option 1 and already using it, but this is not really best practice and this is why I was trying to learn how to do this using option 2 (overriding SupplierController and template file)

Sure 😉 If you are a developer you can override SupplierController method public function getTemplateVarSuppliers() to add required fields to smarty and then in brand.tpl add fields like {brand.phone}

Prestashop Addict

Prestashop Addict

il y a 11 minutes, IonutP a dit :

Thanks for your answer!

I know option 1 and already using it, but this is not really best practice and this is why I was trying to learn how to do this using option 2 (overriding SupplierController and template file)

Sure 😉 If you are a developer you can override SupplierController method public function getTemplateVarSuppliers() to add required fields to smarty and then in brand.tpl add fields like {brand.phone}

×
×
  • Create New...