How to add notice on Dokan admin notices
Dokan has two filter hooks for adding admin notices. Available options for admin notices: Example from Dokan: To handle the close and action button you… Read More »How to add notice on Dokan admin notices
Dokan has two filter hooks for adding admin notices. Available options for admin notices: Example from Dokan: To handle the close and action button you… Read More »How to add notice on Dokan admin notices
File: Manager.phpNamespace: WeDevs\Dokan\Product;Location : dokan-lite\includes\Product\Manager.php Product manager class. This class holds a lot of methods that help to get and save information about vendor products.… Read More »Dokan product manager
It’s a discussed idea about optimization dokan to do some stuffs like below Put datas for seller dashboard to a seller_summary table Put datas for… Read More »Dokan Optimization Documentation IDEA
Namespace: WeDevs\Dokan\Order; Class Name: Manager; Method type: non-static;File Location: dokan-lite/includes/Order/Manager.php Method References: WeDevs\Dokan\Order::all( array $args = [ ] ) and dokan_get_seller_orders( $seller_id, $status = ‘all’, $order_date… Read More »Class reference of Dokan Order Manager
Description # Prepare for calculation Parameters # $callable (function) (Required) function to call for calculation. $product_id (int) (Optional) product id. Default is 0. $product_price (float)… Read More »prepare_for_calculation( $callable, $product_id = 0, $product_price = 0 )
Description # Get global earning Parameters # $product_price (float) (Required) product price. Return # (float|null) return global earnings. Null on failure. More information # Usage… Read More »get_global_earning( $product_price )
Description # Get vendor wise earning Parameters # $vendor_id (int) (Required) vendor id. $product_price (float) (Required) product price. Return # (float|null) return vendor-wise earnings. Null… Read More »get_vendor_wise_earning( $vendor_id, $product_price )
Description # Get category wise earning Parameters # $product_id (int) (Required) product id. $product_price (float) (Required) product price. Return # (float|null) return category-wise earnings. Null… Read More »get_category_wise_earning( $product_id, $product_price )
Description # Get product wise earning Parameters # $product_id (int) (Required) product id. $product_price (float) (Required) product price. Return # (float|null) return product-wise earnings. Null… Read More »get_product_wise_earning( $product_id, $product_price )
Description # Calculate commission (commission priority [1.product, 2.category, 3.vendor, 4.global] wise) Parameters # $product_id (int) (Required) product id. $product_price (float) (Required) product price. $vendor_id (int)… Read More »calculate_commission( $product_id, $product_price, $vendor_id = null )