Jump to content

Faceted search quantity dropdown


rtruso

Recommended Posts

 Hello,

In the dropdown of a filter the quantity display is just a digit to the right of the attribute (see capture). I searched the code to change the format (example: attribute = 1 or attribute (1)). The code in the Faceted search template is:

{$filter.label}
{if $filter.magnitude and $show_quantities}
{$filter.magnitude}
{/if}
 

I searched where was built this variable to be able to change the quantity format but I didn't find it.

Do you have any idea how to get a more explicit quantity format for the user?

Thank you,

Mathieu

Link to comment
Share on other sites

Hi,

The variable $filter.magnitude is responsible for displaying the quantity next to the attribute in the dropdown.

{$filter.label}
{if $filter.magnitude and $show_quantities}
{if $filter.magnitude == 1}
({$filter.magnitude} product)
{else}
({$filter.magnitude} products)
{/if}
{/if}
 

Is this kind of something you looking for?

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...