Support » Plugin: Pricing Deals for WooCommerce » If an individual use only coupon is added, pricing deal discount table remains

  • Resolved tandsmichael

    (@tandsmichael)


    If you have a pricing deal (lets say BOGO buy x get y free), and you add x products the pricing table appears on the basket page.

    If you then add an individual use only normal Woocommerce coupon, the pricing deal discount gets removed from the basket however the table showing the pricing deal that was previously applied remains, being confusing for the customer.

    The table remains even if the page itself is refreshed.

    It also seems that is the coupon was added before the pricing deal was valid (so <x products), the table still appears when it does become valid (>=x products) however the deal is not applied in the basket.

    The individual use only coupon does take priority over the pricing table (I assume this is intended).

    In addition an error message will always appear at the top of a basket page when the pricing rule criteria has been met saying ‘the individual use coupon has been applied and can’t be used in conjunction with other coupons’, this suggests the pricing deals code is trying to add the discount but only being stopped by Woocommerce (but still managing to display the table?), a confusing message for the customer nonetheless.

    I can only assume this plugin isn’t doing a check before it is applied to see if it can be applied before it tries to apply itself to the basket.

    This is using version 2.0.0.7

    • This topic was modified 8 months, 2 weeks ago by  tandsmichael. Reason: clarification
    • This topic was modified 8 months, 2 weeks ago by  tandsmichael.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author vark

    (@vark)

    Hi,
    The issues you are describing indicate something is getting in the way of Pricing Deals on your site….

    You likely have a memory, caching or module conflict issue.

    (A) Set your memory to a minimum of **512mb** , the de-facto memory standard (or greater!)
    (** Double-check ** the following, even if already set to 512mb.)
    (*) Memory should be *explicitly* set in *both* the php.ini (host) file,
    and in the wp-config.php file .
    – call your HOST to **Confirm or Set** the explicit setting of 512mb of memory in php.ini
    – update your wp-config.php file with a statement like this: define(‘WP_MEMORY_LIMIT’, ‘512M’);

    (B) Caching:

    Do you have a caching plugin (W3 Total Cache, etc)
    – If so, please **clear the caching plugin cache**. Test. **Turn off caching**. Test.
    – If that isn’t it, carry on…
    (Pricing Deals is happy, however, with ** WP Super Cache: by Automattic ** , which seems to keep up better )

    (C) if that’s not it , suggest a *full module conflict test*:

    To track down a module conflict, please follow these steps ** PRECISELY **:
    (1) Install and activate a maintenance mode plugin (if desired)
    (2) Then, DO ALL (*at the same time*):
    (-) do a full site backup!
    (-) deactivate ***all*** plugins except Woo, my plugin (and maintenance mode plugin)
    (-) ** switch to a clean default theme like 2019 **
    — (This removes all other possible conflicts.)
    (-) turn off all deals except the one we are examining.

    (3) ** test **
    (4) if good, add 1 module back in. ** Retest **
    (5) Repeat until conflict identified.

    ** This test depends on following the outlined steps fully. **

    Best,
    Vark

    (PS – If you do have a module conflict, it will likely boil down to choosing between the 2 conflicting modules…)

    I just tested it again on a fresh install and it is defiantly this plugin, the fresh install only included WooCommece (latest version), this plugin (again latest version) and a query monitor to debug.
    The coupon was set to Individual use only.
    The Cart Cross-Rule Limits rule was set to “No cart Rule Discount Limit”.

    The coupon used would show in the basket totals, with the price rule not in the totals, however the price rule table breaking down this discount still showed along with a Woocommece warning saying that the coupon has already been applied (it hadn’t) and can’t be used with other coupons (it was the only coupon being applied in the totals).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘If an individual use only coupon is added, pricing deal discount table remains’ is closed to new replies.