Jump to content
IonutP

Prestashop Supplier list

Recommended Posts

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

Share this post


Link to post
Share on other sites

If you want to display supplier informations, two solutions :

  1. (Simple one) type all informations you want to display in the description field of each supplier
  2. (hard, need coding) override SupplierController and change template /themes/yourthemename/catalog/_partials/miniatures/brand.tpl and add fields you want to display

Share this post


Link to post
Share on other sites
53 minutes ago, Prestashop Addict said:

If you want to display supplier informations, two solutions :

  1. (Simple one) type all informations you want to display in the description field of each supplier
  2. (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)

Share this post


Link to post
Share on other sites
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 by Prestashop Addict (see edit history)

Share this post


Link to post
Share on other sites
21 hours ago, IonutP said:

I use Prestashop version 1.7

Hi,

Can you tell what informations you wish  to show  from the    suppliers where to show them?

This  module     Supplier Listing for 1.7      list   there images, description  and products in the home page.

Share this post


Link to post
Share on other sites
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. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More