We want to have a seperate page for DISCOUNTS/DEALS (basically for products that have discounts or some kind of deals applied on them - we do that through b2bking dynamic rules or offers)
Our thinking is that we would like to create a filter for discounted/onsale items using the FileEverything Pro plugin in the shop archive. However, the _sale_price option isn't suitable for our setup, as we manage discounts through B2BKing's dynamic rules.
Another option is to create a shortcode to display discounted items separately from the default shop archive (but this would exclude the filtering option I think, but maybe I could get it to work)
Could you assist us in targeting the right meta query for discounted or on-sale items? or provide some kind of solution for our goal?
I understand you're looking to create a dedicated page or filter for products that have discounts applied through B2BKing's dynamic rules.
Unfortunately, there's no specific metadata that can be queried directly since our dynamic rules work through a cached lookup system rather than setting product meta values. The plugin uses WooCommerce filters like "woocommerce_product_is_on_sale" or "woocommerce_product_get_sale_price" to modify product prices dynamically.
1. If FileEverything Pro has a general option to filter based on "on sale" products, that should work with our dynamic rules since we hook into WooCommerce's sale status.
2. Alternatively, I think you could create a separate page using the WooCommerce products shortcode to display discounted items:
Hello,
We want to have a seperate page for DISCOUNTS/DEALS (basically for products that have discounts or some kind of deals applied on them - we do that through b2bking dynamic rules or offers)
Our thinking is that we would like to create a filter for discounted/onsale items using the FileEverything Pro plugin in the shop archive. However, the _sale_price option isn't suitable for our setup, as we manage discounts through B2BKing's dynamic rules.
Another option is to create a shortcode to display discounted items separately from the default shop archive (but this would exclude the filtering option I think, but maybe I could get it to work)
Could you assist us in targeting the right meta query for discounted or on-sale items? or provide some kind of solution for our goal?
Thank you!
Hi Dovydas,
I understand you're looking to create a dedicated page or filter for products that have discounts applied through B2BKing's dynamic rules.
Unfortunately, there's no specific metadata that can be queried directly since our dynamic rules work through a cached lookup system rather than setting product meta values. The plugin uses WooCommerce filters like "woocommerce_product_is_on_sale" or "woocommerce_product_get_sale_price" to modify product prices dynamically.
1. If FileEverything Pro has a general option to filter based on "on sale" products, that should work with our dynamic rules since we hook into WooCommerce's sale status.
2. Alternatively, I think you could create a separate page using the WooCommerce products shortcode to display discounted items:
[products limit="4" columns="4" orderby="popularity" on_sale="true"]
This would show products that are marked as "on sale" through our dynamic rules.
Kind regards,
Stefan