• Resolved baggyno

    (@baggyno)


    Hi,

    I am using a WP query with wc_get_product_ids_on_sale(), and no products using the plugin is showing.
    Is there any way to show all products on sale via WP query?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi
    Thanks for reaching out.

    We would like to let you know that our plugin does not update the prices in the backend (Sale price for discounts). Our plugin applies discounts on the fly dynamically while adding the product to the cart. However, it doesn’t change the price in the back-end.

    To get a discount on a product, you can give it a try using this snippet. https://gist.github.com/AshlinRejo/c37a155a42c0e30beafbbad183f0c4e8.

    Hope this helps!

    Thanks
    Team Flycart

    Thread Starter baggyno

    (@baggyno)

    Hi,

    Can you give me an example code where I can get an array of all products on sale via plugin?

    I tried the following and it yielded no results:

    $discount = apply_filters(‘advanced_woo_discount_rules_get_product_discount_price_from_custom_price’, 100, wc_get_product(), 1, 0, ‘all’, false, true);

    var_dump($discount);

    Hi
    Thanks for the reply.

    We are so sorry that we do not have any query to get an array of all products.
    You can give it a try using the shortcode [awdr_sale_items_list].
    But, this shortcode is available only in the PRO version of our plugin.

    These are the available possibilities in our plugin.

    Thanks
    Team Flycart

    Thread Starter baggyno

    (@baggyno)

    ok, that is unfortunate.

    Maybe add that flexibility in the future, so that we can display things in our theme components.

    Thanks.

    Sure @baggyno.

    Thank you for the valuable feedback.
    We shall pass this information to the dev team.

    Feel free to reach out in case of any further queries.

    Thanks
    Team Flycart

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Products on sale does not show in query’ is closed to new replies.