Dokan save dropdown

This topic contains 1 reply and 2 voices, and was last updated by Nayem 8 years, 8 months ago
Viewing 1 Posts - 1 through 1 (of 1 total)
Author Posts
August 12, 2015 at 11:37 am 66636
Nayem Hi team, Been able to creste a dropdown which retrieves attribute values in the new-product.php, however I have been unable to get it saved to product. I can add and save a text field, that seems to work fine, but cant get it to work with dropdowns. If not possible with woocommerce attributes, is it possible for me to add a dropbox with option values in the new-product and edit product and save them as custom field? I am using the following code to retrieve the values in the dropdown:
<div class="dokan-form-group">

                                        <?php
                                        wp_dropdown_categories( array(
                                            'show_option_none' => __( '- Select a subject -', 'dokan' ),
                                            'hierarchical'     => 0,
                                            'hide_empty'       => 0,
                                            'name'             => 'pa_subject',
                                            'id'               => 'pa_subject',
                                            'taxonomy'         => 'pa_subject',
                                            'title_li'         => '',
                                            'class'            => 'product_cat dokan-form-control chosen',
                                            'exclude'          => '',
                                        ) );
                                        ?>
</div>
What am I missing? What do I need to put in my functions.php to have the value saved... Thanks!
August 12, 2015 at 6:59 pm 66771
Nayem Nayem

Hello,

You can read this- http://wordpress.stackexchange.com/questions/172922/how-to-get-value-of-wp-dropdown-categories.

Viewing 1 Posts - 1 through 1 (of 1 total)