Jump to content

Create a custom attribute drop-down sort in category page


Recommended Posts

Quick question to the Presta modders out there:

 

Inside product-sort.tpl, say if i have another drop-down menu (select drop-down menu) which list custom "attributes" values like "S, M, L, XL" etc (sizes), and on selected, the page refreshes and displays products that have available stock for say size "S"?

 

Is there a plugin or custom code i can refer to?

I'm very sure this is not new and appreciate any answers here.

 

Here's a sample site that this custom attribute drop-down menu filter.

dropdownmenu-sort.jpg

Link to comment
Share on other sites

  • 3 weeks later...

this is already handled by layered navigation module, did you tried that?

 

The layered navigation module is managing the 'sort by' which provides the various typical drop-down items like "A-Z, price low to high..etc". However we want to build an additional drop-down alongside which can display the sort by say "sizes" and only products with the sizes available will display if the user say choose "M" in the size dropdown

Link to comment
Share on other sites

  • 2 months later...

You are confusing "Sort" with "Filter"

 

You should look into other filter modules, either on the addons store, or try http://www.presto-changeo.com/en/filter-modules/74-ajax-filter.html

 

Not to confuse "Sort By" with "Filter" (layered navigation module).

 

We are trying to achieve a drop-down selector specifically with ie. "XS, S, M, L, XL" which is placed beside the existing "Sort By" drop-down selector.

 

Upon selecting say size M, the category page refreshes (ajax) and displays products with the attribute eg. Size:M only. 

Link to comment
Share on other sites

  • 4 months later...

Not to confuse "Sort By" with "Filter" (layered navigation module).

 

We are trying to achieve a drop-down selector specifically with ie. "XS, S, M, L, XL" which is placed beside the existing "Sort By" drop-down selector.

 

Upon selecting say size M, the category page refreshes (ajax) and displays products with the attribute eg. Size:M only. 

 

Check this tuto: http://blog.belvg.com/how-to-create-custom-sorting-in-prestashop-1-5.html

Link to comment
Share on other sites

×
×
  • Create New...