price filter under category
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- GülsümAkça
- Posts: 57
- Joined: 20 Nov 2020, 13:30
price filter under category
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
thanks
Re: price filter under category
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
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, give us a star
If you like Aimeos, give us a star
- GülsümAkça
- Posts: 57
- Joined: 20 Nov 2020, 13:30
Re: price filter under category
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; ?>