• Resolved MAMir

    (@mamir-1)


    to Resolve
    put // before the line add_filter( ‘woocommerce_coupon_is_valid’, array( $this, ‘ensure_vendor_coupon’ ), 10, 3 );
    where?
    dokan-lite\dokan-lite\includes\Order\Hooks.php

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter MAMir

    (@mamir-1)

    Previous address :
    dokan-lite/includes/class-order-manager.php
    new address :
    dokan-lite\dokan-lite\includes\Order\Hooks.php

    This Topic was created to help others
    If the plugin developers approve

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @mamir-1

    Yes! You have got it absolutely right.

    // prevent non-vendor coupons from being added
     add_filter( 'woocommerce_coupon_is_valid', [ $this, 'ensure_vendor_coupon' ], 10, 2 );
    

    This hook is right now available on wp-content\plugins\dokan-lite\includes\Order\Hooks.php this directory.

    Thanks for letting others know. Appreciate that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.