Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Dashboard little modifications

WCMp Advanced Frontend Manager

Resolved
Viewing 14 reply threads
  • Author
    Posts
    • #126402
      MaxenceTP
      Participant

      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

    • #126483

      @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.

    • #126501
      MaxenceTP
      Participant
      This reply has been marked as private.
    • #126509
      This reply has been marked as private.
    • #126533
      MaxenceTP
      Participant
      This reply has been marked as private.
    • #126593

      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,

    • #126661
      MaxenceTP
      Participant
      This reply has been marked as private.
    • #127096
      MaxenceTP
      Participant

      Hey, any update please ? 🙂

    • #127105

      @MaxenceTP, somehow the thread was missed, sorry for the delay.
      Our team is looking into this.

    • #127106
      MaxenceTP
      Participant

      Thanks 🙂

    • #127139

      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,

    • #127153
      MaxenceTP
      Participant

      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

    • #127217

      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;
      }
      Copy

      Kindly Checkout the video to get the field group id -:

      https://www.loom.com/share/cd39915e8cd84011b8c298c7bb98798a

      Regards

    • #127218
      MaxenceTP
      Participant

      Thanks it’s working 🙂

    • #127246

      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.

Viewing 14 reply threads

The topic ‘Dashboard little modifications’ is closed to new replies.