• Resolved JanStudio

    (@vietxitin)


    Hi,

    Describe the bug
    Our site has about 7 sale products. We add widget “Products” to sidebar and choose Sale products and show 5 products. The widget show sale products but also show non sale products https://take.ms/EiQ8y

    To Reproduce

    Steps to reproduce the behavior:

    Go to ‘Apperance > Widgets > Add “products” widget to sidebar’
    Choose “on-sale products” https://take.ms/L9vPR

    Screenshots
    https://take.ms/EiQ8y

    Please check this issue have same with StoreFront theme.

    Regards

Viewing 8 replies - 1 through 8 (of 8 total)
  • Shane Eckert

    (@shaneeckert)

    Automattic Happiness Engineer

    Hi!

    I just tested this on my local site, but I am not getting the same results. Only Sale items are displayed.

    Were the products listed ever anything but sale items? Is it possible you are seeing cached results?

    If not, it could be a conflict.

    The best way to determine if the issue is being caused by a theme and/or plugin is to:

    1. Temporarily switch your theme to the Storefront (https://woocommerce.com/products/storefront/) or TwentySeventeen (https://www.ads-software.com/themes/twentyseventeen/) theme.
    2. Try to reproduce the problem:
    If the problem is resolved, it is a theme conflict. If not, continue to the next step.
    3. Temporarily deactivate all plugins except WooCommerce. You can do this manually or use a plugin to help (see below for tools).
    4. Try to reproduce the problem again. If the problem is resolved, it is a plugin conflict. To figure out which plugin is causing the problem, continue to the next step.
    5. Reactivate your other plugins one by one, testing after each, until you find the one causing conflict

    Thread Starter JanStudio

    (@vietxitin)

    Hi,

    I activate only plugin WooCommerce and StoreFront.
    It have with my exist products from old site. I don’t have solution for this :(.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @vietxitin I wasn’t able to replicate this either, but it looks like the wc_get_product_ids_on_sale function is used to get the sale items. It uses a transient that may be stuck in your store. There are two tools under WooCommerce > Status > Tools to remove transients, please try those if you are still having this issue.

    Thread Starter JanStudio

    (@vietxitin)

    @jessepearson Thank for advice. I tried as you said clear transients but issue still there.

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @vietxitin Can you link us to a page where this is happening?

    Thread Starter JanStudio

    (@vietxitin)

    jessepearson

    (@jessepearson)

    Automattic Happiness Engineer

    @vietxitin Please clear any caches, and turn off any caching you have. Does this resolve the issue?

    If not, please install Post Meta Inspector on the site. Once installed, go to the products and see if they have a _sale_price set in the meta:


    Link to image: https://cld.wthms.co/jWsB8B

    If they do not, please go to https://janstudio.net/claue/demo/wp-admin/options.php and search to see if _transient_wc_products_onsale exists there? If so, use the tool under WooCommerce > Status > Tools again to remove the transients. Once that is done, return to the options page and see if the transient still exists, it should not. If it does then go WooCommerce > Status > Logs to see if there is a fatal error.

    There’s one of two things happening here:
    * The page and widget are cached, and that’s why the items are not updating.
    * There is a conflict causing a fatal error when the transients should be being cleared.

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘NON Sale prodcuts getting displayed on the sales section in the sidebar’ is closed to new replies.