{"id":17712,"date":"2024-02-29T13:46:55","date_gmt":"2024-02-29T13:46:55","guid":{"rendered":"http:\/\/a8759758b2.nxcli.io\/?post_type=docs&#038;p=17712"},"modified":"2026-09-08T17:09:08","modified_gmt":"2026-09-08T17:09:08","password":"","slug":"comment-rafraichir-les-statistiques-pour-les-commandes-anterieures","status":"publish","type":"docs","link":"https:\/\/couponaffiliates.com\/fr\/docs\/how-to-refresh-statistics-for-past-orders\/","title":{"rendered":"Comment rafra\u00eechir les statistiques pour les commandes ant\u00e9rieures ?"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Si vous avez apport\u00e9 des modifications mais que vous souhaitez que les commandes pass\u00e9es soient mises \u00e0 jour en fonction des nouveaux taux, vous devrez peut-\u00eatre actualiser les statistiques.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Warning: this will refresh stats for past orders, unless you have enabled the option &#8220;Never update the saved &#8220;commission&#8221; value for past orders.&#8221; in the Debug settings tab.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can refresh statistics from Debug (all coupons), a single order, View Affiliate, or the coupon edit screen.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which refresh recalculates a saved order commission?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you have enabled <a href=\"https:\/\/couponaffiliates.com\/fr\/documents\/ne-jamais-mettre-a-jour-la-commission-sauvegardee\/\">&#8220;Never update the saved &#8220;commission&#8221; value for past orders&#8221;<\/a> in the Debug settings tab, the different refresh tools behave differently:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Debug &rarr; Refresh All Data<\/strong> &ndash; Flags every coupon so its statistics are rebuilt the next time the affiliate dashboard or a report is loaded. It does not recalculate anything immediately.<\/li>\n\n\n\n<li><strong>Coupon edit \/ View Affiliate &rarr; Refresh Statistics<\/strong> &ndash; Rebuilds that coupon&#8217;s totals from its orders straight away. With the &#8220;never update&#8221; option enabled, each order&#8217;s already-saved commission is reused rather than recalculated, so an incorrect saved figure stays as it is. To correct it, switch the option off, run Refresh Statistics, then switch it back on if you want past orders protected again.<\/li>\n\n\n\n<li><strong>Per order (Coupon Affiliate box &rarr; Recalculate)<\/strong> &ndash; Deletes that order&#8217;s saved commission and statistics and rebuilds them from scratch. This works even when the &#8220;never update&#8221; option is enabled, and is the quickest fix for a single order with a wrong figure.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If a commission figure looks wrong, hover the commission amount in the Coupon Affiliate box on the order first &ndash; it shows a breakdown of the rate used and any fixed per-order or per-product amounts. See <a href=\"https:\/\/couponaffiliates.com\/fr\/documents\/commission-breakdown-on-orders\/\">Commission breakdown on orders<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What a refresh does not change<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">An affiliate&#8217;s <strong>Commission non r\u00e9mun\u00e9r\u00e9e<\/strong> is a running balance rather than a calculated figure. It is added to once, when an order reaches the payout status, and after that it is only changed by payouts, refunds, rewards, the grant and deduct links on an order, and manual edits. No refresh recalculates it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So if an order granted the wrong amount, recalculating that order corrects the order&#8217;s own figures, but the amount already added to the balance stays as it is. To correct it, edit the <strong>Commission non r\u00e9mun\u00e9r\u00e9e<\/strong> value on the coupon and tick the confirmation checkbox underneath before saving. See <a href=\"https:\/\/couponaffiliates.com\/fr\/documents\/comment-modifier-une-commission-non-payee-dun-affilie\/\">Comment modifier la \"commission non pay\u00e9e\" d'un affili\u00e9 ?<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A full <strong>Refresh Statistics<\/strong> does re-sum the <strong>Processing<\/strong> commission, but the Unpaid figure is only re-read from what is stored.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If a figure still looks wrong after a refresh, check whether it is a reported statistic (Sales, Commission, Processing) or the unpaid balance, as the two come from different places.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Debug (all coupons)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can refresh stats for all your coupons in the <strong>Debug<\/strong> settings tab:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/couponaffiliates.com\/wp-content\/uploads\/2024\/02\/6c23b6edece8c94c34afc6a0d4fbc4a1-1024x670.png\" alt=\"Refresh stats for all coupons in the Debug settings tab\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Per order<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can also refresh the stats for a specific order from the Coupon Affiliate box, using the <strong>Recalculate<\/strong> button:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/couponaffiliates.com\/wp-content\/uploads\/2024\/02\/9db8b84107954333d409d7ee19f746de.png\" alt=\"Refresh affiliate stats for a specific WooCommerce order\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">View Affiliate<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On <a href=\"https:\/\/couponaffiliates.com\/fr\/documents\/afficher-et-gerer-les-utilisateurs-affilies\/\">View Affiliate<\/a>, use <strong>Refresh Statistics<\/strong> to recalculate a coupon&#8217;s all-time statistics. It runs with a live progress bar. You can refresh one coupon, or several selected coupons at once. The coupons table updates as each one completes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If a coupon still needs calculating, the notice on View Affiliate has a button that opens Refresh Statistics. The notice is hidden once the refresh completes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Coupon edit<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On the coupon edit screen, <strong>Refresh Statistics<\/strong> is on the Coupon Affiliates box. It recalculates that coupon&#8217;s statistics immediately from the admin area, with a live progress bar.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After it finishes, the all-time Sales, Commission and Processing figures on that box update. The Unpaid figure is re-read from what is stored rather than recalculated &ndash; see &#8220;What a refresh does not change&#8221; above.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Reset Start Date<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On the coupon edit screen, <strong>Reset Start Date<\/strong> sets the coupon&#8217;s history start date and recalculates its statistics in one step. Changing the Coupon History Start Date also triggers a statistics refresh.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See <a href=\"https:\/\/couponaffiliates.com\/fr\/documents\/fixer-la-date-de-debut-de-lhistorique-des-coupons\/\">D\u00e9finir la date de d\u00e9but de l'historique des coupons<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>If you made changes but want past orders to be updated to the new rates, then you may need to refresh the statistics. Warning: this will refresh stats for past orders, unless you have enabled the option &#8220;Never update the saved &#8220;commission&#8221; value for past orders.&#8221; in the Debug settings tab. You can refresh statistics [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","footnotes":"","_links_to":"","_links_to_target":""},"doc_category":[25],"doc_tag":[],"class_list":["post-17712","docs","type-docs","status-publish","hentry","doc_category-support","wpbf-post"],"year_month":"2026-09","word_count":649,"total_views":"2691","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"display_name":"Elliot Sowersby","author_link":"#"},"doc_category_info":[{"term_name":"General Questions + Help","term_url":"https:\/\/couponaffiliates.com\/fr\/docs-category\/support\/"}],"doc_tag_info":[],"taxonomy_info":{"doc_category":[{"value":25,"label":"General Questions + Help"}]},"featured_image_src_large":false,"comment_info":0,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/couponaffiliates.com\/fr\/wp-json\/wp\/v2\/docs\/17712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/couponaffiliates.com\/fr\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/couponaffiliates.com\/fr\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/couponaffiliates.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/couponaffiliates.com\/fr\/wp-json\/wp\/v2\/comments?post=17712"}],"version-history":[{"count":13,"href":"https:\/\/couponaffiliates.com\/fr\/wp-json\/wp\/v2\/docs\/17712\/revisions"}],"predecessor-version":[{"id":25183,"href":"https:\/\/couponaffiliates.com\/fr\/wp-json\/wp\/v2\/docs\/17712\/revisions\/25183"}],"wp:attachment":[{"href":"https:\/\/couponaffiliates.com\/fr\/wp-json\/wp\/v2\/media?parent=17712"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/couponaffiliates.com\/fr\/wp-json\/wp\/v2\/doc_category?post=17712"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/couponaffiliates.com\/fr\/wp-json\/wp\/v2\/doc_tag?post=17712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}