Title: davecodes's Replies | WordPress.org

---

# davecodes

  [  ](https://wordpress.org/support/users/davecodes/)

 *   [Profile](https://wordpress.org/support/users/davecodes/)
 *   [Topics Started](https://wordpress.org/support/users/davecodes/topics/)
 *   [Replies Created](https://wordpress.org/support/users/davecodes/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/davecodes/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/davecodes/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/davecodes/engagements/)
 *   [Favorites](https://wordpress.org/support/users/davecodes/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How do I get the pay invoice page to update order totals like the checkout page?](https://wordpress.org/support/topic/how-do-i-get-the-pay-invoice-page-to-update-order-totals-like-the-checkout-page/)
 *  Thread Starter [davecodes](https://wordpress.org/support/users/davecodes/)
 * (@davecodes)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/how-do-i-get-the-pay-invoice-page-to-update-order-totals-like-the-checkout-page/#post-15753539)
 * Thanks for the reply [@maykato](https://wordpress.org/support/users/maykato/)
   I checked with them first, and they said in order to add that functionality with
   their plugin would require custom work. I figured out how to add the functionality
   myself, but the problem is it only adds the fee on the initial load of the page.
   I was wondering if there was a way to get the invoice order payment page to refresh
   the same way the checkout page does. That much seems to be out of the scope of
   the fees & discounts plugin. If not, I can always keep plugging away at a custom
   solution, but hoping there is some insight that could help me with it. Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] How do I get the pay invoice page to update order totals like the checkout page?](https://wordpress.org/support/topic/how-do-i-get-the-pay-invoice-page-to-update-order-totals-like-the-checkout-page/)
 *  Thread Starter [davecodes](https://wordpress.org/support/users/davecodes/)
 * (@davecodes)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/how-do-i-get-the-pay-invoice-page-to-update-order-totals-like-the-checkout-page/#post-15753421)
 * The site is a distributor portal for actions. The customer will put in an order
   of let’s say 50 actions, and they aren’t charged until the actions are built.
   So the initial order doesn’t cost any money.
 * Next once the order is completed, the the wordpress admin goes into woocommerce
   > orders, and clicks on the order. The admin will add a fee to the order, then
   they will click the “email invoice/order details to customer” to send the email.
 * Next the customer receives the email and clicks the link to pay the invoice.
 * The customer is the brought to the payment page and this is where we want to 
   fee to work.
 * Here is the system report:
 *     ```
       ### WordPress Environment ###
   
       WordPress address (URL): https://zermattdistributorportal.kinsta.cloud
       Site address (URL): https://zermattdistributorportal.kinsta.cloud
       WC Version: 6.5.1
       REST API Version: ✔ 6.5.1
       WC Blocks Version: ✔ 7.7.0
       Action Scheduler Version: ✔ 3.4.0
       Log Directory Writable: ✔
       WP Version: 6.0
       WP Multisite: –
       WP Memory Limit: 256 MB
       WP Debug Mode: –
       WP Cron: ✔
       Language: en_US
       External object cache: –
   
       ### Server Environment ###
   
       Server Info: nginx/1.21.3
       PHP Version: 7.4.25
       PHP Post Max Size: 128 MB
       PHP Time Limit: 300
       PHP Max Input Vars: 10000
       cURL Version: 7.68.0
       OpenSSL/1.1.1g
   
       SUHOSIN Installed: –
       MySQL Version: 5.5.5-10.3.31-MariaDB-0ubuntu0.20.04.1
       Max Upload Size: 128 MB
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔
   
       ### Database ###
   
       WC Database Version: 6.5.1
       WC Database Prefix: wp_
       Total Database Size: 49.70MB
       Database Data Size: 33.42MB
       Database Index Size: 16.28MB
       wp_woocommerce_sessions: Data: 0.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: 0.14MB + Index: 0.08MB + Engine InnoDB
       wp_woocommerce_order_itemmeta: Data: 1.52MB + Index: 1.89MB + Engine InnoDB
       wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + 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: 1.06MB + Index: 0.20MB + 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: 0.16MB + Index: 0.13MB + Engine InnoDB
       wp_c4wp_failed_login_tracking: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_comments: Data: 0.38MB + Index: 0.38MB + Engine InnoDB
       wp_db7_forms: Data: 1.52MB + 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: 3.02MB + Index: 0.08MB + Engine InnoDB
       wp_postmeta: Data: 5.14MB + Index: 6.05MB + Engine InnoDB
       wp_posts: Data: 10.22MB + Index: 0.31MB + Engine InnoDB
       wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_term_relationships: Data: 2.52MB + Index: 1.52MB + Engine InnoDB
       wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_usermeta: Data: 2.50MB + Index: 2.80MB + Engine InnoDB
       wp_users: Data: 0.13MB + Index: 0.14MB + Engine InnoDB
       wp_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
       wp_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
       wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wc_customer_lookup: Data: 0.11MB + Index: 0.06MB + Engine InnoDB
       wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_order_product_lookup: Data: 0.14MB + Index: 0.19MB + Engine InnoDB
       wp_wc_order_stats: Data: 0.09MB + Index: 0.08MB + Engine InnoDB
       wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_product_attributes_lookup: Data: 0.09MB + Index: 0.08MB + Engine InnoDB
       wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_wc_product_meta_lookup: Data: 0.34MB + Index: 0.58MB + Engine InnoDB
       wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + 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_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_wfconfig: Data: 1.34MB + Index: 0.00MB + Engine InnoDB
       wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wffilemods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wfhits: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_wfknownfilelist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wflogins: Data: 0.20MB + Index: 0.06MB + Engine InnoDB
       wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB
       wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_yoast_indexable: Data: 1.50MB + Index: 0.41MB + Engine InnoDB
       wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + 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: 0.02MB + Index: 0.03MB + Engine InnoDB
   
       ### Post Type Counts ###
   
       attachment: 164
       b2bwhs_custom_field: 9
       b2bwhs_custom_role: 1
       b2bwhs_group: 2
       custom_css: 1
       customer-stories: 3
       customize_changeset: 38
       nav_menu_item: 8
       page: 18
       popup_theme: 8
       post_grid: 1
       post_grid_layout: 1
       product: 34
       product_variation: 107
       revision: 405
       shop_order: 722
       wp_global_styles: 1
       wpcf7_contact_form: 1
   
       ### Security ###
   
       Secure connection (HTTPS): ✔
       Hide errors from visitors: ✔
   
       ### Active Plugins (27) ###
   
       CAPTCHA 4WP (Premium): by WP White Security – 7.0.6
       Akismet Anti-Spam: by Automattic – 4.2.4
       B2B & Wholesale Suite: by WebWizards – 1.3.5
       Contact Form 7: by Takayuki Miyoshi – 5.5.6.1
       Contact Form CFDB7: by Arshid – 1.2.6.4
       Custom Post Type UI: by WebDevStudios – 1.12.1
       Duplicate Page: by mndpsingh287 – 4.4.8
       Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.4
       WooCommerce eProcessingNetwork Gateway (Pro): by Pledged Plugins – 4.1.8
       Getwid: by MotoPress – 1.8.1
       Site Kit by Google: by Google – 1.75.0
       Insert Headers and Footers: by WPBeginner – 1.6.2
       Mailchimp for WooCommerce: by Mailchimp – 2.6.2
       Media Library Assistant: by David Lingren – 2.99
       Fonts Plugin | Google Fonts Typography: by Fonts Plugin – 3.0.19
       Post Grid by PickPlugins: by PickPlugins – 2.1.23
       Checkout Field Editor for WooCommerce: by ThemeHigh – 1.6.1
       WooCommerce Blocks: by Automattic – 7.7.0
       WooCommerce Fees and Discounts: by Plugin Republic – 1.8.7
       WooCommerce MakeCents Gateway: by MakeCents – 1.2.0-debug7
       WooCommerce Nested Category Layout: by SkyVerge – 1.17.3
       WooCommerce Shipping & Tax: by WooCommerce – 1.26.0
       WooCommerce - ShipStation Integration: by WooCommerce – 4.1.48
       WooCommerce: by Automattic – 6.5.1 (update to version 6.6.0 is available)
       Wordfence Security: by Wordfence – 7.5.10
       Yoast SEO: by Team Yoast – 19.0
       Sequential Order Numbers for WooCommerce: by WebToffee – 1.4.6
   
       ### Inactive Plugins (0) ###
   
       ### Must Use Plugins (1) ###
   
       Kinsta Must-use Plugins: by Kinsta Team – 2.3.3
   
       ### Settings ###
   
       API Enabled: –
       Force SSL: –
       Currency: USD ($)
       Currency Position: left
       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 ###
   
       Shop base: #6 - /?page_id=6
       Cart: #7 - /?page_id=7
       Checkout: #8 - /?page_id=8
       My account: #9 - /?page_id=9
       Terms and conditions: ❌ Page not set
   
       ### Theme ###
   
       Name: Twenty Twenty/zermatt-website
       Version: 1.4
       Author URL: https://wordpress.org/
       Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
       WooCommerce Support: ❌ Not declared
   
       ### Templates ###
   
       Overrides: zermatt-website/woocommerce/archive-product.php
       zermatt-website/woocommerce/cart/cart-empty.php
       zermatt-website/woocommerce/cart/cart-item-data.php
       zermatt-website/woocommerce/cart/cart-shipping.php
       zermatt-website/woocommerce/cart/cart-totals.php
       zermatt-website/woocommerce/cart/cart.php
       zermatt-website/woocommerce/cart/cross-sells.php
       zermatt-website/woocommerce/cart/mini-cart.php
       zermatt-website/woocommerce/cart/proceed-to-checkout-button.php
       zermatt-website/woocommerce/cart/shipping-calculator.php
       zermatt-website/woocommerce/checkout/cart-errors.php
       zermatt-website/woocommerce/checkout/form-billing.php
       zermatt-website/woocommerce/checkout/form-checkout.php
       zermatt-website/woocommerce/checkout/form-coupon.php
       zermatt-website/woocommerce/checkout/form-login.php
       zermatt-website/woocommerce/checkout/form-pay.php
       zermatt-website/woocommerce/checkout/form-shipping.php
       zermatt-website/woocommerce/checkout/order-receipt.php
       zermatt-website/woocommerce/checkout/payment-method.php
       zermatt-website/woocommerce/checkout/payment.php
       zermatt-website/woocommerce/checkout/review-order.php
       zermatt-website/woocommerce/checkout/terms.php
       zermatt-website/woocommerce/checkout/thankyou.php
       zermatt-website/woocommerce/content-product-cat.php
       zermatt-website/woocommerce/content-product.php
       zermatt-website/woocommerce/content-single-product.php
       zermatt-website/woocommerce/content-widget-price-filter.php
       zermatt-website/woocommerce/content-widget-product.php
       zermatt-website/woocommerce/content-widget-reviews.php
       zermatt-website/woocommerce/emails/admin-cancelled-order.php
       zermatt-website/woocommerce/emails/admin-failed-order.php
       zermatt-website/woocommerce/emails/admin-new-order.php
       zermatt-website/woocommerce/emails/customer-completed-order.php
       zermatt-website/woocommerce/emails/customer-invoice.php
       zermatt-website/woocommerce/emails/customer-new-account.php version 3.7.0 is out of date. The core version is 6.0.0
       zermatt-website/woocommerce/emails/customer-note.php
       zermatt-website/woocommerce/emails/customer-on-hold-order.php
       zermatt-website/woocommerce/emails/customer-processing-order.php
       zermatt-website/woocommerce/emails/customer-refunded-order.php
       zermatt-website/woocommerce/emails/customer-reset-password.php
       zermatt-website/woocommerce/emails/email-addresses.php version 3.9.0 is out of date. The core version is 5.6.0
       zermatt-website/woocommerce/emails/email-customer-details.php
       zermatt-website/woocommerce/emails/email-downloads.php
       zermatt-website/woocommerce/emails/email-footer.php
       zermatt-website/woocommerce/emails/email-header.php
       zermatt-website/woocommerce/emails/email-order-details.php
       zermatt-website/woocommerce/emails/email-order-items.php
       zermatt-website/woocommerce/emails/email-styles.php
       zermatt-website/woocommerce/emails/plain/admin-cancelled-order.php
       zermatt-website/woocommerce/emails/plain/admin-failed-order.php
       zermatt-website/woocommerce/emails/plain/admin-new-order.php
       zermatt-website/woocommerce/emails/plain/customer-completed-order.php
       zermatt-website/woocommerce/emails/plain/customer-invoice.php
       zermatt-website/woocommerce/emails/plain/customer-new-account.php version 3.7.0 is out of date. The core version is 6.0.0
       zermatt-website/woocommerce/emails/plain/customer-note.php
       zermatt-website/woocommerce/emails/plain/customer-on-hold-order.php
       zermatt-website/woocommerce/emails/plain/customer-processing-order.php
       zermatt-website/woocommerce/emails/plain/customer-refunded-order.php
       zermatt-website/woocommerce/emails/plain/customer-reset-password.php
       zermatt-website/woocommerce/emails/plain/email-addresses.php version 3.4.0 is out of date. The core version is 5.6.0
       zermatt-website/woocommerce/emails/plain/email-customer-details.php
       zermatt-website/woocommerce/emails/plain/email-downloads.php
       zermatt-website/woocommerce/emails/plain/email-order-details.php
       zermatt-website/woocommerce/emails/plain/email-order-items.php
       zermatt-website/woocommerce/product-searchform.php
       zermatt-website/woocommerce/single-product/add-to-cart/external.php
       zermatt-website/woocommerce/single-product/add-to-cart/grouped.php
       zermatt-website/woocommerce/single-product/add-to-cart/simple.php
       zermatt-website/woocommerce/single-product/add-to-cart/variable.php version 3.5.5 is out of date. The core version is 6.1.0
       zermatt-website/woocommerce/single-product/add-to-cart/variation-add-to-cart-button.php
       zermatt-website/woocommerce/single-product/add-to-cart/variation.php
       zermatt-website/woocommerce/single-product/meta.php
       zermatt-website/woocommerce/single-product/photoswipe.php
       zermatt-website/woocommerce/single-product/price.php
       zermatt-website/woocommerce/single-product/product-attributes.php
       zermatt-website/woocommerce/single-product/product-image.php
       zermatt-website/woocommerce/single-product/product-thumbnails.php
       zermatt-website/woocommerce/single-product/rating.php
       zermatt-website/woocommerce/single-product/related.php
       zermatt-website/woocommerce/single-product/review-meta.php
       zermatt-website/woocommerce/single-product/review-rating.php
       zermatt-website/woocommerce/single-product/review.php
       zermatt-website/woocommerce/single-product/sale-flash.php
       zermatt-website/woocommerce/single-product/share.php
       zermatt-website/woocommerce/single-product/short-description.php
       zermatt-website/woocommerce/single-product/stock.php
       zermatt-website/woocommerce/single-product/tabs/additional-information.php
       zermatt-website/woocommerce/single-product/tabs/description.php
       zermatt-website/woocommerce/single-product/tabs/tabs.php
       zermatt-website/woocommerce/single-product/title.php
       zermatt-website/woocommerce/single-product/up-sells.php
       zermatt-website/woocommerce/single-product-reviews.php
       zermatt-website/woocommerce/single-product.php
       zermatt-website/woocommerce/taxonomy-product-cat.php
       zermatt-website/woocommerce/taxonomy-product-tag.php
       zermatt-website/woocommerce/content-product_cat.php
       zermatt-website/woocommerce/taxonomy-product_cat.php
       zermatt-website/woocommerce/taxonomy-product_tag.php
   
       Outdated Templates: ❌
   
   
       						Learn how to update
   
       ### Action Scheduler ###
   
       Complete: 497
       Oldest: 2022-05-20 15:47:11 +0000
       Newest: 2022-06-20 15:40:41 +0000
   
       Pending: 1
       Oldest: 2022-06-21 04:30:07 +0000
       Newest: 2022-06-21 04:30:07 +0000
   
       ### Status report information ###
   
       Generated at: 2022-06-20 15:44:11 +00:00
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)