Oxygen Builder / WooCommerce / Dokan-Multi-Vendor
Budget: €8 – €30 EUR
I need a PHP-Snippet to post Dokan-Vendor-List in Oxygen-Builder on a Single Product Page. Normally Dokan and Oxygen are not compatible, but you can post PHP-Snippets to use Functions from Dokan.
https://wedevs.com/docs/dokan/modules/single-product-multiple-vendor/
"Vendors will get to see the list of all other vendors selling the same product...."
e.g. other Snippet to Post Vendor Link to product:
<?php global $product;
$author = get_user_by( 'id', $product->post->post_author );
$store_info = dokan_get_store_info( $author->ID );
if ( !empty( $store_info['store_name'] ) ) { ?>
<span class="details">
<?php printf( '<a href="%s">%s</a>', dokan_get_store_url( $author->ID ), $store_info['store_name'] ); ?>
</span>
<?php } ?>
https://wedevs.com/docs/dokan/modules/single-product-multiple-vendor/
"Vendors will get to see the list of all other vendors selling the same product...."
e.g. other Snippet to Post Vendor Link to product:
<?php global $product;
$author = get_user_by( 'id', $product->post->post_author );
$store_info = dokan_get_store_info( $author->ID );
if ( !empty( $store_info['store_name'] ) ) { ?>
<span class="details">
<?php printf( '<a href="%s">%s</a>', dokan_get_store_url( $author->ID ), $store_info['store_name'] ); ?>
</span>
<?php } ?>