Add Product Form Modification in the Store Dashboard

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WC Marketplace Add Product Form Modification in the Store Dashboard

Viewing 6 reply threads
  • Author
    Posts
    • #111814
      AvatarKreator
      Participant

      Hello,

      I want to eliminate the Button Text input and set it a default for all my affiliate links.
      Also, I want to remove the Button Text input from Adding/Editing a Product in the Store Dashboard.

      How can I achieve that in the child theme?

      (attached screeshot)

      Thanks!

      Attachments:
      You must be logged in to view attached files.
    • #111817

      Hello,

      To removing “Button Text” field from product add page,

      add_filter('wcfm_product_manage_fields_pricing','fn_wcfm_product_manage_fields_pricing',10 ,5);
      function fn_wcfm_product_manage_fields_pricing($fields,$product_id, $product_type, $wcfm_is_translated_product, $wcfm_wpml_edit_disable_element) {
      	unset($fields['button_text']);
      	return $fields;
      }

      Add this code to your child theme’s functions.php

      Thanks.

    • #111844
      AvatarKreator
      Participant

      Ok, thanks! That is working.

      I have one more question:

      How do I remove Brands and Catalog Visibility sections (see attached)

      Thanks!

      Attachments:
      You must be logged in to view attached files.
    • #111849

      Hi,

      To remove brand,
      add_filter( 'wcfm_is_allow_custom_taxonomy_store', '__return_false' );

      And remove Catalog Visibility sections, off the “catalog” capability settings. PFA

      Thanks.

      Attachments:
      You must be logged in to view attached files.
    • #111874
      AvatarKreator
      Participant

      Unfortunately, the code did not work. I can still see the Brands section. Any other idea?

      And last question:

      How Can I post an informal message in the Add Product Form header (see attached)

      Thanks!

      Attachments:
      You must be logged in to view attached files.
    • #111925

      Hello,

      Regarding Brand, Can you share us the temporary admin access with your site url then we can check and guide you accordingly.

      Add Message Add product form,

      add_action('begin_wcfm_products_manage_form',function(){
      		//Add your Message
      });

      Add this code to your child theme’s functions.php

      Thanks.

    • #111932
      AvatarKreator
      Participant

      Thanks for the help! The message is working also. The only things that are not working are the Brands and Catalog but I have resolved it from CSS.

Viewing 6 reply threads
  • You must be logged in to reply to this topic.