PrestaShop Forums: [MODULE] "Search-by-Attribute" frontpage module - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


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


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

#1 tarentil

    PrestaShop Newbie

  • 04 Jun 2009
  • Members
  • Pip
  • 0 posts

Posted 04 June 2009 - 08:36 AM

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 File(s)



#2 Ehinarr

    Sir

  • 01 Nov 2008
  • Members
  • PipPipPipPip
  • 1125 posts

Posted 04 June 2009 - 01:29 PM

Thanks for share your work.
My Blog
PS v1.4.6.1

#3 p.e.t.r.

    PrestaShop Newbie

  • 30 Mar 2009
  • Members
  • Pip
  • 2 posts

Posted 08 June 2009 - 06:47 AM

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

  • 01 Dec 2008
  • Members
  • PipPip
  • 55 posts

Posted 11 June 2009 - 10:00 PM

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.

#5 VIXUS

    PrestaShop Addict

  • 24 Jan 2009
  • Members
  • PipPipPip
  • 576 posts

Posted 11 June 2009 - 10:23 PM

Anyone has this somewhere online to see it in action?

#6 webplus

    PrestaShop Apprentice

  • 01 Dec 2008
  • Members
  • PipPip
  • 55 posts

Posted 11 June 2009 - 10:28 PM

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.

#7 VIXUS

    PrestaShop Addict

  • 24 Jan 2009
  • Members
  • PipPipPip
  • 576 posts

Posted 11 June 2009 - 10:35 PM

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

  • 01 Dec 2008
  • Members
  • PipPip
  • 55 posts

Posted 12 June 2009 - 12:07 AM

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).

#9 VIXUS

    PrestaShop Addict

  • 24 Jan 2009
  • Members
  • PipPipPip
  • 576 posts

Posted 12 June 2009 - 07:09 AM

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

  • 17 Jun 2009
  • Members
  • Pip
  • 1 posts

Posted 24 June 2009 - 04:38 AM

Hi all,

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

See attached.

Any idea ?

Attached File(s)



#11 foco

    PrestaShop Newbie

  • 01 Jul 2009
  • Members
  • Pip
  • 8 posts

Posted 01 July 2009 - 08:25 AM

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

  • 02 Jul 2008
  • Members
  • PipPip
  • 363 posts

Posted 04 August 2009 - 07:10 AM

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

  • 01 Jul 2009
  • Members
  • Pip
  • 8 posts

Posted 04 August 2009 - 08:39 AM

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

  • 02 Jul 2008
  • Members
  • PipPip
  • 363 posts

Posted 26 September 2009 - 08:21 AM

UP ! This module is a MUST ! :coolsmirk:
www.ann-secrets.com
www.mode-des-femmes.com

#15 VIXUS

    PrestaShop Addict

  • 24 Jan 2009
  • Members
  • PipPipPip
  • 576 posts

Posted 26 September 2009 - 08:30 AM

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

  • 02 Jul 2008
  • Members
  • PipPip
  • 363 posts

Posted 25 October 2009 - 11:12 AM

Any news ???
www.ann-secrets.com
www.mode-des-femmes.com

#17 skije

    PrestaShop Newbie

  • 18 Oct 2009
  • Members
  • Pip
  • 5 posts

Posted 26 October 2009 - 09:00 PM

very usefull module. but it still doesn't work :(

#18 VIXUS

    PrestaShop Addict

  • 24 Jan 2009
  • Members
  • PipPipPip
  • 576 posts

Posted 01 November 2009 - 10:20 AM

too bad :-(

#19 motorider

    PrestaShop Newbie

  • 02 Nov 2009
  • Members
  • Pip
  • 2 posts

Posted 02 November 2009 - 05:06 PM

Has anyone adjusted this module to 1.2.4 version ?

#20 superisc

    PrestaShop Newbie

  • 26 Nov 2009
  • Members
  • Pip
  • 5 posts

Posted 27 November 2009 - 10:58 AM

any help with this module??? or anything similar???





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users