Symptom:
Product preview when product in draft mode will give 404 error
Detail:
1. Vendor register as affiliate (there is no problem if vendor has no wcfm_affiliate role)
2. Vendor publishes product in draft mode
3. Vendor tries to preview product (in draft mode)
-> 404 error page not found error
ENV:
WP: 5.2.4
WCFM – WooCommerce Frontend Manager: 6.4.6
WCFM – WooCommerce Frontend Manager – Affiliate: 1.2.3
WCFM – WooCommerce Frontend Analytics – 2.2.3
WCFM – WooCommerce Frontend Manager – Groups & Staffs: 3.4.0
WCFM – WooCommerce Frontend Manager – Ultimate: 6.3.3
WCFM – WooCommerce Multivendor Marketplace: 3.3.6
WCFM – WooCommerce Multivendor Membership: 2.8.3
WCFM – WooCommerce Multivendor Marketplace – Elementor 1.1.1