• Resolved w3craftsman

    (@w3craftsman)


    “WooCommerce – Gravity Forms Product Add-Ons” plugin sets price in ‘woocommerce_add_cart_item’ filter. But your plugin
    in /woo-integration/vtprd-parent-cart-validation.php in vtprd_maybe_before_calculate_totals() line 1276 sets it back to the regular price.
    How can I work around this problem?

    if ( ($vtprd_cart_item->product_discount_price_woo > 0) || ($vtprd_cart_item->unit_price < $value['data']->price) ) {
        //v1.0.9.3 pick up CATALOG-only discount when discountCoupon!!
    /*--- here -->*/    $value['data']->price = $vtprd_cart_item->unit_price; //$vtprd_cart_item->discount_price;    //
    }

    https://wordpress.org/plugins/pricing-deals-for-woocommerce/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author vark

    (@vark)

    Hi,
    Thanks for your query. The line of code you asked about is essential to the correct processing of Pricing Deals… so I think the conclusion would be that this a plugin conflict, and if you use Gravity Forms for pricing, you can’t use Pricing Deals as well…

    Update: I think you might try going into the Pricing Deal settings, and changing the “Unit Price Discountor Coupon Discount” to “Coupon Discount”

    Best,
    Vark

    Thread Starter w3craftsman

    (@w3craftsman)

    “Coupon discount” is selected and I deleted all “Pricing Deals Rules”. But result is same.
    I will comment this part of code.
    Please think about the solution, because Gravity Forms is popular plugin and somebody will have the same problem.

    Plugin Author vark

    (@vark)

    @w3craftsman,
    Thanks for your ideas about this. I’ve made a change, yet unpublished. If you’d like to test it out, please contact me via my support channel, and I’ll send a zip. http://www.varktech.com/support/
    Vark

    Plugin Author vark

    (@vark)

    Hi @w3craftsman,
    Thanks for contacting me privately about getting the fixed version. Sent it to you 3 days ago, haven’t heard back… Thumbs up or down???
    Vark

    Thread Starter w3craftsman

    (@w3craftsman)

    Hi.
    The bug isn’t fixed. I sent you test results privately.

    Plugin Author vark

    (@vark)

    Hi,
    I responded by saying that I’m shooting in the dark, as I don’t have the plugin (and if I did, I wouldn’t know how to set it up to match your setup). I proposed that if you have a test site set up with a copy of your production site, I could work in that environment to further test the issue.
    Best,
    Vark

    Plugin Author vark

    (@vark)

    Haven’t heard back in a couple of weeks, marking this as closed…

    Thread Starter w3craftsman

    (@w3craftsman)

    Hi,
    My client refused to use the plugin.
    Sorry to have bothered you.
    You can mark this as closed.

    Plugin Author vark

    (@vark)

    Hi,
    Would have been glad to resolve this.
    Best,
    Vark

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Bug with WooCommerce – Gravity Forms Product Add-Ons’ is closed to new replies.