"Capability" template not override.

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 WCFM "Capability" template not override.

Viewing 4 reply threads
  • Author
    Posts
    • #31261
      info31
      Participant

      Hello,

      I have created custom product type on my website. I want show that product type into the “Capability” tab. I have override the code of “Capability” template into child theme but template override not working for me.
      My template path is “wp-content/themes/my-listing-child/wcfm/capability”, php file name is “wcfm-view-capability.php”. I have to tried with echo exit but no luck. Please check attachment for more clearance.

      Please help me for solve this problem asap.

      Thanks in advance!!!

      Attachments:
      You must be logged in to view attached files.
    • #31282
      info31
      Participant

      Hello,

      Are you check my problem? I am waiting for your response. I need to do this asap. Please give me guidance for override template.

      Thanks in advance!!!

    • #31326
      WCFM Forum
      Keymaster

      Hi,

      WCFM does not allow to override “capability” template.

      Well it’s off course possible to add that custom product type in capability, please use this code for the purpose –

      add_filter( 'wcfm_capability_settings_fields_product_types', function( $product_types, $handler = 'wcfm_capability_options', $wcfm_capability_options = array() ) {
      	global $WCFM;
      	
      	$test_booking = ( isset( $wcfm_capability_options['test_booking'] ) ) ? $wcfm_capability_options['test_booking'] : 'no';
      	
      	$product_types["test_booking"] = array('label' => __('Test Booking', 'wc-frontend-manager') , 'name' => $handler . '[test_booking]','type' => 'checkboxoffon', 'class' => 'wcfm-checkbox wcfm_ele', 'value' => 'yes', 'label_class' => 'wcfm_title checkbox_title', 'dfvalue' => $test_booking );
      	
      	return $product_types;
      }, 60, 3 );

      Change “test_booking” with your custom product type.

      Thank You

    • #31457
      info31
      Participant

      Thank you for your response, I have done this code from my side.

      Thanks for support 🙂

    • #31492
      WCFM Forum
      Keymaster

      You are welcome 🙂

Viewing 4 reply threads
  • The topic ‘"Capability" template not override.’ is closed to new replies.