Individual Store Message?

This topic contains 2 reply and 2 voices, and was last updated by Jason 9 years, 9 months ago
Viewing 2 Posts - 1 through 2 (of 2 total)
Author Posts
July 10, 2014 at 3:43 pm 23289
Jason Hi Support I know that through woocommerce one can place a store wide notice. Is there a way to do this for an individual store? The reason I ask is that a seller of ours is going on holiday for a wekk and would like a message that is only displayed on his store. Is this possible somehow? Many thanks Jason
July 10, 2014 at 6:22 pm 23307
Sekander Badsha Sekander Badsha

Hello Jeson,
Please add the following lines anywhere in your themes functions.php
[php]
function dd_store_wise_notice( $store, $info ) {

// comparing to seller ID or User ID
if ( $store->ID == 1 ) {
?>
<p class="dokan-info">Store 1 is temporarily close. Please come back later.</p>
<?php
}
}

add_action( ‘dokan_store_profile_frame_after’, ‘dd_store_wise_notice’, 10, 2 );
[/php]

Put the seller ID instead of 1 here $store->ID == 1. You can get the seller id from the user list. Just hover the mouse over the sellers name. and you’ll see the id in the bottom of your page.

Let me know if you feel any difficulties.

July 10, 2014 at 7:26 pm 23310
Jason Jason

Wow, good skills Sekander.

Worked perfectly 🙂

Thanks

Viewing 2 Posts - 1 through 2 (of 2 total)