Skip to content

Dokan Developer Portal

Just another WordPress site
  • Sample Page

Dokan Developer Portal

Just another WordPress site
  • Sample Page

How to add notice on Dokan admin notices

  • by Shahadat Hossain
  • January 11, 2022January 11, 2022

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 product manager

  • by Abul Hasan Aunshon
  • September 28, 2021September 29, 2021

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

Dokan Optimization Documentation IDEA

  • by Akash
  • September 15, 2021

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

Class reference of Dokan Order Manager

  • by Rajan Karmaker
  • September 14, 2021

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

prepare_for_calculation( $callable, $product_id = 0, $product_price = 0 )

  • by Rajan Karmaker
  • September 13, 2021September 13, 2021

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 )

get_global_earning( $product_price )

  • by Rajan Karmaker
  • September 13, 2021

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 )

get_vendor_wise_earning( $vendor_id, $product_price )

  • by Rajan Karmaker
  • September 13, 2021

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 )

get_category_wise_earning( $product_id, $product_price )

  • by Rajan Karmaker
  • September 13, 2021

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 )

get_product_wise_earning( $product_id, $product_price )

  • by Rajan Karmaker
  • September 13, 2021September 13, 2021

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 )

calculate_commission( $product_id, $product_price, $vendor_id = null )

  • by Rajan Karmaker
  • September 13, 2021September 13, 2021

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 )

  • 1
  • 2
  • 3
  • …
  • 9
  • Next »

Powered by WordPress