• Resolved kreativamarketing

    (@kreativamarketing)


    Hi, I’m using the Dokan plugin free version, Dokan lite.
    In the Add new product form, it asks the vendor to add the regular price and the sales price. Now, I don’t want any sales price to be added, so I tried commenting the proper lines on the dokan-lite/templates/products/new-product-single.php. I’ve also edited the tmpl-add-product-popup.php file, but no changes are made.

    Page image
    The red square signals what I want to delete

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @kreativamarketing ,

    According to your screenshot the file you need to modify is – dokan-lite/templates/products/new-product.php see line starting from #170.

    Please save your modified file in your-theme/dokan/products folder with the same name. Otherwise, the modification will be gone during the plugin update.

    Thank you.

    Thread Starter kreativamarketing

    (@kreativamarketing)

    Thank you, turns out the file I was modifying wasn’t located in my-theme/dokan/products. I changed the file location to that one and now the changes are applying.

    Also, is there a way to change the Product type to only Simple?

    Hello @kreativamarketing ,

    You can remove the product types using this code in your theme’s functions.php file –

    add_filter( 'dokan_product_types', function($types) {
        unset($types['variable']);
        unset($types['grouped']);
        return $types;
    }, 1000);

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changes done in the Add new product form aren′t applying’ is closed to new replies.