IonutP Posted November 27, 2019 Share Posted November 27, 2019 Hi, I just installed prestashop supplier list module and I try to find a solution to display phone number and other suppliers details. It is possible to do this? Thanks! Ionut Link to comment Share on other sites More sharing options...
Prestashop Addict Posted November 27, 2019 Share Posted November 27, 2019 Please can you indicate wich PS version ? There is no supplier module in PS it's native Link to comment Share on other sites More sharing options...
IonutP Posted November 27, 2019 Author Share Posted November 27, 2019 I use Prestashop version 1.7 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted November 28, 2019 Share Posted November 28, 2019 If you want to display supplier informations, two solutions : (Simple one) type all informations you want to display in the description field of each supplier (hard, need coding) override SupplierController and change template /themes/yourthemename/catalog/_partials/miniatures/brand.tpl and add fields you want to display Link to comment Share on other sites More sharing options...
IonutP Posted November 28, 2019 Author Share Posted November 28, 2019 53 minutes ago, Prestashop Addict said: If you want to display supplier informations, two solutions : (Simple one) type all informations you want to display in the description field of each supplier (hard, need coding) override SupplierController and change template /themes/yourthemename/catalog/_partials/miniatures/brand.tpl and add fields you want to display 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) Link to comment Share on other sites More sharing options...
Prestashop Addict Posted November 28, 2019 Share Posted November 28, 2019 (edited) 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} Edited November 28, 2019 by Prestashop Addict (see edit history) Link to comment Share on other sites More sharing options...
IonutP Posted November 29, 2019 Author Share Posted November 29, 2019 20 hours ago, Prestashop Addict said: 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} Thank you for your answer ! Do you know also how can I sort supplier list to put first the default supplier / implicit supplier. 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