Home Forums WC Vendors Pro Support Product Type Dropdown

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #63420
    Aebeer
    Participant

    1. How can I remove Product Type Dropdown from “Add Product” page?

    2. How can I add my own dropdown field to “Add Product” page?

    • This topic was modified 5 years, 9 months ago by Aebeer.
    #64363
    Anna
    Member

    Hello @aebeer ,
    1. You need to edit the product-edit.php template.
    Copy the template and move it to your theme/child theme following these instructions:
    https://www.wcvendors.com/kb/changing-vendor-templates/
    The template you need is located here: wp-content/plugins.wc-vendors-pro/templates/dashboard/product-edit.php

    Then remove approximately lines 62-68 which look like this:

    <div class="all-100">
      <?php do_action( 'wcv_before_product_type', $object_id ); ?>
    		<!-- Product Type -->
    		<div class="wcv-product-type"> 
    			<?php WCVendors_Pro_Product_Form::product_type( $object_id ); ?>
    		</div>
    	</div>

    2. Here is an example of how to add a select2 drop down to the product-edit.php template. For the first piece of code in the Gist, You’d use the template you just moved to your theme/child theme as instructed above. The second piece of code in this Gist should be placed in your theme/child theme functions.php:
    https://gist.github.com/fervous/048b04a4a73cde43fd77b34405917f54

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.
This website uses cookies to ensure you get the best experience on our website.