• Resolved lalaloo

    (@lalaloo)


    Hello.
    We are finding it quite difficult to integrate Dokan with other areas of our website because of the limited shortcodes available. So we are trying to create our own.

    For example, you use “seller_id” which does not correlate with any other area of a wordpress membership. Say, for example, buddypress.

    So, how can we convert “seller_id” to “username”?

    We also find that existing shortcodes are very limited too. Example, how can we add columns to your shortcode :

    [dokan-best-selling-product no_of_product=”5″ seller_id=”” ]

    Thank you in advance.

Viewing 1 replies (of 1 total)
  • Hello @lalaloo ,

    I am sorry to hear that you are finding it difficult to integrate Dokan with other platforms. Here are some guideline you may follow:

    1. Seller ID is generated for each seller as soon as they register as a vendor. The function which is responsible for this is dokan_get_current_user_id
      You can find out the function in – wp-content\plugins\dokan-lite\includes\functions.php

      You may use other method and replace the function for unsername.

    2. The shortcode which you are using is generated from here – wp-content\plugins\dokan-lite\includes\class-shortcodes.php

      You can customize the shortcode using this filter dokan_best_selling_product_per_page

    Let us know if you need further information.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘seller ID’ is closed to new replies.