Wrong discount percentage
-
Hello, I need help with the Woocommerce plugin.
I have a product that is variable and some of the variables are on sale and some are not. The promotional price is displayed as a percentage. However, the percentage is displayed incorrectly, more precisely it is displayed based on the highest price within the entire variable product instead of being displayed based on the variable that is on sale.
In the picture below, it can be seen that the product is variable. The red product is currently at a special price of 50 from the standard 100, which is a 50% discount. While the price of the blue product is 200 and it is not currently on sale. However, WooCommerce shows a percentage of -75% instead of -50%
-
This topic was modified 2 years, 5 months ago by
robiSM.
-
This topic was modified 2 years, 5 months ago by
-
Hello,
For better assistance, 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”.?
Are you using a plugin to set up discounts per variation? Can you provide a link to the product you are showing in the screenshots? That way we can check better, thank you.
Hello @ihereira ,
sorry for the late response I was out of the office. We are using the standard Woocommerce option for discounts. I can provide a link.
This is how the discount is setup, the other variation has no discount price.
Here is the System report:
### WordPress Environment ### WordPress address (URL): https://stivmed.hr Site address (URL): https://stivmed.hr WC Version: 7.0.0 REST API Version: ? 7.0.0 WC Blocks Version: ? 8.5.1 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 6.0.3 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: hr External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.32 PHP Post Max Size: 512 MB PHP Time Limit: 120 PHP Max Input Vars: 8000 cURL Version: 7.71.0 OpenSSL/1.1.1p SUHOSIN Installed: – MySQL Version: 10.3.36-MariaDB-log-cll-lve Max Upload Size: 512 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? Va? server nema uklju?enu klasu SoapClient - neki gateway pluginovi koji koriste SOAP mo?da ne?e pravilno raditi. DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.9.4 WC Database Prefix: wp_ Ukupna veli?ina baze podataka: 131.58MB Veli?ina podataka baze podataka: 115.81MB Indeks veli?ina baze podataka: 15.77MB wp_woocommerce_sessions: Data: 53.54MB + Index: 1.28MB + Engine MyISAM wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 0.09MB + Index: 0.04MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 0.56MB + Index: 0.39MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_actions: Data: 0.37MB + Index: 0.28MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Data: 0.32MB + Index: 0.21MB + Engine MyISAM wp_ahm_assets: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ahm_asset_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ahm_download_stats: Data: 0.03MB + Index: 0.00MB + Engine MyISAM wp_ahm_emails: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ahm_sessions: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_ahm_social_conns: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_ahm_user_download_counts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_aws_cache: Data: 3.00MB + Index: 0.00MB + Engine MyISAM wp_aws_index: Data: 4.46MB + Index: 4.24MB + Engine MyISAM wp_cli_cookie_scan: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cli_cookie_scan_categories: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cli_cookie_scan_cookies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cli_cookie_scan_url: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_cli_scripts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_commentmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_comments: Data: 0.08MB + Index: 0.04MB + Engine MyISAM wp_imagify_files: Data: 0.01MB + Index: 0.01MB + Engine MyISAM wp_imagify_folders: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_options: Data: 4.74MB + Index: 0.18MB + Engine MyISAM wp_postmeta: Data: 34.99MB + Index: 5.64MB + Engine MyISAM wp_posts: Data: 4.51MB + Index: 0.80MB + Engine MyISAM wp_revslider_css: Data: 0.09MB + Index: 0.01MB + Engine MyISAM wp_revslider_css_bkp: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_revslider_layer_animations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_layer_animations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_navigations: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_revslider_navigations_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_sliders: Data: 0.17MB + Index: 0.00MB + Engine MyISAM wp_revslider_sliders_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_slides: Data: 4.04MB + Index: 0.00MB + Engine MyISAM wp_revslider_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_revslider_static_slides: Data: 0.12MB + Index: 0.00MB + Engine MyISAM wp_revslider_static_slides_bkp: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_sib_model_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_sib_model_users: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_smush_dir_images: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_termmeta: Data: 0.08MB + Index: 0.07MB + Engine MyISAM wp_terms: Data: 0.06MB + Index: 0.11MB + Engine MyISAM wp_term_relationships: Data: 0.16MB + Index: 0.31MB + Engine MyISAM wp_term_taxonomy: Data: 0.07MB + Index: 0.07MB + Engine MyISAM wp_usermeta: Data: 0.06MB + Index: 0.02MB + Engine MyISAM wp_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_admin_notes: Data: 0.04MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_wc_category_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_product_lookup: Data: 0.08MB + Index: 0.07MB + Engine MyISAM wp_wc_order_stats: Data: 0.02MB + Index: 0.02MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_wc_product_attributes_lookup: Data: 0.03MB + Index: 0.05MB + Engine MyISAM wp_wc_product_download_directories: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_product_meta_lookup: Data: 0.09MB + Index: 0.16MB + Engine MyISAM wp_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wpr_rocket_cache: Data: 0.20MB + Index: 0.25MB + Engine MyISAM wp_wpr_rucss_used_css: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yith_wcwl: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_yith_wcwl_lists: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yoast_indexable: Data: 3.35MB + Index: 1.03MB + Engine MyISAM wp_yoast_indexable_hierarchy: Data: 0.07MB + Index: 0.20MB + Engine MyISAM wp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yoast_primary_term: Data: 0.06MB + Index: 0.07MB + Engine MyISAM wp_yoast_seo_links: Data: 0.21MB + Index: 0.06MB + Engine MyISAM ### Post Type Counts ### attachment: 5361 cookielawinfo: 6 custom_css: 1 mc4wp-form: 1 nav_menu_item: 106 oembed_cache: 11 page: 51 post: 212 product: 769 product_variation: 457 revision: 834 seedprod: 3 shop_order: 323 ts_footer_block: 2 ts_logo: 25 ts_portfolio: 67 ts_team: 1 wpcf7_contact_form: 2 wpcode: 2 wpdmpro: 13 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (26) ### ManageWP - Worker: od GoDaddy – 4.9.14 Template Library and Redux Framework: od Extendify – 4.3.19 Advanced Woo Search: od ILLID – 2.65 Classic Editor: od WordPress sudionici – 1.6.2 Contact Form 7: od Takayuki Miyoshi – 5.6.4 CookieYes | GDPR Cookie Consent: od CookieYes – 3.0.3 Download Manager: od W3 Eden Inc. – 3.2.58 Envato Market: od Envato – 2.0.7 Free Shipping Label: od Devnet – 2.4.3 Imagify: od Imagify - Optimize Images & Convert WebP – 2.0 WPCode - Insert Headers, Footers, and Code Snippets: od WPCode – 2.0.3 WPBakery Page Builder: od Michael M - WPBakery.com – 6.7.0 Loco Translate: od Tim Whitlock – 2.6.2 Newsletter, SMTP, Email marketing and Subscribe forms by Sendinblue: od Sendinblue – 3.1.52 MX WooCommerce HRK + EUR: od Media X – 2.0.2 One Click Demo Import: od OCDI – 3.1.2 Slider Revolution Bubblemorph AddOn: od ThemePunch – 3.0.5 Slider Revolution: od ThemePunch – 6.6.4 String Locator: od InstaWP – 2.6.0 ThemeSky: od ThemeSky Team – 1.1.5 Checkout Field Editor for WooCommerce: od ThemeHigh – 1.7.2 WooCommerce: od Automattic – 7.0.0 WordPress uvoznik: od wordpressdotorg – 0.8 Yoast SEO: od Tim Yoast – 19.8 WP Rocket: od WP Media – 3.12.1.1 YITH WooCommerce Wishlist: od YITH – 3.14.0 ### Inactive Plugins (0) ### ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (2) ### installatron_hide_status_test.php: od – ManageWP - Worker Loader: od GoDaddy – 1.0.0 ### Settings ### API Enabled: – Force SSL: – Currency: HRK (kn) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) 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: – Enforce Approved Product Download Directories: – ### WC Pages ### Osnova trgovine: #61812 - /prodajni-program/ Ko?arica: #52 - /lista-proizvoda/ Blagajna: #53 - /pregled-upita/ Moj ra?un: ? Vidljivost stranice trebala bi biti javna Odredbe i uvjeti: ? Stranica nije postavljena ### Theme ### Name: MyMedi Child Version: 1.0.0 Author URL: https://theme-sky.com/ Child Theme: ? Parent Theme Name: MyMedi Parent Theme Version: 1.3.4 Parent Theme Author URL: https://theme-sky.com/ WooCommerce Support: ? ### Templates ### Overrides: mymedi/woocommerce/archive-product.php mymedi/woocommerce/content-product-cat.php mymedi/woocommerce/content-product.php mymedi/woocommerce/content-widget-product.php mymedi/woocommerce/loop/add-to-cart.php mymedi/woocommerce/loop/loop-end.php mymedi/woocommerce/loop/loop-start.php mymedi/woocommerce/loop/orderby.php mymedi/woocommerce/loop/rating.php mymedi/woocommerce/single-product/add-to-cart/variable.php mymedi/woocommerce/single-product/rating.php mymedi/woocommerce/single-product/tabs/description.php mymedi/woocommerce/single-product/tabs/tabs.php mymedi/woocommerce/single-product.php ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour shipping-smart-defaults shipping-setting-tour homescreen marketing multichannel-marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: minified-js new-product-management-experience settings Daily Cron: ? Next scheduled: 2022-10-25 16:39:41 +02:00 Options: ? Notes: 108 Onboarding: completed ### Action Scheduler ### Dovr?i: 1.271 Oldest: 2022-10-25 08:49:23 +0200 Newest: 2022-10-25 04:32:27 +0200 Neuspjelo: 6 Oldest: – Newest: – U tijeku: 1 Oldest: – Newest: – U pripremi: 28 Oldest: -0001-11-30 01:22:00 +0122 Newest: 2022-10-31 15:44:59 +0100 ### Status report information ### Generated at: 2022-10-25 09:04:19 +02:00
-
This reply was modified 2 years, 5 months ago by
robiSM.
Here is another example where all variations have a different standard and discount price. The discount is stated as 89%, but not a single item is at such a high discount.
Hello @solidmindeu,
Thank you for providing all the information above.
After trying to replicate the problem locally I remembered that WooCommerce doesn’t show the discount in percentage but rather just a SALE badge.
I can see your theme is overriding some WooCommerce templates so this is probably added by the theme. I suggest reaching out to your theme author and seeing what they have to say about it as this is not a WooCommerce feature by default.
Let us know if we can help with something once you hear back from them.
Hello Saif,
Thank you for all the information. I’ll reach out to the theme author.
Cheers
-
This reply was modified 2 years, 5 months ago by
- The topic ‘Wrong discount percentage’ is closed to new replies.