rtruso Posted August 3, 2023 Share Posted August 3, 2023 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 More sharing options...
AddWeb Solution Posted August 3, 2023 Share Posted August 3, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now