Page 1 of 1

How to hide stores without LOGOS?

PostPosted: Thu Oct 24, 2013 10:22 am
by sors11_2957
Hi...I´d like to hide the stores without logo when the user list them....

There are a lot of user that don´t understand what important is their logo in their shops inside mine....and it´s not professional to show the image "logo not available" .... so I´d like to show only stores with logos...

Re: How to hide stores without LOGOS?

PostPosted: Fri Oct 25, 2013 12:36 am
by shokinro
Thanks for using Agile Multiple Seller modules - a best PrestaShop based on-line market place solution.

.I´d like to hide the stores without logo when the user list them....

There are a lot of user that don´t understand what important is their logo in their shops inside mine....and it´s not professional to show the image "logo not available" .... so I´d like to show only stores with logos...

You can try to filter out the sellers in following theme file, check {$seller.seller_logo_url}, it it is end of "-nologo.png", then it is a seller does not have a logo.

/modules/agilemultipleshop/agileseller
s
.tpl

Please note: the file name ends with "s".

Hope this helps.

Re: How to hide stores without LOGOS?

PostPosted: Fri Oct 25, 2013 1:07 pm
by sors11_2957
I´ve found the file and the line...but please...I don´t understand what you mean exactly

Please check my pooooooor code ejjeje....how do you write this check ...this "nologo" check...

something like that?
---------------------------------------------------------------------------
if{ {$seller.seller_logo_url} != '%-nologo.png' }

/*shows the seller image */

<a href="{$seller_link}" title="{$seller.company|escape:html:'UTF-8'}" class="product_image">
<img src="{$seller.seller_logo_url}" height="{$homeSize.height}" width="{$homeSize.width}" alt="{$seller.company|escape:html:'UTF-8'}" /></a>

{else}
/* nothing...it doesn´t show nothing */
{/if}

Re: How to hide stores without LOGOS?

PostPosted: Sat Oct 26, 2013 10:15 am
by sors11_2957
some help?

please...I don´t know how to check if the shop has logo or not....

where is this field in the database?....you know the table where is saved the {$seller.seller_logo_url} field?

Re: How to hide stores without LOGOS?

PostPosted: Sat Oct 26, 2013 3:44 pm
by shokinro
it seems that you do not have Smarty coding experience. You will have to learn syntax coding from the syntax.
The logo is not saved in database and it is saved physical golder. On the that page the logo url as been assiged by the module, you can retrieve it from {$seller.seller_logo_url} inside the loop as I mentioned.

But I think it might be not a good idea to filter out the sellers do not have logo. You may replace the "No-Logo" image by a better one.
It just like in many forum or membership websites, if the membership does not have profile photo, it will be replaced with a general portrait photo. I think this might be the good way to go.

The default "no-logo" image are under following folder for each language
/modules/agilemultipleseller/images/en_nologo.png
/modules/agilemultipleseller/images/es_nologo.png
....

Re: How to hide stores without LOGOS?

PostPosted: Sun Oct 27, 2013 10:27 am
by sors11_2957
Thanks! I'll do as u say :)
And it's true ...I don't understand smarty jejej ...give me time!

Re: How to hide stores without LOGOS?

PostPosted: Tue Oct 29, 2013 5:40 am
by shokinro
Yes, I think that is best way, otherwise, it is also not fair to your sellers to be not listed up there because of no logo.