Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

webmaster.mid

Forum Replies Created

Viewing 4 posts - 31 through 34 (of 34 total)
  • Author
    Posts
  • webmaster.mid
    Participant

    Got it working through filter:

    add_filter( 'wcmp_vendor_coupon_types_valid_for_product', 'add_percent_coupon_type' );
    function add_percent_coupon_type( $types ){
    	$types[] = 'percent';
    	return $types;
    }
    Copy
    webmaster.mid
    Participant

    Hello! I’m experiencing same issue. Has this been fixed?

    webmaster.mid
    Participant

    Hi Ninja
    actually I have added that coupon logged in as a vendor for dure.
    maybe we might facing another problem, propably related to membership.

    We updates all plugins on our test environment before post that reply
    first check our plugin versions

    WordPress: 5.7.2
    Woocommerce: 5.4.1
    WCMp: 3.7.4
    Membership: 2.3

    1° The vendor sucefully applied to a membership that allows “publish coupons” (Test Membership)
    (screenshot_1)
    (screenshot_2)

    2° Even with this, the vendo can’t publish coupon, just send to review (maybe thats the problem)
    505 parcentage discount
    restriction: some categories
    (screenshot_3)

    3° Marketplace must accept that coupon

    4° When we try to apply that coupon, that discount goes to every single product with the same category (from all vendors)

    I believe that when the coupon is approved by marketplace its ownership goes to marketplace himself.

    could you help us?
    can you test if yo ucan create and publish a coupon as a vendor an test that hypothesis?

    webmaster.mid
    Participant

    Hi. This error is happening on line 335 of file wcmp-sub_vendor/classes/class-wcmp-sub-vendor.php.

    The function is not receiving parameter $emails, resetting all WC e-mails.

    // Email template added
    function wcmp_sub_vendor_email_setup($emails) {
    require_once( ’emails/class-sub-vendor-email.php’ );
    $emails[‘WCMP_Sub_Vendor_Email’] = new WCMP_Sub_Vendor_Email();
    return $emails;
    }

Viewing 4 posts - 31 through 34 (of 34 total)