PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

[MODULE] "Search-by-Attribute" frontpage module

38 replies to this topic
#1
tarentil

    PrestaShop Newbie

  • Members
  • Pip
  • 0 posts
I couldn't find any module to search products by their attributes so I've made my own. I am not advanced programmer and I don't know PrestaShop framework so I created it in very imperfect way but it works great for me.

Quote

+ allows to search by many attributes

+ results are sorted and organized in pages

- in order to run some core PrestaShop files have to be modified (or overwritten - they're in the package with my module)

- my code is written in a very bad programming style (sorry)

- it may be necessery to change something in frontoffice template in order to display search title properly, but this is not really important


Please, download attached ZIP file, unpack it and look at the uncompressed files. If you use unmodified PrestaShop v1.1 then you can simply overwrite appropriate files (and remember to make backup).

If you use modified Presta then unfortunately you have to copy and paste specific parts of the code from my module (these are single blocks of code, so this shouldn't be much problem). Additionaly, you have to remove word "UNION" from blacklist in /classes/Db.php. MySQL doesn't support INTERSECT operation so I had to do intersection using union and subquery. This may be unsafe, but I don't know other way to do that. :-(

Please, check my module and improve the code if you can. :-)

Attached Files



#2
Ehinarr

    Sir

  • Members
  • PipPipPipPip
  • 1134 posts
Thanks for share your work.
My Blog
PS v1.4.7.0

#3
p.e.t.r.

    PrestaShop Newbie

  • Members
  • Pip
  • 2 posts
Hi,
sorry for my english!
Very good work! I have a question: Can you do this for products features?

Many thx for answer!

#4
webplus

    PrestaShop Apprentice

  • Members
  • PipPip
  • 70 posts
Thank you for your work, it works great, but "only" when selling one type of product. It would be great if you can select in advanced search box the category (particular type of product) and then you will be able to choose the appropriate attributes, related to this category.
Posted Image

Premium Templates for Prestashop with support.

#5
VIXUS

    PrestaShop Addict

  • Members
  • PipPipPip
  • 583 posts
Anyone has this somewhere online to see it in action?

#6
webplus

    PrestaShop Apprentice

  • Members
  • PipPip
  • 70 posts

From 1244755437:

Anyone has this somewhere online to see it in action?


http://eshop.web-plus.cz/

works ok e.g. for tyres (one product type in shop), but if you sell 3 different product (categories) and need to search each of them by their attributes only, it cannot be used.
Posted Image

Premium Templates for Prestashop with support.

#7
VIXUS

    PrestaShop Addict

  • Members
  • PipPipPip
  • 583 posts
Ah, so...

But maybe it can be placed into every category (at top just above products list) to make products fintering possible within that category?
This would be werry usefull aswell.

#8
webplus

    PrestaShop Apprentice

  • Members
  • PipPip
  • 70 posts

From 1244756128:

Ah, so...

But maybe it can be placed into every category (at top just above products list) to make products fintering possible within that category?
This would be werry usefull aswell.


Not sure what you mean. The module displays selectboxes of ALL attribute groups with its list of attributes. Once you have more attributes created for different categories (types of product), you will get search boxes for everything. If you sell guitars (and needs to distinguish spanish and jumbo) and piano (electronic, classic), you can create attribute group Instrument (Guitar, Piano), group Piano type and Group Guitar type, but customer will be confused by all select boxes and you have too much manuall work (adding attributes to all products).
Posted Image

Premium Templates for Prestashop with support.

#9
VIXUS

    PrestaShop Addict

  • Members
  • PipPipPip
  • 583 posts
I meant that its edited in a way that it filters out and shows only products atributes from category in wich has customer navigated.

So if you have category "computers" it will show atributes from this category only...
If you go to "monitors" category it will filter attributes from this category only..
...and so on...

#10
hildephonse

    PrestaShop Newbie

  • Members
  • Pip
  • 1 posts
Hi all,

The module works 90%... The only issue I have is that the found product doesn't show...

See attached.

Any idea ?

Attached Files



#11
foco

    PrestaShop Newbie

  • Members
  • Pip
  • 8 posts
Hi There !
@ tarentil: thanks for your time, trying to find a solution for this weakness of Prestashop.
The advanced search (and also the "browsing results -for products page-) where allways the mos popular modules on OSC, and others e-shop)

Yes, there is a small bug, so when you search and i.e. 2 products has been found, it displays only first product.

let''s see if somebody can find a solution.
regards

#12
Ann

    PrestaShop Apprentice

  • Members
  • PipPip
  • 363 posts
Bonjour,

Module pouvant être fort utile ! Personne pour reprendre le travail dessus ?
www.ann-secrets.com
www.mode-des-femmes.com

#13
foco

    PrestaShop Newbie

  • Members
  • Pip
  • 8 posts
Ann said
> Bonjour,
> Module pouvant être fort utile ! Personne pour reprendre le travail dessus ?
_____________________
translation something like:

Hello,
This module can be vey usefull.
Can anyone resume the development ?

#14
Ann

    PrestaShop Apprentice

  • Members
  • PipPip
  • 363 posts
UP ! This module is a MUST ! :coolsmirk:
www.ann-secrets.com
www.mode-des-femmes.com

#15
VIXUS

    PrestaShop Addict

  • Members
  • PipPipPip
  • 583 posts

From 1249371566:

Ann said
> Bonjour,
> Module pouvant être fort utile ! Personne pour reprendre le travail dessus ?
_____________________
translation something like:

Hello,
This module can be vey usefull.
Can anyone resume the development ?


thanx for the effort to translate!

#16
Ann

    PrestaShop Apprentice

  • Members
  • PipPip
  • 363 posts
Any news ???
www.ann-secrets.com
www.mode-des-femmes.com

#17
skije

    PrestaShop Newbie

  • Members
  • Pip
  • 5 posts
very usefull module. but it still doesn't work :(

#18
VIXUS

    PrestaShop Addict

  • Members
  • PipPipPip
  • 583 posts
too bad :-(

#19
motorider

    PrestaShop Newbie

  • Members
  • Pip
  • 2 posts
Has anyone adjusted this module to 1.2.4 version ?

#20
superisc

    PrestaShop Newbie

  • Members
  • Pip
  • 6 posts
any help with this module??? or anything similar???