List discount products
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!
List discount products
Hello,
can you help me get a list of all discounted products?
I've looked over the code and the search, it looks i need to rewrite price index to include not just price of the product but perhaps a flag to discount price. Maybe there is a better way to handle the request?
can you help me get a list of all discounted products?
I've looked over the code and the search, it looks i need to rewrite price index to include not just price of the product but perhaps a flag to discount price. Maybe there is a better way to handle the request?
Re: List discount products
You can also filter for promotion products if you add discounted products as promotion to their categories in the "Categories" sub-panel of the product detail panel of the admin backend. Those products are then displayed in the catalog/lists component using this filter:
https://github.com/aimeos/ai-client-htm ... #L317-L321
https://github.com/aimeos/ai-client-htm ... #L317-L321
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
Re: List discount products
Yes, i saw a promotion option and that works great, but i need discount product via promotion category.
Currently had to implement php filter to remove products w/o discount, but that would be a nightmare with a lot of products.
Currently had to implement php filter to remove products w/o discount, but that would be a nightmare with a lot of products.
Re: List discount products
You can either add a new column to the product manager or use a product property or attribute to flag the product as discounted product. Filtering in the HTML client component (which you have to overwrite) is possible by using all three options.
The product property and attribute requires only the HTML client change, for the first option you need to implement more code:
https://aimeos.org/docs/latest/infrastr ... -managers/
The product property and attribute requires only the HTML client change, for the first option you need to implement more code:
https://aimeos.org/docs/latest/infrastr ... -managers/
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