• Resolved flo1982

    (@flo1982)


    Hallo,

    I created a variable product.
    How can I remove the labels “Downloadable” and “Virtual” ?
    How can I remove “Allow backorders?”
    How can I remove “Allow backorders” from edit simple products page?

    Thank you
    Florian

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @flo1982

    The Virtual and Downloadable checkbox is being shown using dokan_product_edit_after_title hook. You can remove those options using that hook or can use the below-mentioned CSS in your WordPress dashboard’s Appearance > Customize > Additional CSS.

    .dokan-form-group.dokan-product-type-container.show_if_subscription.show_if_variable-subscription.show_if_simple {
      display: none !important;
    }

    About removing the Allow backorders option from the product edit page, you can override wp-content\plugins\dokan-lite\templates\products\inventory.php this template file or can use the below-mentioned CSS in the same place as mentioned above.

    #_backorders, [for="_backorders"] {
      display: none !important;
    }

    Thanks!

    Thread Starter flo1982

    (@flo1982)

    Hello,

    sorry, but it does not work.

    When I use the following CSS I remove the “stock” and the “backorders”. But I only want to remove the “backorders”. Can you help me ?

    .dokan-form-group.show_if_variation_manage_stock .content-half-part {display: none !important;}

    When I use the following CSS I remove the whole options. But I just want to remove Downloadable and Virtual. I was able to remove the checkboxes but not the text.

    .dokan-form-group.options {display: none !important;}

    VG
    Florian

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @flo1982

    It seems like you have missed some part of my previous reply or the instructions were not clear to you. Let me re-phrase below.

    To remove the Downloadable and Virtual option in the product edit page, use the below-mentioned CSS.

    .dokan-form-group.dokan-product-type-container.show_if_subscription.show_if_variable-subscription.show_if_simple {
      display: none !important;
    }

    To remove the Backorder section. Kindly apply the below-mentioned CSS.

    #_backorders, [for="_backorders"] {
      display: none !important;
    }

    I hope this clarifies and helps. Thanks!

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @flo1982

    A point to be noted is that, if you are referring to any feature that is not included in Dokan Lite then as per the forum rule, we are not able to discuss the feature in this forum.

    The CSS that I have provided should work for the Dokan lite. But as you are referring to a variable product, this CSS may not work. As creating a variable product is not a feature of Dokan Lite, we are unable to discuss it as per the forum’s rule.

    If you want any further assistance regarding this then kindly contact us via our support channel.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove items from edit product page’ is closed to new replies.