Troubleshooting
Find the symptom, then work down its checks in order. Most come down to TEST mode, the order of the rules, or a cached page.
Shoppers do not see the discount
- The rule says “TEST mode”. Super Speedy Ajax is in TEST mode. Click Go LIVE on the Discounts tab.
- The rule says “Scheduled” or “Ended”. Check its From and To dates against the site’s timezone in Settings > General.
- The rule says “Off”. Switch it on and save.
- A rule higher up the list matches the product. Only the first matching rule applies to a product, even when it leaves the price alone, for example a rule set to keep the product’s own sale price. Move the rule up, or exclude the product from the rule above.
- The product has its own sale price, and the rule is set to Keep the product’s own sale price. Choose “Use whichever is lower” or “Take the discount off the sale price as well” on the rule.
- The product has no regular price, or a fixed-price rule is above its regular price. A discount never raises a price.
- A cached page shows the old price. Purge the page cache, and check Purge the page cache when a sale starts or ends is ticked under Advanced. See Page cache purging.
- Price Discounts is switched off under Advanced > Add-ons on the Super Speedy Ajax settings page. The Discounts tab says so above the rules.
The discount shows, but sorting and the price filter ignore it
- The rule is set to Display only. Set How the discount is applied to Change each product’s sale price and save. See Real sale prices or display only.
- The sale has just started on a quiet site. The scheduled start runs on WP-Cron and can run a little late; until it does, the discount is shown but not yet written. Load any page of the site to prompt WP-Cron, or set up a real server cron.
- A filter plugin keeps its own index. It catches up as WooCommerce’s save hooks run. Watch the progress in the admin bar, or see Running the sale price updates.
The sale has ended, but products still show the sale price
- The scheduled end has not run yet. On a quiet site WP-Cron can run a little late. The hourly check also corrects it.
- The product is listed under “Edited since, not put back”. Someone changed its sale price during the sale, so the rule left it as they set it. Change it on the product screen or the Sale prices tab.
- The sale price was set on the Sale prices tab or on the product screen, not by a rule. Those belong to the product: remove them on the Sale prices tab.
- A cached page shows the old price. Purge the page cache.
A product got the wrong price back
- “When the sale ends” is set to “Remove the sale price”. Every product goes back to no sale price, whatever it had before the rule. Set it to “Put back each product’s previous sale price” for future sales.
- The product’s sale price was edited during the sale. It is listed under Edited since, not put back, and the rule did not touch it afterwards.
A product is missing from the Sale page
- The Sale page is a cached page. Purge the page cache.
- The theme builds its own Sale page from its own database query. It lists products a rule that changes sale prices has written, but not products a display-only rule discounts. Build the page with WooCommerce’s On Sale Products block, or use a rule that changes sale prices. See Sale pages and on-sale listings.
- The rule does not lower the product’s price, for example a fixed-price rule above its regular price, or a product that keeps its own sale price.
Progress in the admin bar stopped
The admin bar reads “Updating stopped: … The rest carries on in the background.” A request from your browser failed, for example after a timeout or a lost connection. Nothing needs doing: the prices are in place, and WooCommerce’s scheduled actions finish the remaining save hooks on WP-Cron. Open any wp-admin page and the browser runners pick up the rest as well.
If no progress appears at all, check Run sale price updates in the background under Advanced. With it ticked, the updates run on WP-Cron and show no progress in the admin bar.
The theme shows no countdown
Tick Show the theme’s sale countdown on the rule, give the rule a To date, and check the theme’s own countdown option is on. See Theme sale countdowns.
A free gift is charged in the basket
A price a theme or another plugin sets on a basket item, such as a free gift at 0, is kept by every rule. If a gift is still charged, check the gift plugin sets the item’s price in the basket, rather than adding the product at its normal price and discounting the basket.
The add-on says it needs Super Speedy Ajax
Price Discounts needs Super Speedy Ajax 1.9.3 or later, active. The notice links to your account to download it. Until it is installed and active, the add-on applies no discount.
Further reading
Written for Super Speedy Ajax – Price Discounts 0.4.3.
Comments