Woot + Dokan Multi Vender
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page pleaseIf you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.
Quote from Daniel on August 28, 2020, 01:31Hello,
I just came across WOOT and it looks like a very good plugin.
Currently I am working on a multivendor store for bars and restaurants using the Dokan plugin.
Your plugin looks like it should do what I require and show a restaurant style menu for the products.
As my site is multivendor I need to have a product table that is somewhat dynamic inserted into the store.php template and load only products from the author_name.
Is there a way to call a wildcard and extract the author_name dynamically for the storefront loaded from the following code?
Example: https://vendloca.com/-/bravos/
store.php<?php
/**
* The Template for displaying all single posts.
*
* @package dokan
* @package dokan - 2014 1.0
*/if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$store_user = dokan()->vendor->get( get_query_var( 'author' ) );
$store_info = $store_user->get_shop_info();
$map_location = $store_user->get_location();get_header( 'shop' );
if ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb( '<p id="breadcrumbs">', '</p>' );
}
?>
<?php do_action( 'woocommerce_before_main_content' ); ?><?php dokan_get_template_part( 'store', 'sidebar', array( 'store_user' => $store_user, 'store_info' => $store_info, 'map_location' => $map_location ) ); ?>
<div id="dokan-primary" class="dokan-single-store dokan-w8">
<div id="dokan-content" class="store-page-wrap woocommerce" role="main"><?php dokan_get_template_part( 'store-header' ); ?>
<?php do_action( 'dokan_store_profile_frame_after', $store_user->data, $store_info ); ?>
<?php echo do_shortcode("[woot id=1]"); ?>
</div>
</div><!-- .dokan-single-store -->
<div class="dokan-clearfix"></div>
<?php do_action( 'woocommerce_after_main_content' ); ?>
<?php get_footer( 'shop' ); ?>
Hello,
I just came across WOOT and it looks like a very good plugin.
Currently I am working on a multivendor store for bars and restaurants using the Dokan plugin.
Your plugin looks like it should do what I require and show a restaurant style menu for the products.
As my site is multivendor I need to have a product table that is somewhat dynamic inserted into the store.php template and load only products from the author_name.
Is there a way to call a wildcard and extract the author_name dynamically for the storefront loaded from the following code?
Example: https://vendloca.com/-/bravos/
store.php
<?php
/**
* The Template for displaying all single posts.
*
* @package dokan
* @package dokan - 2014 1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
$store_user = dokan()->vendor->get( get_query_var( 'author' ) );
$store_info = $store_user->get_shop_info();
$map_location = $store_user->get_location();
get_header( 'shop' );
if ( function_exists( 'yoast_breadcrumb' ) ) {
yoast_breadcrumb( '<p id="breadcrumbs">', '</p>' );
}
?>
<?php do_action( 'woocommerce_before_main_content' ); ?>
<?php dokan_get_template_part( 'store', 'sidebar', array( 'store_user' => $store_user, 'store_info' => $store_info, 'map_location' => $map_location ) ); ?>
<div id="dokan-primary" class="dokan-single-store dokan-w8">
<div id="dokan-content" class="store-page-wrap woocommerce" role="main">
<?php dokan_get_template_part( 'store-header' ); ?>
<?php do_action( 'dokan_store_profile_frame_after', $store_user->data, $store_info ); ?>
<?php echo do_shortcode("[woot id=1]"); ?>
</div>
</div><!-- .dokan-single-store -->
<div class="dokan-clearfix"></div>
<?php do_action( 'woocommerce_after_main_content' ); ?>
<?php get_footer( 'shop' ); ?>
Quote from Pablo Borysenco on August 28, 2020, 10:24Hello
Try to use this code(EXAMPLE):
<?php echo do_shortcode("[woot id=1 predefinition=".json_encode(array('author'=>$your_id_author))."]"); ?>
Hello
Try to use this code(EXAMPLE):
<?php echo do_shortcode("[woot id=1 predefinition=".json_encode(array('author'=>$your_id_author))."]"); ?>
Quote from Daniel on August 28, 2020, 17:55Hi Pablo,
Thanks for the reply.
I replaced the code with your example and the table is still loading products from all users (products from all stores).
I need the table to load products from only that particular store automatically.
I also unsuccessfully tried:
<?php echo do_shortcode("[woot id=1 predefinition=".json_encode(array('author'=>$store_user))."]"); ?>Sorry I have no coding ability.
Any help greatly appreciated.Best Regards
Hi Pablo,
Thanks for the reply.
I replaced the code with your example and the table is still loading products from all users (products from all stores).
I need the table to load products from only that particular store automatically.
I also unsuccessfully tried:
<?php echo do_shortcode("[woot id=1 predefinition=".json_encode(array('author'=>$store_user))."]"); ?>
Sorry I have no coding ability.
Any help greatly appreciated.
Best Regards
Quote from Pablo Borysenco on August 31, 2020, 09:15Hello
$store_user - This must be a user ID
Hello
$store_user - This must be a user ID