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?
- Redirrect after facebook successful login to wooommerce cart page url
- how to add custome text in each products side in checkout page after pincode validation [closed]
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- wc_get_template new template does not showing up
- Show icons or badges under title on product archives/category pages
- Conditional Shipping Options if Certain Products are in Cart WooCommerce
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- WordPress Stock Update Programatically
- Woocommerce Backend Search by Title and SKU
- Problem with add_action
- Custom API plugin to execute 3rd party API to retrieve data
- Loop in elementor custom widget not working
- Order posts by meta key ( Using ACF )
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- How to add fields in the WordPress editor?
- How can I concatenate variables to search results title? [closed]
- WooCommerce: after install hook
- How to add a new column with text fields to WooCommerce Cart List?
- Add a “View all” button on WooCommerce product archives pages
- Woocommerce: limit user to see only the products he created
- Woocommerce singe product custom gallery output works just on the first slide
- Overriding an Array in a Plugin’s Class/Function from functions.php
- Historical customisations won’t go away [closed]
- How to include a custom field in the woocommerce email?
- woocommerce search by sku and title ajax
- Woocomerce add info after order email prouct item
- WordPress – source link plugin – how to modify it?
- Remove Pagination for Product Category Pages WooCommerce
- add seperate suffix for low price and high price in woocommerce
- Moving FB comments at the end of page
- Get products list by url key in WordPress Woocommerce [closed]
- Cross Sells are not being shown in Cart Page. Please Help!
- How to display registered customer list as dropdown in WooCommerce checkout?
- How do I get the Payzone WooCommerce payment gateway plugin to show up in the settings? [closed]
- Error with get_price (and others) in self-written plugin to show price
- Customizing a blog page layout
- How to change WooCommece variation data programmtically [closed]
- Getting a ressource ID, from a WC_Order_Item_Product/Order
- Minimize and Uglify WordPress Plugin Files
- Advanced WordPress plugin activation detection
- Customize Menu | Styling LESS/SCSS code formats
- Woocommerce – WordPress Roles & Capabilities
- Advanced Custom Fields (acf) – Filter Relationship by Taxonomies not Post Type
- Sending customer an email with link to stripe to make payment
- Override a Plugin Function
- shortcode – multiple instances of same parameter name in one shortcode instance
- How to create a plugin that includes all the other plugins?
- Hide a certain category name from Related Posts
- Custom template for all woo commerce categories
- How to create plugin in wordpress [closed]
- How to remove products-links after the product title using remove_action
- how to add custom info on author page? plugin, child theme?
- Search users with custom meta data
- Why is it important to check for isset and is_array before checking in_array in this example?
- WordPress Multi-Step Product Search
- Is it possible to instantiate a new WC_Cart?