Dokan uso dei coupon per il tutto il sito #12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://wordpress.org/support/topic/a-coupon-must-be-limited-to-a-vendor-product/
sostituirlo con un hook
per ora abbia modificato dokan-lite/includes/order/hook.php
// prevent non-vendor coupons from being added
/* add_filter( 'woocommerce_coupon_is_valid', array( $this, 'ensure_vendor_coupon' ), 10, 2 );*/
per ora ancora plugin modificato, ma è probabile che basti fare i n function.php del tema
add_filter( 'woocommerce_coupon_is_valid', false, 10, 2 );
o
add_filter( 'woocommerce_coupon_is_valid', false );