Recalculate from Order Admin Fails to Recalc Discount %
-
When editing an order from the admin– adding or removing products (which already has a discount coupon applied) programmatically/automatically from this plugin), the Recalculate button does not recalculate the discount.
WooCommerce indicates this is not the expected behavior; normally Recalculate would adjust the percentage.
-
What are the settings of the applied coupon?
If you enable WP_DEBUG, do you get warnings/errors?
Here are 2 examples:
https://www.dropbox.com/s/sma6c787ki3nk8q/Screenshot%202018-04-05%2009.33.27.png?dl=0
https://www.dropbox.com/s/fwf0vyege5pw1z9/Screenshot%202018-04-05%2009.33.57.png?dl=0
No usage, customer, or misc restrictions or “Matching Products” rules.
From admin you must apply the coupon manually, is the coupon applied?
Yes, here’s a shot:
The coupon was applied previously when the customer checked out, but we are just editing the order to add a new product.
https://www.dropbox.com/s/c30klsoxiax6ssx/Screenshot%202018-04-05%2010.20.52.png?dl=0
Please send your WC System Status Report.
Also enable WP_DEBUG_LOG.
sorry for the delay.
### WordPress Environment ### Home URL: https://www.collegeshippingandstorage.com Site URL: https://www.collegeshippingandstorage.com WC Version: 3.3.4 Log Directory Writable: ? WP Version: 4.9.5 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_US ### Server Environment ### Server Info: Apache PHP Version: 7.0.28-0ubuntu0.16.04.1 PHP Post Max Size: 100 MB PHP Time Limit: 3600 PHP Max Input Vars: 1000 cURL Version: 7.47.0 OpenSSL/1.0.2g SUHOSIN Installed: – MySQL Version: 5.7.21 Max Upload Size: 50 MB Default Timezone is UTC: ? Default timezone is America/New_York - it should be UTC fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.3.4 WC Database Prefix: wp_ MaxMind GeoIP Database: ? Total Database Size: 8.45MB Database Data Size: 6.50MB Database Index Size: 1.95MB wp_woocommerce_sessions: Data: 0.21MB + Index: 0.01MB wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.00MB wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB wp_woocommerce_order_items: Data: 0.03MB + Index: 0.03MB wp_woocommerce_order_itemmeta: Data: 0.71MB + Index: 0.25MB wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB wp_commentmeta: Data: 0.02MB + Index: 0.03MB wp_comments: Data: 0.09MB + Index: 0.09MB wp_gf_addon_feed: Data: 0.02MB + Index: 0.02MB wp_gf_addon_payment_callback: Data: 0.02MB + Index: 0.02MB wp_gf_addon_payment_transaction: Data: 0.02MB + Index: 0.05MB wp_links: Data: 0.00MB + Index: 0.00MB wp_options: Data: 1.09MB + Index: 0.06MB wp_postmeta: Data: 1.52MB + Index: 0.81MB wp_posts: Data: 2.05MB + Index: 0.06MB wp_rg_form: Data: 0.00MB + Index: 0.00MB wp_rg_form_meta: Data: 0.01MB + Index: 0.00MB wp_rg_form_view: Data: 0.02MB + Index: 0.03MB wp_rg_incomplete_submissions: Data: 0.00MB + Index: 0.00MB wp_rg_lead: Data: 0.02MB + Index: 0.03MB wp_rg_lead_detail: Data: 0.02MB + Index: 0.06MB wp_rg_lead_detail_long: Data: 0.00MB + Index: 0.00MB wp_rg_lead_meta: Data: 0.00MB + Index: 0.00MB wp_rg_lead_notes: Data: 0.00MB + Index: 0.00MB wp_sg_fblike_popup: Data: 0.02MB + Index: 0.00MB wp_sg_html_popup: Data: 0.02MB + Index: 0.00MB wp_sg_image_popup: Data: 0.02MB + Index: 0.00MB wp_sg_popup: Data: 0.02MB + Index: 0.00MB wp_sg_popup_addons: Data: 0.02MB + Index: 0.02MB wp_sg_popup_addons_connection: Data: 0.02MB + Index: 0.00MB wp_sg_popup_settings: Data: 0.02MB + Index: 0.00MB wp_sg_shortCode_popup: Data: 0.02MB + Index: 0.00MB wp_signups: Data: 0.02MB + Index: 0.06MB wp_termmeta: Data: 0.00MB + Index: 0.01MB wp_terms: Data: 0.00MB + Index: 0.01MB wp_term_relationships: Data: 0.00MB + Index: 0.01MB wp_term_taxonomy: Data: 0.00MB + Index: 0.00MB wp_usermeta: Data: 0.42MB + Index: 0.22MB wp_users: Data: 0.02MB + Index: 0.05MB wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB wp_wc_download_log: Data: 0.00MB + Index: 0.00MB wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB wp_woocommerce_bundled_itemmeta: Data: 0.01MB + Index: 0.02MB wp_woocommerce_bundled_items: Data: 0.00MB + Index: 0.00MB wp_woocommerce_termmeta: Data: 0.00MB + Index: 0.00MB ### Post Type Counts ### acf-field: 25 acf-field-group: 1 attachment: 28 custom_css: 1 customize_changeset: 2 ff-customcode-item: 1 ff-options: 4 nav_menu_item: 7 page: 27 post: 2 product: 47 revision: 4 shop_coupon: 3 shop_order: 120 shop_order_refund: 14 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (24) ### Gravity Forms: by rocketgenius – 2.2.6 AceIDE: by AceIDE – 2.6.1 Advanced Custom Fields PRO: by Elliot Condon – 5.6.10 All in one Favicon: by Arne Franken – 4.6 Contact Form 7: by Takayuki Miyoshi – 5.0.1 Custom CSS: by FRESHFACE – 1.4.0 College Shipping and Storage (Private): by Naveen Ram HCIDev. – 1.0.0 Gravity Forms Authorize.Net Add-On: by rocketgenius – 2.4 Gravity Forms User Registration Add-On: by rocketgenius – 3.9 IM8 Exclude Pages: by intermedi8 ipm-frommen – 2.7 Popup Builder: by Sygnoos – 2.6.7.5 Really Simple SSL: by Rogier Lankhorst – 2.5.26 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.0.2 Simple Shortcodes: by simplethemes – 1.0.20 Velvet Blues Update URLs: by VelvetBlues.com – 3.2.8 WooCommerce Extended Coupon Features: by Soft79 – 2.6.2 WooCommerce Chained Products: by WooCommerce – 2.5.7 – 2.6.0 is available – Not tested with the active version of WooCommerce WooCommerce Authorize.Net CIM Gateway: by SkyVerge – 2.10.0 WooCommerce One Page Checkout: by Prospress Inc. – 1.5.4 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.1.6 WooCommerce Product Bundles: by SomewhereWarm – 5.7.7 WooCommerce: by Automattic – 3.3.4 WP-PageNavi: by Lester 'GaMerZ' Chan – 2.92 WPtouch Mobile Plugin: by WPtouch – 4.3.27 ### 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-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) ### WC Pages ### Shop base: #410 - /shop/ Cart: #411 - /cart/ Checkout: #412 - /checkout/ My account: #413 - /my-account/ Terms and conditions: #424 - /shipping-terms-and-conditions/ ### Theme ### Name: Skeleton Child Version: 2.0.1 Author URL: https://www.simplethemes.com Child Theme: ? Parent Theme Name: Smpl Skeleton Parent Theme Version: 2.1.1 Parent Theme Author URL: https://www.simplethemes.com WooCommerce Support: ? Not declared ### Templates ### Overrides: – ### Authorize.Net CIM ### Environment: Production Tokenization Enabled: Debug Mode: Save to Log Webhooks Enabled:
Error logging is avail through our WPEngine account.
And what does the log tell you? Any errors or warnings?
If you temporarily disable our plugin and try to recalculate such a failing order from admin, does the issue persist?
- This reply was modified 6 years, 7 months ago by Soft79.
- The topic ‘Recalculate from Order Admin Fails to Recalc Discount %’ is closed to new replies.