| 开发者 |
addweb-solution-pvt-ltd
ravivaddweb saurabhdhariwal Addweb Solution Pvt. Ltd. |
|---|---|
| 更新时间 | 2026年11月27日 21:00 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[wptoh_orders] shows the customer's order summary, orders (table or cards, with products and Buy again), last order, favourites or a single figure, on any page.wc-past-orders folder to /wp-content/plugins/. WooCommerce must be active.Yes. It works with HPOS on or off, using WooCommerce's own order functions. With HPOS, use WooCommerce 8.2 or later (the version in which HPOS became stable); with the classic order storage, WooCommerce 7.0 or later.
Guest orders are matched by billing email. A registered customer's history also includes guest orders placed with the email address of their account, and a guest order placed with a registered customer's account email shows that customer's history. Emails typed at checkout are not verified, so treat the matching as a helpful guide.
Paid orders (processing and completed), before refunds, as in WooCommerce's own customer figures. When a customer has refunds, the pop-up also shows "Net spent" after refunds.
The Orders and Total spent columns in Users > All Users show WooCommerce's own figures for the customer account. The order history also includes guest orders placed with the same email address.
On the My Account dashboard: their order summary with date filters, their latest orders with a "Buy again" button, and their favourite products. The Orders page gets the same date filters and a "Buy again" button. Customers only see the orders of their own account; staff notes, risk warnings and VIP labels are never shown to them. Each feature can be turned off in WooCommerce > Order History.
Use the shortcode [wptoh_orders]. The easiest way is the Shortcode tab in WooCommerce > Order History: choose what to show, check the live preview and copy the shortcode. Paste it into a Shortcode block, or the shortcode element of Elementor, Bricks, Divi (Code or Text module) or WPBakery (Text block). Main options: show (summary, orders, last_order, favourites, stat), range, filters, limit, layout (table or cards), products, buy_again, stat, guest (login, message or hide). Visitors who are not logged in see a login button by default.
Yes. WooCommerce > Order History has a master switch on the My Account tab (hides the summary, date filters, Buy again and favourites) and one on the Shortcode tab (every [wptoh_orders] on the site shows nothing, without editing the pages). Your other choices are kept for when you switch them back on. The admin features are not affected.
Yes. In WooCommerce > Order History > My Account, add your own CSS in the Custom CSS box (administrators, or anyone who may edit CSS). It loads on the My Account pages after the plugin's styles. The help text lists the class names to use.
No. It adds the products of the order to what is already in the cart, using WooCommerce's add to cart: quantities add up, and products that are out of stock or no longer available are skipped, with a message.
In WooCommerce > Order History > Customer badges, each badge has a rule: total spent, number of orders, both (AND) or either (OR). Badges are checked from top to bottom and the first one that matches is shown, so put your highest tier first. Only returning customers (2 or more orders) get a badge. Use the arrows to change the order, and "Add badge" for more tiers (up to 10).
Yes. Each badge (and the risk badge) can use one of the 13 ready-made badge designs, or an image you upload or choose from the Media Library. A small square PNG, JPG or WebP works best.
You choose which statuses are problem orders (cancelled, failed, refunded) and the rule: a number of problem orders (2 by default), a share of all the customer's orders (judged from 3 orders on), or both. The badge shows the number of problem orders; the pop-up always shows the details.
Notes of registered customers are stored in their user profile, notes of guests in one plugin option. Notes are never shown in the shop, but they are personal data: they are included in WordPress's personal data export and erase tools (Tools > Export / Erase Personal Data), so write them as you would write anything the customer may one day read. A suggested privacy policy text is added under Settings > Privacy. Notes are removed when you delete the plugin.
Users who can manage WooCommerce orders (shop managers and administrators). The history is only loaded for them.
It reads WooCommerce's orders and never changes them. It stores its settings, customer notes and cached figures (which expire after a day). No tables are added. Everything is removed when you delete the plugin.