Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › wcfm_stores using code snippet
- This topic has 4 replies, 2 voices, and was last updated 4 years, 10 months ago by awaludin.
- AuthorPosts
- February 29, 2020 at 7:43 am #109279awaludinParticipant
I am trying to get user role to redirect pages. If user roles are costumer, subscriber, or unregistered I want to show wcfm_stores and administrator/vendor to store manager. Previously you helped me to use code snippets to hide the inquiry button. Now is it possible to show wcfm_stores or store manager using code snippet? Thank you.
By the way I purchased one year license of wcfm ultimate. If I want to purchase life time do I have any upgrade options or buy a new one? Thank you. - March 2, 2020 at 12:16 pm #109530Sarmistha ChakrabortyMember
Hello,
I am trying to get user role to redirect pages. If user roles are costumer, subscriber, or unregistered I want to show wcfm_stores and administrator/vendor to store manager. Previously you helped me to use code snippets to hide the inquiry button. Now is it possible to show wcfm_stores or store manager using code snippet?
>>Sorry, we don’t get you. For which page you want to redirect to wcfm_stores page(for vendor) and store manager page(for admin&vendor)? Kindly explain little more then we will guide you accordingly.By the way I purchased one year license of wcfm ultimate. If I want to purchase life time do I have any upgrade options or buy a new one?
>>Please contact us here for this purpose – https://wclovers.com/woocommerce-multivendor-customization/. We will send you a coupon code(deduct the price “one year license of wcfm ultimate”) and then you will make a new order with life time WCFM-ultimate.Thanks.
- March 3, 2020 at 9:41 am #109662awaludinParticipantThis reply has been marked as private.
- March 3, 2020 at 1:12 pm #109698Sarmistha ChakrabortyMember
Hello,
Regarding display only admin products in your shop page,
function change_shop_product_query( $q ){ global $WCFM, $WCFMmp,$wp; if (strpos($wp->request, 'shop') !== false) { $q->set( 'author__in', array(1) ); // Replace "1" with Admin Id } } add_action( 'woocommerce_product_query', 'change_shop_product_query' );
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/And un-check the “Product List Radius Search” in Admin WCFM store dashboard->settings->Geo Locaton(PFA)
Thanks.
Attachments:
You must be logged in to view attached files. - March 3, 2020 at 7:22 pm #109741awaludinParticipant
OK I get it now. Thanks.
- AuthorPosts
- You must be logged in to reply to this topic.