Pawan Kumawat

Shortcodes included with Dokan

Dokan is a popular multi-vendor marketplace plugin for WooCommerce that allows you to create and manage a marketplace where multiple vendors can sell their products. Dokan provides several shortcodes that you can use to display various elements and functionalities on your marketplace pages. Here are some of the essential shortcodes provided by Dokan:

1. Store Listing Shortcode:
– `[dokan-stores]`: Displays a list of all the stores/vendors on the marketplace.

2. Store Page Shortcode:
– `[dokan-store]`: Displays a single vendor’s store page with their products.

3. Store Category Wise Product Listing Shortcode:
– `[dokan-product-cat]`: Displays products from a specific category of a vendor/store.

4. Vendor Dashboard Shortcodes:
– `[dokan-dashboard]`: Displays the vendor dashboard page.
– `[dokan-edit-account]`: Displays the vendor account settings page.
– `[dokan-orders]`: Displays the vendor’s orders page.
– `[dokan-products]`: Displays the vendor’s products page.
– `[dokan-add-product]`: Displays the form to add a new product by the vendor.

5. Vendor Registration Shortcode:
– `[dokan-vendor-registration]`: Displays the vendor registration form.

6. Store Settings Shortcode:
– `[dokan-store-settings]`: Displays the vendor/store settings page.

7. Store Location Shortcode:
– `[dokan-store-location]`: Displays the vendor/store location map.

8. Store Support Shortcode:
– `[dokan-store-support]`: Displays the vendor/store support contact form.

9. Store Support Topics Shortcode:
– `[dokan-support-topics]`: Displays the vendor/store support topics list.

10. Store Reviews Shortcode:
– `[dokan-store-reviews]`: Displays the vendor/store reviews.

11. Vendor’s Published Product Listing Shortcode:
– `[dokan-best-selling-product]`: Displays a vendor’s best-selling products.

12. Vendor’s Featured Product Listing Shortcode:
– `[dokan-featured-product]`: Displays a vendor’s featured products.

13. Vendor’s On Sale Product Listing Shortcode:
– `[dokan-on-sale-product]`: Displays a vendor’s products on sale.

These shortcodes allow you to create custom vendor pages, display store listings, show product listings by category or vendor, and create custom vendor dashboards.

You can use these shortcodes in your WordPress pages or posts to showcase different aspects of your Dokan multi-vendor marketplace. For more information on how to use these shortcodes and their customization options, you can refer to the official Dokan documentation or documentation provided by the plugin’s developers.

Categories

Related Blogs

Add Custom Price on Bulk Purchase in Woocommerce Using ACF

To achieve this functionality, you’ll need to create a custom ACF repeater field for quantity and price in the product admin panel and then display all the prices on the product single page. Additionally, you’ll have to calculate the price according to the selected quantity when a product is added to the cart using WordPress hooks.

WooCommerce: Check if Product ID is in the Cart

To check if a specific product ID is in the cart in WooCommerce, you can use the `woocommerce_before_cart` action hook, which is fired before the cart page is displayed. Here’s how you can achieve this:

Convert PHP Array into JavaScript Array.

To convert both a normal PHP array, a multidimensional PHP array, and a nested PHP array into JavaScript arrays, you can use JSON encoding and decoding as previously explained. JSON is well-suited for handling various data structures, including both simple arrays and complex nested arrays.

Add Custom Product Data Tab

Learn how to enhance your WooCommerce product editor by adding a custom product data tab. Follow a step-by-step guide using the woocommerce_product_data_tabs filter and the woocommerce_product_data_panels action. Create a custom tab with your desired label, and include your own fields or content within the panel. Customize your product data to collect and display additional information, providing a tailored experience for your WooCommerce products.