Home Forums Theme Support Dokan Dokan save dropdown

This topic is: not resolved

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by  Nayem 3 years, 9 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #66636

    Post count: 2

    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">
                                            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'          => '',
                                            ) );

    What am I missing? What do I need to put in my functions.php to have the value saved…



    Post count: 6480
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Dokan save dropdown’ is closed to new replies.