WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
[closed] sale_products shortcode does not work (10 posts)

  1. denkal
    Member
    Posted 2 months ago #

    Shortcode [sale_products per_page="12"] does not work.
    Any ideas?

    https://wordpress.org/plugins/woocommerce/

  2. cybertex
    Member
    Posted 2 months ago #

    I have the same issue on my site!

    That must be a plugin issue.

  3. deeve007
    Member
    Posted 1 month ago #

    Same issue here, must be a bug with the latest release, it was working beforehand. I'll submit a bug report with Woothemes.

  4. jonnyjaniero
    Member
    Posted 1 month ago #

    Thanks deeve007,

    Same here.
    For both [sale products] and [product_category].
    I've tried disabling all plugins and using the default WP theme and its still broke.

  5. TDR
    Member
    Posted 1 month ago #

    yes, I've got the same issue here

  6. esmi
    Forum Moderator
    Posted 1 month ago #

    People: If you require assistance then, as per the Forum Welcome, please post your own topic instead of tagging onto someone else's topic.

    All you are doing at the moment is ensuring that no one gets an answer.

  7. deeve007
    Member
    Posted 1 month ago #

    How would creating multiple threads of EXACTLY the same problem get an answer more than one thread with many people confirming the issue is a common one? And first time I've been on a forum anywhere where they wanted members to create multiple threads on exactly the same subject.

    I've also added it as an issue on Woocommerce github. If they respond there I'll also update this thread, so everyone gets an answer. I'm certainly not going to update multiple threads.

  8. Andrew
    Forum Moderator
    Posted 1 month ago #

    How would creating multiple threads of EXACTLY the same problem get an answer more than one thread with many people confirming the issue is a common one?

    It's quite easy to attempt to help one person at a time, whereas it's not easy to help multiple people at a time. Also most of the time you don't know you have the exact the issue as much as the next guy, the most you could know is you have the same symptom.

    It's not a huge amount of effort to create a new thread, it's how WordPress.org forums work, it's not going to detriment you.

  9. esmi
    Forum Moderator
    Posted 1 month ago #

    @deeve007: These forums have guidelines. Please read them. As you will see, one of these guidelines - entitled Where to Post - specifically states:

    Unless you are using the same version of WordPress on the same physical server hosted by the same hosts with the same plugins, theme & configurations as the original poster, do not post in someone else's thread. Start your own topic.

    Please abide by this.

  10. TDR
    Member
    Posted 1 month ago #

    Hi guys, I've opened my own tread and "Leandro Martins GuimarĂ£es", member on this forum handed me this solution from "otggamer"

    I've tried it and it works like a charm! Game on!

    As a workaround, add this code to your functions.php:

    // DELETE ON SALE TRANSIENTS WHEN POST SAVED
    function delete_sale_transients() {
    global $post;
    if( $post->post_type == 'product' ) {
    delete_transient( 'wc_products_onsale' );
    }
    }
    add_action( 'save_post', 'delete_sale_transients' );

    And just open and save anyone of your products to refresh cache data.

    Anyway, we're still waiting for a better solution from WooCommerce guys.

    This solution was originally suggested by "otggamer" here: https://support.woothemes.com/hc/communities/public/questions/201933598-On-sale-products-not-displaying-in-Woocommerce-products-widget

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.