Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Hide Button
- This topic has 17 replies, 2 voices, and was last updated 4 years, 6 months ago by sbucciaarance.
- AuthorPosts
- May 20, 2020 at 4:10 pm #133512sbucciaaranceParticipant
Hi I would like to hide the button shown on the screenshot.
regards
Attachments:
You must be logged in to view attached files. - May 22, 2020 at 2:22 pm #134108Sarmistha ChakrabortyMember
Hello,
add_action('init',function(){ global $WCFM, $WCFMmp; remove_action( 'wcfmmp_store_list_after_store_info', array( $WCFM->wcfm_enquiry, 'wcfmmp_store_list_enquiry_button' ), 35 ); });
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/
Thanks
- May 22, 2020 at 2:43 pm #134121sbucciaaranceParticipant
Thanks, one last question : How can I remove these steps when adding a new product? I want to make it easier for the seller
Thanks.
Attachments:
You must be logged in to view attached files. - May 22, 2020 at 3:15 pm #134134Sarmistha ChakrabortyMember
Hello,
If you do not want vendor can add “Taxonomy”,”inventory” etc. then just turn off the capability from WCFM dashboard -> Capability.
But if you want removed this steps only from “Product Popup”,
Then you need to override “wcfm-view-product-popup.php” file in your theme folder “your theme folder\wcfm\products-popup” from “\wp-content\plugins\wc-frontend-manager\views\products-popup”
And then removed the fields as per your requirement.
Like-
Image A – Remove this code.<?php if( apply_filters( 'wcfm_is_allow_category', true ) || apply_filters( 'wcfm_is_allow_tags', true ) ) { ?> <div class="page_collapsible products_manage_taxonomy <?php echo apply_filters( 'wcfm_pm_block_class_taxonomy', 'simple variable external grouped booking' ); ?> <?php echo apply_filters( 'wcfm_pm_block_custom_class_taxonomy', '' ); ?>" id="wcfm_products_manage_form_taxonomy_head"><label class="fa fa-tags"></label><?php _e('Taxonomies', 'wc-frontend-manager'); ?><span></span></div> <div class="wcfm-container simple variable external grouped booking <?php echo apply_filters( 'wcfm_pm_block_custom_class_taxonomy', '' ); ?>"> <div id="wcfm_products_manage_form_taxonomy_expander" class="wcfm-content"> <div class="wcfm_product_manager_taxonomy_fields"> <?php do_action( 'before_wcfm_products_manage_taxonomies', $product_id ); ?> <?php if( apply_filters( 'wcfm_is_allow_category', true ) && apply_filters( 'wcfm_is_allow_pm_category', true ) ) { ?> <?php if( apply_filters( 'wcfm_is_allow_product_category', true ) ) { $ptax_custom_arrtibutes = apply_filters( 'wcfm_taxonomy_custom_attributes', array(), 'product_cat' ); ?> <p class="wcfm_title"><strong><?php echo apply_filters( 'wcfm_taxonomy_custom_label', __( 'Categories', 'wc-frontend-manager' ), 'product_cat' ); ?></strong></p><label class="screen-reader-text" for="product_cats"><?php echo apply_filters( 'wcfm_taxonomy_custom_label', __( 'Categories', 'wc-frontend-manager' ), 'product_cat' ); ?></label> <select id="product_cats" name="product_cats[]" class="wcfm-select wcfm_ele simple variable external grouped booking" multiple="multiple" data-catlimit="<?php echo $catlimit; ?>" <?php echo implode( ' ', $ptax_custom_arrtibutes ); ?> style="width: 100%; margin-bottom: 10px;"> <?php if ( $product_categories ) { $WCFM->library->generateTaxonomyHTML( 'product_cat', $product_categories, $categories ); } ?> </select> <?php } ?> <?php if( apply_filters( 'wcfm_is_allow_custom_taxonomy', true ) ) { $product_taxonomies = get_object_taxonomies( 'product', 'objects' ); if( !empty( $product_taxonomies ) ) { foreach( $product_taxonomies as $product_taxonomy ) { if( !in_array( $product_taxonomy->name, array( 'product_cat', 'product_tag', 'wcpv_product_vendors' ) ) && apply_filters( 'wcfm_is_allow_taxonomy_'.$product_taxonomy->name, true ) ) { if( $product_taxonomy->public && $product_taxonomy->show_ui && $product_taxonomy->meta_box_cb && $product_taxonomy->hierarchical ) { if( apply_filters( 'wcfm_is_allow_custom_taxonomy_'.$product_taxonomy->name, true ) ) { // Fetching Saved Values $taxonomy_values_arr = array(); if($product && !empty($product)) { $taxonomy_values = get_the_terms( $product_id, $product_taxonomy->name ); if( !empty($taxonomy_values) ) { foreach($taxonomy_values as $pkey => $ptaxonomy) { $taxonomy_values_arr[] = $ptaxonomy->term_id; } } } $ptax_custom_arrtibutes = apply_filters( 'wcfm_taxonomy_custom_attributes', array(), $product_taxonomy->name ); $taxonomy_limit = apply_filters( 'wcfm_taxonomy_limit', -1, $product_taxonomy->name ); ?> <p class="wcfm_title"><strong><?php echo apply_filters( 'wcfm_taxonomy_custom_label', __( $product_taxonomy->label, 'wc-frontend-manager' ), $product_taxonomy->name ); ?></strong></p><label class="screen-reader-text" for="<?php echo $product_taxonomy->name; ?>"><?php echo apply_filters( 'wcfm_taxonomy_custom_label', __( $product_taxonomy->label, 'wc-frontend-manager' ), $product_taxonomy->name ); ?></label> <select id="<?php echo $product_taxonomy->name; ?>" name="product_custom_taxonomies[<?php echo $product_taxonomy->name; ?>][]" class="wcfm-select product_taxonomies wcfm_ele simple variable external grouped booking" multiple="multiple" data-catlimit="<?php echo $taxonomy_limit; ?>" <?php echo implode( ' ', $ptax_custom_arrtibutes ); ?> style="width: 100%; margin-bottom: 10px;"> <?php $product_taxonomy_terms = get_terms( $product_taxonomy->name, 'orderby=name&hide_empty=0&parent=0' ); if ( $product_taxonomy_terms ) { $WCFM->library->generateTaxonomyHTML( $product_taxonomy->name, $product_taxonomy_terms, $taxonomy_values_arr ); } ?> </select> <?php } } } } } } } if( apply_filters( 'wcfm_is_allow_tags', true ) ) { $WCFM->wcfm_fields->wcfm_generate_form_field( apply_filters( 'wcfm_product_simple_fields_tag', array( "product_tags" => array('label' => __('Tags', 'wc-frontend-manager') , 'type' => 'text', 'class' => 'wcfm-text wcfm_ele simple variable external grouped booking', 'label_class' => 'wcfm_title', 'value' => $product_tags, 'placeholder' => __('Separate Product Tags with commas', 'wc-frontend-manager') ) ), $product_id, $product_type ) ); if( $wcfm_is_allow_custom_taxonomy = apply_filters( 'wcfm_is_allow_custom_taxonomy', true ) ) { $product_taxonomies = get_object_taxonomies( 'product', 'objects' ); if( !empty( $product_taxonomies ) ) { foreach( $product_taxonomies as $product_taxonomy ) { if( !in_array( $product_taxonomy->name, array( 'product_cat', 'product_tag', 'wcpv_product_vendors' ) ) && apply_filters( 'wcfm_is_allow_taxonomy_'.$product_taxonomy->name, true ) ) { if( $product_taxonomy->public && $product_taxonomy->show_ui && $product_taxonomy->meta_box_cb && !$product_taxonomy->hierarchical ) { if( apply_filters( 'wcfm_is_allow_custom_taxonomy_'.$product_taxonomy->name, true ) ) { // Fetching Saved Values $taxonomy_values_arr = wp_get_post_terms($product_id, $product_taxonomy->name, array("fields" => "names")); $taxonomy_values = implode(',', $taxonomy_values_arr); $WCFM->wcfm_fields->wcfm_generate_form_field( array( $product_taxonomy->name => array( 'label' => $product_taxonomy->label, 'name' => 'product_custom_taxonomies_flat[' . $product_taxonomy->name . '][]', 'type' => 'textarea', 'class' => 'wcfm-textarea wcfm_ele wcfm_full_ele simple variable external grouped booking', 'label_class' => 'wcfm_title wcfm_full_ele', 'value' => $taxonomy_values, 'placeholder' => __('Separate Product ' . $product_taxonomy->label . ' with commas', 'wc-frontend-manager') ) ) ); } } } } } } } ?> <?php do_action( 'after_wcfm_products_manage_taxonomies', $product_id ); ?> <div class="wcfm_clearfix"></div> </div> </div> </div> <?php } ?>
Image B, C –
//include( $WCFM->library->views_path . 'products-manager/wcfm-view-products-manage-tabs.php' ); //do_action( 'end_wcfm_products_manage', $product_id, $wcfm_is_translated_product, $wcfm_wpml_edit_disable_element );
Thanks.
` - May 22, 2020 at 6:38 pm #134180sbucciaaranceParticipant
Thank you so much, I appreciate it.
Is there any way to hide all the elements highlighted in red? I just want the products showing.
Thanks in advance
Attachments:
You must be logged in to view attached files. - May 22, 2020 at 10:18 pm #134262sbucciaaranceParticipant
I have managed to remove some of them in the settings, but I couldn’t remove these.
Attachments:
You must be logged in to view attached files. - May 25, 2020 at 2:29 pm #134989Sarmistha ChakrabortyMember
Hello,
Regarding “https://wclovers.com/wp-content/uploads/2020/05/Screenshot_20200522-184415__01.jpg” –
>> Can you provide us the page urlTo remove tabs,logo from vendor store page in mobile version, add below css in your theme’s style.css-
@media only screen and (max-width: 480px) { /*************** ADD MOBILE ONLY CSS HERE ***************/ #wcfmmp-store .logo_area{ display: none !important; } .wcfm-store-page .woocommerce-ordering,.wcfm-store-page .woocommerce-result-count{ display: none !important; } }
And add this code in functions.php-
add_filter( 'wcfmmp_store_tabs', 'new_wcfmmp_store_tabs',90,2); function new_wcfmmp_store_tabs($store_tabs, $id) { unset($store_tabs['products']); unset($store_tabs['about']); return $store_tabs; }
Thanks.
- May 25, 2020 at 4:57 pm #135022sbucciaaranceParticipant
Thanks, that worked awesome!
One thing though, now the stars are over the address? How can I move them ?Thanks again
Attachments:
You must be logged in to view attached files. - May 25, 2020 at 7:25 pm #135059Sarmistha ChakrabortyMember
Hi,
You need to adjust hight of “#wcfm_store_header .wcfmmp-store-rating” this section –
@media only screen and (max-width: 480px) { /*************** ADD MOBILE ONLY CSS HERE ***************/ #wcfm_store_header .wcfmmp-store-rating { height: 43px !important; } }
and top position –
@media only screen and (max-width: 480px) { #wcfm_store_header .wcfmmp-store-rating::before{ top: 22px !important;} }
Thanks.
- May 25, 2020 at 7:45 pm #135068sbucciaaranceParticipant
Spot on! Thanks a lot I appreciate it
- May 26, 2020 at 1:06 am #135178sbucciaaranceParticipant
Hi, i have one last question. I would to add to the product page like a widget showing how many products were booked, I was thinking of displaying the maximum amount of available items as empty squares and have them fill when a order is placed ( since it’s a bookable product the squares should display the book item at the current time, so for istance if a cilient books for 2 hours in the future the square sould not fill right away.
Do you know how I could achieve this?
Thanks in advance
Attachments:
You must be logged in to view attached files. - May 26, 2020 at 3:00 pm #135358Sarmistha ChakrabortyMember
Hello,
This is not possible using code snippet.
It requires good custom development, and this will be a paid one.
And this requirement not related to WCFM plugins. So, please contact WooCommerce Support for this kind of customization.Thank You
- May 26, 2020 at 5:15 pm #135380sbucciaaranceParticipant
Ok thanks. The snippet you gave me fro traslating the rad more text does work, but when searching a product it does not change the text. I would like to replace “continua a leggere” with something else
Attachments:
You must be logged in to view attached files. - May 26, 2020 at 6:40 pm #135415sbucciaaranceParticipant
I also would like to change text highlighted and remove the request tab. Thanks again
I uploaded the two image twice*
Attachments:
You must be logged in to view attached files. - May 26, 2020 at 7:34 pm #135439Sarmistha ChakrabortyMember
Hello,
The snippet you gave me fro traslating the rad more text does work, but when searching a product it does not change the text. I would like to replace “continua a leggere” with something else
>>Sorry, but we don’t find any reply of ours regarding “Read More” text change. We have checked your screenshot, it seems like for post the “read more” button is appearing. So, please translate the text “Read more” from your theme.I also would like to change text highlighted and remove the request tab.
>>This is all are WooCommerce and Booking plugin customization. Please contact for this type of customizations with respected plugins support.Thanks.
- May 26, 2020 at 10:56 pm #135513sbucciaaranceParticipant
Ok thanks, is this woocommerce too? I would to change the text here. It’s on the bottom of the item page where it’s shows the related products.
Thanks
Attachments:
You must be logged in to view attached files. - May 27, 2020 at 8:08 pm #135889Sarmistha ChakrabortyMember
Hello,
Yes.
Ref : https://rudrastyh.com/woocommerce/up-sells-cross-sells-related-products-text.htmlThanks.
- May 28, 2020 at 1:35 am #135979sbucciaaranceParticipant
Thanks, Is there any way to make this text clickable and open a link?. This is part of the GEO my wp plugin, for which you have integration in your plugin if i’m not mistaken.
Thanks
Attachments:
You must be logged in to view attached files.
- AuthorPosts
- You must be logged in to reply to this topic.