WCMp Advanced Frontend Manager
-
AuthorPosts
-
-
August 17, 2021 at 8:35 PM #126402MaxenceTPParticipant
Hello,
I bought your Advanced Frontend plugin to be able to modify the dashboard in more detail, but it’s not really the way I wanted. I need help with some changes:
– How to hide these buttons but make them checked when creating/editing the product? https://prnt.sc/1q43chy
– How to remove the download settings from the General tab? https://prnt.sc/1q43j3n
– How do I remove “Menu order” from “Advanced”? https://prnt.sc/1q43vwn
– How to hide the “Attributes” tab only if the product type is “Simple product” or “Product bundle”? https://prnt.sc/1q44ceu
– In the edit-product.php file the action “wcmp_afm_after_product_excerpt_metabox_panel” visibly adds the product meta to the dashboard so that it can be modified. Is it possible to display only some of them? Or hide some of them?Thanks for your help
-
August 18, 2021 at 7:27 PM #126483MVX Support NinjaKeymaster
@MaxenceTP, our team will definitely help you out with this.
Please share a temporary admin, ftp access so they can add this.
While sharing the access don’t forget to mark the response as private. -
August 18, 2021 at 11:16 PM #126501MaxenceTPParticipantThis reply has been marked as private.
-
August 19, 2021 at 1:24 PM #126509MVX Support NinjaKeymasterThis reply has been marked as private.
-
August 19, 2021 at 7:45 PM #126533MaxenceTPParticipantThis reply has been marked as private.
-
August 20, 2021 at 6:52 PM #126593MVX Support NinjaKeymaster
Hi,
– How to hide these buttons but make them checked when creating/editing the product? https://prnt.sc/1q43chy
>> Please add this code in the function.php of the current active theme :add_action('after_wcmp_add_product_form', 'custom_js_and_css'); function custom_js_and_css() { ?> <script type="text/javascript"> jQuery(document).ready(function($){ $('#_virtual').prop('checked', true); $('#_downloadable').prop('checked', true); }); </script> <style type="text/css"> div.add-product-info-header div.pull-right { display: none; } </style> <?php }
Copy– How to remove the download settings from the General tab? https://prnt.sc/1q43j3n
Override templates/vendor-dashboard/product-manager/views/html-product-data-general.php template by copying it to yourtheme/dc-product-vendor/vendor-dashboard/product-manager/views/html-product-data-general.php
remove line no 82 to 149
– How do I remove “Menu order” from “Advanced”? https://prnt.sc/1q43vwn
Override templates/vendor-dashboard/product-manager/views/html-product-data-advanced.php template by copying it to yourtheme/dc-product-vendor/vendor-dashboard/product-manager/views/html-product-data-advanced.php
remove line no 24 to 29
– How to hide the “Attributes” tab only if the product type is “Simple product” or “Product bundle”? https://prnt.sc/1q44ceu
/***************** Hide attribute for simple product type ************************/add_filter( 'wcmp_product_data_tabs', 'unset_attribute_for_sinple' ); function unset_attribute_for_sinple( $tabs ){ $tabs['attribute']['class'] = array( 'show_if_variable', 'show_if_grouped', 'show_if_external' ); return $tabs; }
Copy– In the edit-product.php file the action “wcmp_afm_after_product_excerpt_metabox_panel” visibly adds the product meta to the dashboard so that it can be modified. Is it possible to display only some of them? Or hide some of them?
>> Please describe what do you actually want to remove.
Regards,
-
August 23, 2021 at 8:21 PM #126661MaxenceTPParticipantThis reply has been marked as private.
-
September 2, 2021 at 6:34 PM #127096MaxenceTPParticipant
Hey, any update please ? 🙂
-
September 2, 2021 at 7:21 PM #127105MVX Support NinjaKeymaster
@MaxenceTP, somehow the thread was missed, sorry for the delay.
Our team is looking into this. -
September 2, 2021 at 7:45 PM #127106MaxenceTPParticipant
Thanks 🙂
-
September 3, 2021 at 5:56 PM #127139MVX Support NinjaKeymaster
Hi,
Our replies are inline:
– How to hide these buttons but make them checked when creating/editing the product?Use below code and test your site
add_action('after_wcmp_add_product_form', 'custom_js_and_css'); function custom_js_and_css() { ?> <script type="text/javascript"> jQuery(document).ready(function($){ $('#_virtual').prop('checked', true); $('#_downloadable').prop('checked', true); $("#product-type").change(function(){ $('#_virtual').prop('checked', true); $('#_downloadable').prop('checked', true); }); }); </script> <style type="text/css"> div.add-product-info-header div.pull-right { display: none; } </style> <?php }
Copy– In the edit-product.php file the action “wcmp_afm_after_product_excerpt_metabox_panel” visibly adds the product meta to the dashboard so that it can be modified. Is it possible to display only some of them? Or hide some of them?
Actually the WCMP Frontend Product Manager plugin adds the ACF Custom Fields which is fine. But I would like this one not to be displayed: https://prnt.sc/1qegw9l— As per your requirement you have to add custom coding using above hook. First of all you have to unhook then using add action you have to add custom code.
Regards,
-
September 3, 2021 at 10:44 PM #127153MaxenceTPParticipant
Hey! About the first thing, it’s working thanks.
About the second point, I cannot find how to unhook “description_fr” from this hook. I always get a critical error, maybe I don’t use the good function -
September 6, 2021 at 7:18 PM #127217MVX Support NinjaKeymaster
Hi,
Using below code you can block a ACF field group.
add_filter( 'acf_fields_display_wcmp_post', 'wcmp_afm_custom_changes', 10, 3); function wcmp_afm_custom_changes($data ,$field_group_id , $field_group_field_ID){ if($field_group_id == 2824){ //2824 is a field group id check the id and change this return; } return $data; }
CopyKindly Checkout the video to get the field group id -:
https://www.loom.com/share/cd39915e8cd84011b8c298c7bb98798a
Regards
-
September 6, 2021 at 7:27 PM #127218MaxenceTPParticipant
Thanks it’s working 🙂
-
September 7, 2021 at 11:42 AM #127246MVX Support NinjaKeymaster
Maxence TP, we are happy to help you
We would love it if you shared your experience by giving us 5/5 review here :
https://wordpress.org/support/plugin/dc-woocommerce-multi-vendor/reviews/
Seeing glowing reviews from existing customers makes others more comfortable knowing they’ll get the support they need for any issue with our services.
-
-
AuthorPosts
The topic ‘Dashboard little modifications’ is closed to new replies.