price filter under category

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
User avatar
GülsümAkça
Posts: 57
Joined: 20 Nov 2020, 13:30

price filter under category

Post by GülsümAkça » 05 Feb 2021, 19:45

I want to use the price filter only under a certain category. For example, just list products under $ 100 in the women's category. can you help me.
thanks

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: price filter under category

Post by aimeos » 06 Feb 2021, 16:42

1.) Create your own extension: https://aimeos.org/extensions
2.) Overwrite the template for the catalog lists page: https://aimeos.org/docs/latest/frontend ... templates/
3.) Add a condition to that template based on the category ID you get by using

Code: Select all

$catid = $this->param('f_catid')
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
GülsümAkça
Posts: 57
Joined: 20 Nov 2020, 13:30

Re: price filter under category

Post by GülsümAkça » 07 Feb 2021, 20:11

I solved the problem by adding this line to the catalog/ filter/body-standard.php page. Thankyou for your help.

Code: Select all

<?php if ($this->param('f_catid')) : ?>
<input type="hidden" name="f_catid" value="<?=$this->param('f_catid')?>" >
<?php endif; ?>

Post Reply