Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › Why cannot I add affiliate products?
- This topic has 12 replies, 2 voices, and was last updated 5 years, 3 months ago by WCFM Forum.
- AuthorPosts
- September 4, 2019 at 11:46 am #80011id.manageParticipant
I am trying to add products from frontend as an vendor.
I’m shown that I can add ‘simple products’ ‘external/affiliate product’ But I am not allowed to publish it as it says ‘External products cannot be stock managed’ .Please can I have this feature as I really need it for my platform.
Thanks.
- September 4, 2019 at 12:12 pm #80021WCFM ForumMember
HI,
But I am not allowed to publish it as it says ‘External products cannot be stock managed’ .
Where you are getting this message? Kindly show me screenshot please.
Thank You
- September 4, 2019 at 12:59 pm #80042id.manageParticipantThis reply has been marked as private.
- September 4, 2019 at 1:28 pm #80048WCFM ForumMember
Hi,
Do yo have custom code to enable “manage stock” by default enable for all products – https://ibb.co/x5nqqR5
Or, you had added this product before using “Manage Stock” enable then changed it’s product type to “External”?
Well, in simple word, “manage stock” is enable for this product so it’s not saving.
Thank You
- September 4, 2019 at 1:34 pm #80055WCFM ForumMember
Hi,
Add this to your site –
add_filter( 'wcfm_product_data_factory', function( $wcfm_product_data_factory, $new_product_id, $product, $wcfm_products_manage_form_data ) { $product_type = empty( $wcfm_products_manage_form_data['product_type'] ) ? WC_Product_Factory::get_product_type( $new_product_id ) : sanitize_title( stripslashes( $wcfm_products_manage_form_data['product_type'] ) ); if( $product_type == 'external' ) { $wcfm_product_data_factory['manage_stock'] = ''; } return $wcfm_product_data_factory; }, 50, 4 );
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thank You
- September 4, 2019 at 1:47 pm #80057id.manageParticipantThis reply has been marked as private.
- September 4, 2019 at 1:58 pm #80059WCFM ForumMember
Add that code snippet, it will resolve for you.
- September 4, 2019 at 2:27 pm #80063id.manageParticipantThis reply has been marked as private.
- September 7, 2019 at 11:05 am #80572WCFM ForumMember
HI,
I now can see the product in the vendor’s shop, but the vendor can still edit the product like admin.
– Yeah, why vendor will not able to edit this? Do your have disabled “Edit Live Products” capability for vendors?The product becomes like affiliated product without buy button.
– Affiliated products work like thisThank You
- September 7, 2019 at 8:14 pm #80632id.manageParticipantThis reply has been marked as private.
- September 9, 2019 at 11:41 am #80796WCFM ForumMember
Hi,
My answer: If vendor A want to be affiliate for vendor B, I don’t want Vendor A to edit the description of the product.But now Vendor A can change vendor B’s original product description!
– How you are creating this? There is no such default option for vendors to become affiliate for another vendor’s product!
Well, if you are referring here “Single Product Multi-vendor” module then it copied and create new product for Vendor B and he allowed to edit his new product, not Vendor A’s original product!
My answer: I want the buy button with affiliated URL and direct customers to the original seller. But it doesn’t work. Is it because I need to add external links until you updated your affiliate add on? I am now using other plugin for test as I know your add on cannot do it at the moment.
– I am not very sure, how this is related to WCFM Affiliate!
You may add any external URL for affiliate products and user will redirect to that original site for purchase.Please check this once – https://woocommerce.com/videos/woocommerce-external-affiliate-product-overview/
Thank You
- September 11, 2019 at 9:46 pm #81225id.manageParticipantThis reply has been marked as private.
- September 17, 2019 at 10:33 pm #82193WCFM ForumMember
Please check this – https://www.loom.com/share/6485cfa4d4bb4cc0ad36a041476be681
- AuthorPosts
- You must be logged in to reply to this topic.