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]
- 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
- Best collection of code for your 'functions.php' file [closed]
- Should all plugins be encapsulated in a Class?
- OpenID for WordPress 3.x? [duplicate]
- Add Products to user’s ID Woocommerce
- Custom options page checkbox will not save, despite working with text
- Upload files programmatically to users
- Invalid shipping method, WooCommerce [closed]
- Use plugin or custom post type for game score functionality
- Plugin not saving values when placed in a folder within /wp-content/plugins
- Security checking in meta_box save is reluctant?
- Make specific products accessible only to a user role in WooCommerce
- Need Old Version of plugins
- how to load the language file in plugin?
- UnWanted Custom field added in the wp page edit area
- Translating long texts with html formatting
- Does any one have Idea to get these functionalities with the plugin wp-multi-network
- Woocommerce Deposit, then random payments until product paid in full [closed]
- Custom table naming/access convention for multisite: $table_prefix vs base_prefix or other?
- date/time-picker and file upload (image) fields for custom fields (e.g. with more fields)
- PHP Error When a plugin is active
- Inserting custom PHP script on homepage
- a weird attribute on every html tag
- Adding class to last list item? Not WP generated
- Woocommerce Coupon Menu and Marketing Menu missing After “Coupons can now be managed from Marketing > Coupons.” [closed]
- woocommerce search by sku and title ajax
- Is there a way to easily manage Project options (custom-fields)
- Rename Smart YouTube’s httpv back to http for all posts
- Adding custom Field To The Posts Listing
- WordPress FLIR (Facelift Image Replacement) plugin clipping off end of text
- Create category for each user
- Translations not appended even strings are edited
- How to get brand children with woocommerce brands
- Woocommerce convert simple products to variations
- WooCommerce Product Table – filter query on attributes
- Why does plugin_url append absolute file path?
- Disable WC Bookings automatic order completion [closed]
- Woocommerce budget search
- Not displaying Woocommerce product page in lightbox
- Allow vendors on a WordPress site to pick from a gallery of pre-selected images when choosing product’s featured image
- Change pricing in Woocommerce based on Category and Product [closed]
- Overwrite user role
- Place content inside the Post Loop
- Problem with Duplicate Meta / tag description in Webmaster Tool [duplicate]
- Woocommerce: deleted single-product.php, everything still works. How is it possible?
- Restrict my pages from public
- Style WordPress Custom Post Type Single Page
- Pull Data from DB for Admin Page Display as Relates to Admin Page Class by BA Internet
- Making a particular kind of search engine with WordPress?
- AdBlock blocks my non-advertising sidebar images [closed]
- What can I do to customize a widget provided with this plugin? from where have I to start?
- Shortcode inside a redirect [closed]
- Custom gutenberg block image preview not working
- WordPress Feature – Multi Level sorting
- How to show image caption in Woocommerce gallery
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]
- Brands Filter Not Working For On Sale Products
- Can we install 3d product configurator into wordpress
- Change Custom WordPress Function [closed]