You will need to add a custom field to the product-edit form, saving is done automatically if you correctly format your input id.
WCVendors_Pro_Form_Helper::input( array(
'type' => 'checkbox',
'post_id' => $object_id,
'id' => 'wcv_custom_product__wc_security_deposits_enable',
'label' => __( 'Ingredients', 'wcvendors-pro' ),
'placeholder' => __( 'Ingredients', 'wcvendors-pro' ),
'desc_tip' => 'true',
'description' => __( 'Enable this to collect a security deposit for this product', 'wcvendors-pro' ),
) );
Add this to your product-edit.php template. Override the template and place it in your themes directory. See my documentation on how to override templates here:
https://docs.wcvendors.com/knowledge-base/changing-the-vendor-templates/
Related Posts:
- Redirect to another page using contact form 7? [closed]
- Need to add custom cart item data
- WooCommerce create new product and add to cart on form submit
- Add custom meta box on Post page
- How to set value/term of a Woocommerce attribute text field in admin panel?
- How to add product images using script?
- Can’t create term for product attribute
- Manually add order item with fixed product_id in WooCommerce
- FacetWP group listings by custom field [closed]
- Custom Field Template seriously messed up in WP 3.1.1
- Woocommerce – How to populate custom select field with stored values on checkout page?
- How to toggle between two custom fields in WordPress woocommerce ‘WC Product Field Group’ plugin?
- custom payment gateway in woocommerce failed to connect to remote api server
- Save custom attributes of product in woocommerce
- creating a custom shop page display on archive woocommerce
- I am trying to make a field show and save from quickedit screen
- .php file for woocommerce edit category? [closed]
- I want to filter my products with attributes [closed]
- Woocommerce – Change Variable Product Add to Cart to behave like external product using Custom Field (link) [closed]
- Automatic recurring payment using YITH subscription and Dokan Stripe
- WordPress Phone Field Check (use numbers, spaces and pluses)
- Can export gallery but can’t import it Wp all import
- woocommerce remove coupon link does not work
- Hide fields in woocommerce settings
- Adding discount functionality to the cart
- How to assign a specific service to a specific provider based on location
- Problem Advanced Custom Fields PRO
- Meta Key array building with multiple input values from fields
- Custom product page’s style for printing
- Custom plugin issue – Notice: Trying to get property of non-object in
- Woocommerce list variations that are added already to cart in Single Product
- Automatically check “Enable stock management at product level” to the existing products?
- Creating Nested custom fields
- Problem with conditional woocommerce custom checkout field
- How to Save settings of custom tab product page in admin side in a database?
- Changing the body of mail sent to new user registration
- Is there a way to add a custom input field for every taxonomy term in WP post editor?
- Woocommerce quick checkout form [closed]
- How ACF Advanced Custom Field works with Woocommerce Single Product [closed]
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- Create Custom Coupon Type
- Product customizing quiz – quiz adding products to the cart
- additional fields based on the quantity of products selected
- How to get selected variation from URL?
- WooCommerce – Load Templates From Plugin For All Template Files
- WordPress Plugin as ‘Library’ From Abstract Application?
- how to display all posts Custom fields dynamically?
- Get product attribute for Simple product in WooCommerce
- I need to add a custom “cover” to every new post — plugin or custom setup?
- How to create Repeater fields using Advanced Custom Fields?
- How to prevent action in ajax request, when in admin side?
- Recommendations for books/resource to get started with wordpress 3 development (plugins/themes) [closed]
- How To Hide Filters On Specific Categories with WooCommerce Products Filter(WOOF)
- Custom plugins/Manipulated plugins: Always a terrible idea to inherit these types of WP sites that discourage updates? [closed]
- WordPress CMB2 – Run function on save
- Woocommerce email template customization [closed]
- How to modify shortcode attributes with data from current post
- How to import my YouTube channel into WordPress?
- Carbon Fields use in custom plugin class
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- Creating a Callback URL for WordPress Woocommerce to update Order Status
- Automatic Updates Individual Plugins Not Working
- WordPress as template engine
- Amazon.com intergration with WordPress?
- Conditional Shipping Options if Certain Products are in Cart WooCommerce
- Woocommerce Backend Search by Title and SKU
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- Minimize and Uglify WordPress Plugin Files
- Override a Plugin Function
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- Add key and value to an array in another file
- Parent Child Custom Fields with Advanced Custom Fields
- How display specific category post to specific users?
- Advanced Custom Fields Plugin – Images not displaying
- Download counter for skydrive shared files in wordpress
- How to return a specific attribute
- What snippet do I need to type to show my ACF field show up on my theme?
- Woocommerce redirection if no previous orders
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- WordPress delete cookie
- multiple string replace of post’s content for large data
- wordpress plugin translation not working
- Many to many relationship for variable products
- Multi-site error wordpress after migration
- woocommerce blank page after clicking add to cart [closed]
- Change post template the proper way
- Where to insert customize_register in wordpress plugin
- Issues with Post 2 Post Plugin
- Woocommerce Bookings – Resource needs to be allocated for part of the booking duration, not the whole booking
- How do I add custom fields to the “Edit page” admin screen?
- Woocommerce – Product Description heading [closed]
- Save And Display Mp3 Audio files on WooCommerce product page with Dokan
- Resources for building a custom event page template
- how to add meta for order in woocommerce
- How to make a Template page to show the information of different things Shop and Product page?
- Enable Downloads on WordPress Attachment Page
- Automatic assignment of multi images to products in WooCommerce/WordPress with SKU
- how to compare date meta value in jet smart filter Date query?
- Conclude woocommerce-shipping-totals
- Remove and strip html tag values