remove sale badge from variations that are not on sale
-
Our variation products that are not on sale are still displaying a sales badge.
Even though we only have one or two products on sale in the variations.
Thanks
The page I need help with: [log in to see the link]
-
Hey there!
Could you please share a copy of your site’s System Status? You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.### WordPress Environment ### WordPress address (URL): https://us.meori.com Site address (URL): https://us.meori.com WC Version: 4.7.0 REST API Version: ? 4.7.0 WC Blocks Version: ? 3.6.0 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.6.3 Log Directory Writable: ? WP Version: 5.5.3 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.10 PHP Post Max Size: 100 MB PHP Time Limit: 3600 PHP Max Input Vars: 10000 cURL Version: 7.58.0 OpenSSL/1.1.1 SUHOSIN Installed: – MySQL Version: 5.7.31-34-log Max Upload Size: 50 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.3.1 WC Database Prefix: wp_ Total Database Size: 195.12MB Database Data Size: 118.69MB Database Index Size: 76.43MB wp_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 3.52MB + Index: 1.52MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 16.55MB + Index: 15.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 5.02MB + Index: 4.53MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 2.02MB + Index: 2.03MB + Engine InnoDB wp_adtribes_my_conversions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_aws_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_aws_index: Data: 0.38MB + Index: 0.19MB + Engine InnoDB wp_bwf_contact: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_bwf_contact_meta: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_bwf_wc_customers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_commentmeta: Data: 2.52MB + Index: 3.03MB + Engine InnoDB wp_comments: Data: 8.52MB + Index: 10.09MB + Engine InnoDB wp_gf_addon_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_gf_entry: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_gf_entry_meta: Data: 0.22MB + Index: 0.14MB + Engine InnoDB wp_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_gf_form_meta: Data: 0.03MB + Index: 0.00MB + Engine InnoDB wp_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_gf_form_view: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_iconic_was_fees: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_options: Data: 9.05MB + Index: 2.30MB + Engine InnoDB wp_pmxe_exports: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_pmxe_google_cats: Data: 0.39MB + Index: 0.00MB + Engine InnoDB wp_pmxe_posts: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_pmxe_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_hash: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_images: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_pmxi_imports: Data: 2.48MB + Index: 0.00MB + Engine InnoDB wp_pmxi_posts: Data: 1.52MB + Index: 0.00MB + Engine InnoDB wp_pmxi_templates: Data: 0.11MB + Index: 0.00MB + Engine InnoDB wp_postmeta: Data: 39.47MB + Index: 16.89MB + Engine InnoDB wp_posts: Data: 5.45MB + Index: 2.45MB + Engine InnoDB wp_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_redirection_items: Data: 0.06MB + Index: 0.09MB + Engine InnoDB wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_sbi_instagram_posts: Data: 0.17MB + Index: 0.00MB + Engine InnoDB wp_signups: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.09MB + Index: 0.11MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wp_term_taxonomy: Data: 0.08MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 4.47MB + Index: 4.98MB + Engine InnoDB wp_users: Data: 0.20MB + Index: 0.20MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.25MB + Index: 0.20MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.17MB + Index: 0.23MB + Engine InnoDB wp_wc_order_product_lookup: Data: 3.52MB + Index: 6.06MB + Engine InnoDB wp_wc_order_stats: Data: 1.52MB + Index: 0.52MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.06MB + Index: 0.09MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfacp_stats: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfco_report_views: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_bundled_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_bundled_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_pinterest: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_pinterest_boards_mapping: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_pinterest_google_categories_mapping: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_pinterest_google_product_categories: Data: 0.52MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_table_rates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoast_indexable: Data: 2.52MB + Index: 1.20MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.09MB + Index: 0.16MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 3.48MB + Index: 2.95MB + Engine InnoDB wp_yoast_seo_meta: Data: 0.09MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### acf-field: 12 acf-field-group: 5 ae_global_templates: 2 attachment: 2263 custom_css: 3 customize_changeset: 62 dispatch: 482 dispatch_item: 1563 elementor_library: 25 et_pb_layout: 32 nav_menu_item: 53 oembed_cache: 12 omapi: 3 page: 19 popup: 1 popup_theme: 8 post: 5 product: 88 product_variation: 201 revision: 48 shop_coupon: 32 shop_order: 4914 shop_order_refund: 101 wfacp_checkout: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (63) ### ManageWP - Worker: by GoDaddy – 4.9.7 Gravity Forms: by Gravity Forms – 2.4.21 Advanced Custom Fields PRO: by Elliot Condon – 5.9.1 Advanced Custom Fields: by Elliot Condon – 5.9.3 Advanced Woo Search: by ILLID – 2.15 AfterShip - WooCommerce Tracking: by AfterShip – 1.10.0 – Installed version not tested with active version of WooCommerce 4.7.0 Akismet Anti-Spam: by Automattic – 4.1.7 AnyWhere Elementor Pro: by WP Vibes – 2.16 Anywhere Elementor: by WPVibes – 1.2.2 Auto Image Attributes From Filename With Bulk Updater: by Arun Basil Lal – 1.6 Element Pack: by BdThemes – 5.5.0 Better Search Replace: by Delicious Brains – 1.3.3 Classic Editor: by WordPress Contributors – 1.6 Duplicate Page: by mndpsingh287 – 4.3 DynamicConditions: by RTO GmbH – 1.4.6 Elementor Pro: by Elementor.com – 3.0.5 Elementor: by Elementor.com – 3.0.13 Facebook for WooCommerce: by Facebook – 2.1.4 – Installed version not tested with active version of WooCommerce 4.7.0 GPLVault Update Manager: by GPL Vault – 3.3.2 Gravity Forms Mailchimp Add-On: by Gravity Forms – 4.8 Gravity Forms User Registration Add-On: by Gravity Forms – 4.6 WooCommerce Attribute Swatches by Iconic: by Iconic – 1.2.7 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce Quickview by Iconic: by Iconic – 3.4.15 – Installed version not tested with active version of WooCommerce 4.7.0 Smash Balloon Instagram Feed: by Smash Balloon – 2.5.4 Jetpack by WordPress.com: by Automattic – 9.1 Judge.me Product Reviews for WooCommerce: by Judge.me – 1.3.8 – Installed version not tested with active version of WooCommerce 4.7.0 Mailchimp for WooCommerce: by Mailchimp – 2.4.7 – Installed version not tested with active version of WooCommerce 4.7.0 Make Column Clickable Elementor: by Fernando Acosta – 1.3.1 Max Mega Menu - Pro Addon: by megamenu.com – 2.1.3 Max Mega Menu: by megamenu.com – 2.9.1 OptinMonster: by OptinMonster Team – 2.0.1 Popup Maker: by Popup Maker – 1.13.1 Redirection: by John Godley – 4.9.2 Reviews for Schema: by Magazine3 – 1.11 SASWP Pro Extension Manager: by Schema & Structured Data Team – 1.2.1 Schema & Structured Data for WP & AMP: by Magazine3 – 1.9.54.1 Tigers SmartShip: by isarray.com – 2.1.2 User Role Editor: by Vladimir Garagulya – 4.57 User Switching: by John Blackbourn & contributors – 1.5.6 WC Secondary Product Thumbnail: by Hendy Tarnando – 1.3.2 – Installed version not tested with active version of WooCommerce 4.7.0 Preview E-mails for WooCommerce: by Digamber Pradhan – 1.6.6 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce Additional Variation Images: by WooCommerce – 1.7.26 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce Bulk Order Form: by Ewout Fernhout Varun Sridharan Jeremiah Prummer – 3.3.7 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce Dynamic Pricing: by Lucas Stark – 3.1.22 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce Authorize.Net Gateway: by SkyVerge – 3.3.1 (update to version 3.3.2 is available) – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce Google Analytics Integration: by WooCommerce – 1.4.24 – Installed version not tested with active version of WooCommerce 4.7.0 Pinterest for WooCommerce: by premmerce – 2.2.0 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce UPS Shipping: by WooCommerce – 3.2.29 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce Smart Coupons: by StoreApps – 4.12.2 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce Table Rate Shipping: by WooCommerce – 3.0.30 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce Wholesale Prices Premium: by Rymera Web Co – 1.17 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce Wholesale Prices: by Rymera Web Co – 1.12.1 – Installed version not tested with active version of WooCommerce 4.7.0 WooCommerce: by Automattic – 4.7.0 AeroCheckout: Custom WooCommerce Checkout Pages: by WooFunnels – 2.0.10 – Installed version not tested with active version of WooCommerce 4.7.0 Yoast SEO: by Team Yoast – 15.3 WP All Export Pro: by Soflyy – 1.6.2 WP All Import Pro: by Soflyy – 4.6.5 WP Rocket: by WP Media – 3.7.5 Smush Pro: by WPMU DEV – 3.5.1 WP All Import - WooCommerce Add-On Pro: by Soflyy – 3.2.5 – Installed version not tested with active version of WooCommerce 4.7.0 YITH WooCommerce Frequently Bought Together Premium: by YITH – 1.7.0 – Installed version not tested with active version of WooCommerce 4.7.0 Zapier for WordPress: by Zapier – 1.0.2 ### Inactive Plugins (6) ### Advanced Coupons for WooCommerce Free: by Rymera Web Co – 1.3.2 Product Feed PRO for WooCommerce: by AdTribes.io – 9.1.4 Tigers SmartShip: by isarray.com – 2.0.14 Tigers SmartShip: by isarray.com – 2.0.7 WP All Import - User Import Add-On Pro: by Soflyy – 1.1.4 WP Mail SMTP: by WPForms – 2.5.1 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (6) ### Elementor Safe Mode: by Elementor.com – 1.0.0 Force Strong Passwords - WPE Edition: by Jason Cosper – 1.6.4 ManageWP - Worker Loader: by GoDaddy – WP Engine Seamless Login Plugin: by WP Engine – 1.5.5 WP Engine Security Auditor: by wpengine – 1.0.9 WP Engine System: by WP Engine – 4.1.0 ### Settings ### API Enabled: ? Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: bundle (bundle) external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-filtered (exclude-from-filtered) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: ? Page not set Cart: ? Page does not contain the shortcode. Checkout: ? Page does not contain the shortcode. My account: #109 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: John F Schuster Woocomerce Version: 1.0.1 Author URL: https://johnfschuster.com Child Theme: ? Parent Theme Name: Hello Elementor Parent Theme Version: 2.3.0 Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash WooCommerce Support: ? ### Templates ### Overrides: John F Schuster Woocomerce Custom/woocommerce/content-product.php John F Schuster Woocomerce Custom/woocommerce/emails/customer-completed-order.php John F Schuster Woocomerce Custom/woocommerce/emails/customer-invoice.php John F Schuster Woocomerce Custom/woocommerce/emails/email-footer.php John F Schuster Woocomerce Custom/woocommerce/emails/email-header.php John F Schuster Woocomerce Custom/woocommerce/emails/email-order-details.php John F Schuster Woocomerce Custom/woocommerce/emails/email-styles.php John F Schuster Woocomerce Custom/woocommerce/loop/add-to-cart.php John F Schuster Woocomerce Custom/woocommerce/loop/loop-end.php John F Schuster Woocomerce Custom/woocommerce/loop/loop-start.php John F Schuster Woocomerce Custom/woocommerce/loop/no-products-found.php John F Schuster Woocomerce Custom/woocommerce/loop/orderby.php John F Schuster Woocomerce Custom/woocommerce/loop/pagination.php John F Schuster Woocomerce Custom/woocommerce/loop/price.php John F Schuster Woocomerce Custom/woocommerce/loop/rating.php John F Schuster Woocomerce Custom/woocommerce/loop/result-count.php John F Schuster Woocomerce Custom/woocommerce/loop/sale-flash.php John F Schuster Woocomerce Custom/woocommerce/single-product/add-to-cart/external.php John F Schuster Woocomerce Custom/woocommerce/single-product/add-to-cart/grouped.php John F Schuster Woocomerce Custom/woocommerce/single-product/add-to-cart/simple.php John F Schuster Woocomerce Custom/woocommerce/single-product/add-to-cart/variable.php John F Schuster Woocomerce Custom/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php John F Schuster Woocomerce Custom/woocommerce/single-product/add-to-cart/variation.php John F Schuster Woocomerce Custom/woocommerce/single-product/meta.php John F Schuster Woocomerce Custom/woocommerce/single-product/photoswipe.php John F Schuster Woocomerce Custom/woocommerce/single-product/price.php John F Schuster Woocomerce Custom/woocommerce/single-product/product-attributes.php John F Schuster Woocomerce Custom/woocommerce/single-product/product-image.php John F Schuster Woocomerce Custom/woocommerce/single-product/product-thumbnails.php John F Schuster Woocomerce Custom/woocommerce/single-product/rating.php John F Schuster Woocomerce Custom/woocommerce/single-product/related.php John F Schuster Woocomerce Custom/woocommerce/single-product/review-meta.php John F Schuster Woocomerce Custom/woocommerce/single-product/review-rating.php John F Schuster Woocomerce Custom/woocommerce/single-product/review.php John F Schuster Woocomerce Custom/woocommerce/single-product/sale-flash.php John F Schuster Woocomerce Custom/woocommerce/single-product/share.php John F Schuster Woocomerce Custom/woocommerce/single-product/short-description.php John F Schuster Woocomerce Custom/woocommerce/single-product/stock.php John F Schuster Woocomerce Custom/woocommerce/single-product/tabs/additional-information.php John F Schuster Woocomerce Custom/woocommerce/single-product/tabs/description.php John F Schuster Woocomerce Custom/woocommerce/single-product/tabs/tabs.php John F Schuster Woocomerce Custom/woocommerce/single-product/title.php John F Schuster Woocomerce Custom/woocommerce/single-product/up-sells.php ### Authorize.Net Credit Card ### Environment: Production Tokenization Enabled: ? Debug Mode: Off Webhooks Enabled: ? No signature key configured ### Action Scheduler ### Complete: 6,295 Oldest: 2020-10-23 13:54:04 -0700 Newest: 2020-11-23 12:47:10 -0800 Failed: 1 Oldest: – Newest: – Pending: 2 Oldest: 2020-11-23 13:02:08 -0800 Newest: 2020-11-23 13:02:10 -0800
Thanks for that! This kind of problem is usually caused by either a conflict with your theme or with another plugin.
?
The best way to determine this is to:- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
We ran through plugin conflicts and this seems to be a issue with default woocommerce. Nothing is really broken it just seems this is not a setting. The sales badge displays on all products in a variation even the ones that are not on sale. Is there a way to change this?
Thanks for reporting that – I did a test on my local site and I do see that a variable product will say sale, even if just one variation is on sale. Your best bet here would be a code customization, you should be able to change this as a theme override
Hey there, since I haven’t heard back from you in awhile I’ll mark this thread as resolved now. If you have any further questions, I recommend creating a new thread.
Hi! @davidw09 were you able to find a workaround on this?
Thank you
- The topic ‘remove sale badge from variations that are not on sale’ is closed to new replies.