• Resolved erkan41

    (@erkan41)


    Hi,
    On the add new product page or on the edit page, the category selection section is very confused with the main categories and subcategories. I want my main categories to be black and bold and the main categories should not be selected How can I do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter erkan41

    (@erkan41)

    Hi,
    I have been waiting for reply for 4 days…

    Nazmul Hassan

    (@nazmulhassann20)

    Hello @erkan41,

    I am sorry for being late.I can see there is no problem to select between parent and child because all the child category alignment is right.We have the correct indentation to show both parent and child category- https://prnt.sc/mrn6ef ??

    Now, all the category in the dropdown is showing under the same class. If you need to change the parent category text with more text-weight then you may need to modify the CSS or file.

    Thanks!

    Thread Starter erkan41

    (@erkan41)

    Hi @nazmulhassann20
    Which files do I need to make changes in detail. I need to make bold type of main category names. really very confused.

    Nazmul Hassan

    (@nazmulhassann20)

    Hello @erkan41,

    This is not about a field. I am unable to provide each and every detail to modify the plugin as we do not provide support to customize or modify the plugin. However, you can check dokan-lite/templates/products/new-product-single.php or tmpl-add-product-popup.php where you can find below code-

    <?php if ( dokan_get_option( 'product_category_style', 'dokan_selling', 'single' ) == 'single' ): ?>
                            <div class="dokan-form-group">
                                <?php
                                $product_cat = -1;
                                $category_args =  array(
                                    'show_option_none' => __( '- Select a category -', 'dokan-lite' ),
                                    'hierarchical'     => 1,
                                    'hide_empty'       => 0,
                                    'name'             => 'product_cat',
                                    'id'               => 'product_cat',
                                    'taxonomy'         => 'product_cat',
                                    'title_li'         => '',
                                    'class'            => 'product_cat dokan-form-control dokan-select2',
                                    'exclude'          => '',
                                    'selected'         => $product_cat,
                                );
                                wp_dropdown_categories( apply_filters( 'dokan_product_cat_dropdown_args', $category_args ) );
                            ?>
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘category selection problem’ is closed to new replies.