WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Remove "SALE" from all pix in gallery (8 posts)

  1. affordablepawn
    Member
    Posted 1 year ago #

    We use Woo Commerce for the gallery only and when I updated to 2.0.10, every picture has a "SALE" circle on it. I know I can change each product individually to "variable", but that will take too long. Is there a way to do that in bulk?

    Should I revert to 2.0.9 instead and if so, how do I do it?

    Or, is there a code somewhere I can change or delete? Again, where is it? I looked for is_on_sale, but couldn't find it anywhere.

    Any suggestions will be appreciated!

    Thank you!

    http://wordpress.org/extend/plugins/woocommerce/

  2. Yojance
    Member
    Posted 1 year ago #

    You could try editing the HTML that is used to display the Sale message and set it to an empty string.

    The filter is called 'woocommerce_sale_flash'.

  3. affordablepawn
    Member
    Posted 1 year ago #

    Thank you for the suggestion, but I have no idea where to find that or how to change it. I'm not HTML literate! :)

  4. jameskoster
    Member
    Plugin Author

    Posted 1 year ago #

    Hey,

    This is a known issue and will be fixed in the next update. If you want to remove the sale flashes entirely in the time being, add the following to your themes functions.php file;

    remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_show_product_loop_sale_flash', 10 );
    remove_action( 'woocommerce_before_single_product_summary', 'woocommerce_show_product_sale_flash', 10 );

    Thanks

  5. affordablepawn
    Member
    Posted 1 year ago #

    OK - I would wait until the next update, but I really don't like all those little green SALE circles on EVERYTHING!

    So, where do I place this code? Sorry, I'm not a HTML person!

    Thanks!

  6. Yojance
    Member
    Posted 1 year ago #

    That code inside your functions.php file. You can find your functions.php file inside the Theme's folder.

  7. nra54
    Member
    Posted 1 year ago #

    I have the same problem, which part of the theme-functions.ph file should i put the code please identify as follows:

    - Exclude categories from displaying on the "Blog" page template.
    - Exclude categories from displaying on the homepage.
    - Register WP Menus
    - Page navigation
    - Post Meta
    - Custom Post Type - Slides
    - Subscribe & Connect
    - Comment Form Fields
    - Comment Form Settings

    Thanks

  8. nra54
    Member
    Posted 1 year ago #

    Hello,

    I added the code to the theme functions (functions.php) under the "you can add custom functions below" and it works.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic