Forum Replies Created
-
AuthorPosts
-
DanParticipantHi Steve,
Version 0.9.9.16
Cheers,
Dan
DanParticipantFollowing
DanParticipantHi Charles,
Not really a solution, but could you perhaps do the following:
– Grapes – as tags to account for grape blends etc. allows multiple grape types to be selected.
– Link the product to the estate.
– Link the estate to the region.Dan
DanParticipantHi, this is on my list to look into. However as a starting point this hook may be of interest. It’s where I’m staring this evening – will let you know how I get on!!
woocommerce_cli_save_product_variation
https://docs.woocommerce.com/wc-apidocs/source-class-WC_CLI_Product.html#1781
DanParticipantHi, Have you just created a new file within the piklist examples folder? Or do you have these in your custom theme/plugin?
If it’s in the piklist folder you’ll need to do it like this:
[piklist_form form="my-form" add_on="piklist-demos"]Are you aiming for a theme or a plugin, because you need to activate Piklist within your plugin or theme within the comments section at the top.
See this for activating Piklist. Getting Started
DanParticipantDon’t apologise, this is exactly what I needed. Thank you!
DanParticipantThat’s really odd, I’m also on Piklist 0.9.9.9, WP 4.6 but I do not get the default fields come through?
Copied your example into mine just in case I had a typo, but still not getting the desired results.
<?php /* Title: Classes Post Type: mrc-event Order: 200 */ piklist('field', array( 'type' => 'group' ,'field' => 'classes' ,'label' => 'Classes' ,'add_more' => true ,'fields' => array( array( 'type' => 'text' ,'field' => 'class' ,'label' => 'Class Name' ,'columns' => 12 ) ,array( 'type' => 'text' ,'field' => 'members' ,'label' => 'Members' ,'columns' => 6 ) ,array( 'type' => 'text' ,'field' => 'non_members' ,'label' => 'Non-Members' ,'columns' => 6 ) ,array( 'type' => 'text' ,'field' => 'section' // ,'label' => 'Section' ,'add_more' => true ,'columns' => 12 ,'attributes' => array('placeholder' => 'Section Name') ,'value' => array('Section 1', 'Section 2', 'Section 3') ) ) ));Attachments:
You must be logged in to view attached files.
DanParticipantHi phil,
I’ve tried this, doesn’t seem to work as a child add more.
I’ve done a work around for now, adding this into a settings page and showing this as a multi select.
Cheers
-
AuthorPosts