dokan icon indicating copy to clipboard operation
dokan copied to clipboard

Refund template doesn't allow child theme override (load_order_items() - ajax.php)

Open FLUF-Admin opened this issue 2 years ago • 0 comments

In load_order_items() in ajax.php, there is this line

include( DOKAN_PRO_DIR . '/templates/orders/views/html-order-items.php' );

This means when there is a refund, it forces the use of dokan's template rather than the child theme's. In my case this results in incorrect maths.

Can you please make it such that the line checks for the child theme's version of the template.

You can use dokan_get_template() part instead of include()

FLUF-Admin avatar Aug 30 '22 07:08 FLUF-Admin