Advanced Dynamic Pricing For WooCommerce

Cart FAQ – Discounts & Pricing Rules in Cart

This guide addresses the most frequent questions and issues related to discounts and pricing rules displayed in the WooCommerce cart. Whether you face performance slowdowns, incorrect totals, or unapplied discounts, you will find practical solutions here.

Note: This FAQ applies to both free and Pro versions of the Advanced Dynamic Pricing for WooCommerce plugin, unless a specific feature is indicated.


1. Performance and Freezing Issues

The plugin slows down my site or the cart page freezes.

The plugin recalculates prices on every page load to ensure accurate discounts. This process includes shipping cost recalculations, which can become resource‑intensive.

Solution:

  1. Navigate to Pricing Rules → Settings → Calculation.
  2. Enable the “Disable shipping calculation” parameter.
  3. Save the settings.

Disabling shipping calculation stops the plugin from recalculating shipping rates on each discount update, significantly improving performance.


2. Mini‑Cart Opens Unexpectedly on Page Load

After adding an item to the cart, the mini‑cart opens automatically, which disrupts the user experience.

Some themes or plugins try to display the mini‑cart immediately after a cart update. However, our plugin must rebuild the cart contents to apply correct prices, which can trigger this unwanted behaviour.

Solution:
Add the following PHP code to your child theme’s functions.php file or via the Code Snippets plugin:

This filter tells the plugin to exclude the woocommerce_add_to_cart hook from triggering the price recalculation and, consequently, the mini‑cart.


3. Total Price Incorrect Due to Quantity Divisions

The cart total is wrong because the product quantity cannot be equally divided (e.g., when applying percentage discounts on bundles).

This problem stems from WooCommerce’s default tax calculation method, which rounds taxes per line item instead of on the subtotal.

Solution:

  1. Go to WooCommerce → Settings → Tax → Tax options.
  2. Mark the checkbox “Round tax at subtotal level, instead of rounding per line”.
  3. Click Save changes.

This setting ensures that taxes are calculated on the total cart value, resolving quantity‑division discrepancies.


4. Prices Do Not Update When Quantity Changes in the Cart

The discount does not refresh when the customer clicks the quantity boxes in the cart.

By default, WooCommerce does not automatically recalculate cart totals when a customer changes the quantity. The page requires a reload.

Solution:
You need a separate plugin to add this functionality. We recommend trying the Ajax Cart AutoUpdate for WooCommerce plugin. It updates the cart totals dynamically without a page refresh.


5. “Free product can’t be added to the cart”

When trying to add a free product (price set to 0), the system shows the message: “Sorry, this product cannot be purchased.”

WooCommerce performs a basic validation on every product before adding it to the cart. It checks that the product is published, in stock, and has a defined price. For free products, you must explicitly set the price to 0.

Solution:

  1. Edit the product in the WordPress admin.
  2. Set the Regular price field to 0.
  3. Ensure the product status is Published and stock status is In stock.
  4. Save the product.

The product will now add to the cart without errors. The message does not relate to discount rules but to WooCommerce’s core product validation.


6. Cannot Change Quantity or Delete Item from Cart

The cart becomes unresponsive; changing quantity or removing items has no effect.

This is almost always a conflict with another plugin that also modifies cart items, such as a currency switcher, product bundle plugin, or another pricing tool.

Solution:

  1. Enable the plugin’s debug bar by going to Pricing Rules → Settings → Debug and checking “Show debug panel at bottom of the page”.
  2. Reproduce the issue on a cart or checkout page.
  3. Copy the debug information and, if needed, generate the JSON system report from Pricing Rules → Tools.
  4. Submit a support request with this data.

The debug panel helps identify the conflicting plugin.


7. “Add products to cart at normal cost and add coupon…” Option Does Not Create Coupons

You marked the checkbox “Add products to cart at normal cost and add coupon…”, but no coupons appear in the cart.

This feature converts dynamic discounts into coupon codes. However, WooCommerce has a global setting that completely disables the coupon system.

Solution:

  1. Go to WooCommerce → Settings → General.
  2. Mark the checkbox “Enable the use of coupon codes”.
  3. Click Save changes.

After enabling this setting, the plugin can generate the coupons correctly. The option is located in the Cart Adjustments section when you edit a pricing rule.


8. How to Allow Customers to Select a Free Product

You want customers to choose their own free product as part of a promotion (e.g., “Buy one, get one free”).

Advanced Dynamic Pricing supports this through a Package rule.

Solution:

  1. Create a Package rule in the Rules tab.
  2. Set the free product price to 0.
  3. Configure the rule conditions according to your promotion (e.g., “Buy product A, get product B for free”).
  4. The customer will be able to select the free product from a list.

For a working example, see the third example in the Package rule documentation.


9. Why Doesn’t My Discount Rule Apply?

You created a rule, but the discount does not appear on the product page or in the cart.

Follow this systematic checklist to find the cause.

  1. Check your rule settings for mistakes – Ensure all required fields are filled in, especially the discount amount and conditions.
  2. Verify the calculation discount mode – Go to Pricing Rules → Settings → Calculations. The “How to apply rules to a product that already has a sale price” setting determines how the plugin handles products already on sale. If your product has a sale price, the plugin might compare your rule’s discount with the existing sale discount and apply only the better one.
  3. Use the debug bar – Enable the debug panel (see Section 6). The debug bar shows you exactly which rules apply to each product and their calculated prices.
  4. Check for custom code in your theme – Some themes include their own pricing modifications. Temporarily switch to a default theme (e.g., Storefront) to test. If the rule works, the issue lies in your theme.
  5. Look for conflicts with other pricing plugins – Deactivate all other pricing or discount plugins and test again. Leave only Advanced Dynamic Pricing active. If the rule works, gradually reactivate the other plugins to find the conflict.

For a deeper dive, refer to the full guide: Why the Rule Doesn’t Apply.


10. Price Calculation Is Correct, but the Discount Does Not Display

The discount applies correctly in the cart total, but the product page still shows the original price without the discount badge.

This is a display issue, not a calculation error. The product page uses different rendering logic than the cart.

Possible causes:

  • Theme conflict – Your theme may not support the hooks that display the discount badge. Test with a default theme.
  • Sale price override – If the product already has a WooCommerce sale price, the plugin might apply the discount but not overwrite the sale badge. Adjust the calculation mode (see Section 9, step 2).

11. Multiple Discounts Apply on the Same Product

The plugin applies more than one discount rule to the same product, resulting in excessive stacking.

The plugin follows a strict rule application order. Only one discount per rule type applies to a product. For example:

  • Only one Simple discount can affect a product.
  • Only one Bulk discount can affect a product.

However, different rule types can stack. For instance, a role‑based discount and a cart‑total discount can both apply to the same product.

To control stacking:

  • Rearrange rule priority by dragging and dropping rules in the Rules list. Rules higher in the list have higher priority.
  • Use the Limits section in each rule to prevent stacking (e.g., “Do not apply if other discounts exist”).
  • For BOGO and Package rules, use the “Can be applied: once” option to prevent multiple applications.

12. Excluding Products Already on Sale from Dynamic Pricing

You want the plugin to ignore products that already have a WooCommerce sale price, so discounts do not stack.

The plugin does not have a global “exclude sale items” button. However, you can achieve this using Product Collections (Pro version).

Solution using Product Collections:

  1. Create a Product Collection that includes only products without a sale price.
  2. Apply your pricing rule to that collection.

For the free version, you can create a category called “On Sale” and manually add sale products to it. Then exclude that category from your pricing rules.


13. Still Having Issues?

If the steps above do not resolve your problem:

  • Enable the debug panel and note any errors.
  • Generate the JSON system report (Pricing Rules → Tools → System report).
  • Submit a support request through our helpdesk. Include:

Our support team is always happy to help.

Have questions? Please submit a support request. We're always happy to help!

Advanced Dynamic Pricing
for WooCommerce
PRO

From $60
Buy
✓ 30-day money-back guarantee