Support » Plugin: Advanced Shipping Validation for WooCommerce » Problem with multiple conditions

  • Resolved barcinski

    (@barcinski)


    Hi,

    Great plugin, but I have a problem using this. When I’m trying to add more than one condition in group (for example country equal to Germany and product equal to some product) and press ‘Save’ button after page reload I’m getting error. Under the group I created I can see

    Notice: Undefined index: condition in /domeny/nowycybul/wp-content/plugins/advanced-shipping-validation-for-woocommerce/includes/admin/views/html-condition-group.php on line 19

    Notice: Undefined index: operator in /domeny/nowycybul/wp-content/plugins/advanced-shipping-validation-for-woocommerce/includes/admin/views/html-condition-group.php on line 19

    Condition with product has empty product. Inside group I have a new condition with Subtotal. When I remove Subtotal and choose product once again and press ‘Save’, error disappears.

    I noticed, that temporary solution is to add one condition at a time. Then press Save.

    Can you fix this? Or maybe I’m doing something wrong? My Woocomerce is 3.0.8 and WordPress 4.8.2

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeroen Sormani

    (@sormano)

    Hi,

    Would it be possible to post a short video of what you’re doing / seeing when the error occurs?

    I know a error like this *could* happen if someone changes the condition to something else, and saves the page while the ‘Value’ field is still loading (if its slow enough), but haven’t seen this before with the condition/operator fields.

    Also, could you update to the latest version of WC to confirm thats all good?

    Thank you,
    Jeroen

    Hi,

    Sorry for late response. Here you have screen of my actions and the error at the end

    Thank you,
    Marcin

    Plugin Author Jeroen Sormani

    (@sormano)

    Hi Marcin,

    Thank you for the video, it was really helpful!

    I’m actually very surprised no-one else has encountered this before – including myself actually. It seems to be occurring in my other plugins as well that use similar conditional settings.

    I’ve found that it only happens when adding a new condition group, and a new condition within that new group. A quick work-around would be to create the groups first and save them, then add the additional conditions, or just to re-save it after encountering that.

    I am working on a plugin update to ensure this gets resolved. I think I’ve found the proper solution, if you want to test it, this is a updated version of the plugin with the fix: https://we.tl/JkaNNl6ah3

    Thank you for reporting this and the help getting it resolved!

    Jeroen

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with multiple conditions’ is closed to new replies.