Hi,
This plugin looked promising but has too many errors to even make it work.
Please do not abandon this!
Please fix.
Thanks
]]>Hi,
On my local install, I can see multiple PHP Notices with
WooCommerce version: 5.3.0
WordPress version: 5.7.2
[16-May-2021 14:22:38 UTC] PHP Notice: Undefined index: post_type in F:\laragon\www\PH\wp-content\plugins\woo-product-availability-scheduler\woocommerce-product-availability-scheduler.php on line 166
[16-May-2021 14:23:28 UTC] PHP Notice: Undefined variable: start_date in F:\laragon\www\PH\wp-content\plugins\woo-product-availability-scheduler\options.php on line 55
[16-May-2021 14:23:28 UTC] PHP Notice: Undefined variable: st_hh in F:\laragon\www\PH\wp-content\plugins\woo-product-availability-scheduler\options.php on line 58
[16-May-2021 14:23:28 UTC] PHP Notice: Undefined variable: st_mn in F:\laragon\www\PH\wp-content\plugins\woo-product-availability-scheduler\options.php on line 60
[16-May-2021 14:23:28 UTC] PHP Notice: Undefined variable: end_date in F:\laragon\www\PH\wp-content\plugins\woo-product-availability-scheduler\options.php on line 66
[16-May-2021 14:23:28 UTC] PHP Notice: Undefined variable: end_hh in F:\laragon\www\PH\wp-content\plugins\woo-product-availability-scheduler\options.php on line 67
[16-May-2021 14:23:28 UTC] PHP Notice: Undefined variable: end_mn in F:\laragon\www\PH\wp-content\plugins\woo-product-availability-scheduler\options.php on line 68
[16-May-2021 14:23:28 UTC] PHP Notice: Undefined index: post_type in F:\laragon\www\PH\wp-content\plugins\woo-product-availability-scheduler\woocommerce-product-availability-scheduler.php on line 166
Please fix.
Thanks
]]>Hello ,
I would like to know how to change text of the CountDown (Product will be available in …… , Days ….. , Hours ……, Min ) to change it in French
]]>Can we schedule an entire category instead of product by product?
]]>Hello, are you planning to modify the extension to be compatible with the new way of calling products in Woocommerce? (“$product->get_id()” instead of “$product->id” in “woocommerce-product-availability-scheduler.php”).
Thanks!
]]>Hello,
Good plugin, does what it claims elegantly. I just wanted to share code that allows this plugin to integrate with WCMp WC-Marketplace
/* WC Marketplace Integration with Product Scheduler*/
/**
* Add Custom Tab in add product page.
* @author WC Marketplace, NKNov12
* @version 3.3.0
*/
add_filter( “wcmp_product_data_tabs”, “wpas_schedule_sale_data_tab_wcmp” );
function wpas_schedule_sale_data_tab_wcmp( $product_data_tabs )
{
$product_data_tabs[“wpas-schedule-sale-tab”] = array(
“label” => __( “Availability Scheduler”, “dc-woocommerce-multi-vendor” ),
“target” => “wpas_product_data_wcmp”,
“class” => array( ), );
return $product_data_tabs;
}
/**
* Add Custom Tab content in add product page.
* @author WC Marketplace, NKNov12
* @version 3.3.0
*/
function add_custom_product_data_content( $pro_class_obj, $product, $post ) {
$now=time();
$product_id=$product->get_id();
$status=get_post_meta($product_id,’wpas_schedule_sale_status’,true);
$start_time=get_post_meta($product_id,’wpas_schedule_sale_st_time’,true);
$end_time=get_post_meta($product_id,’wpas_schedule_sale_end_time’,true);
$mode=get_post_meta($product_id,’wpas_schedule_sale_mode’,true);
$countdown=get_post_meta($product_id,’wpas_schedule_sale_countdown’,true);
if(!empty($start_time))
{
$start_date=date(‘Y-m-d’, $start_time);
$st_mm=date(‘m’, $start_time);
$st_dd=date(‘d’, $start_time);
$st_hh=date(‘H’, $start_time);
$st_mn=date(‘i’, $start_time);
}
if(isset($end_time) &!empty($end_time))
{
$end_date=date(‘Y-m-d’, $end_time);
$end_mm=date(‘m’, $end_time);
$end_dd=date(‘d’, $end_time);
$end_hh=date(‘H’, $end_time);
$end_mn=date(‘i’, $end_time);
}
//prnt_r($product->get_id());die;
//$hh = get_post_meta($product->get_id() , ‘_custom_text_field’ );
//print_r($hh);
?>
<div role=”tabpanel” class=”tab-pane fade” id=”wpas_product_data_wcmp”> <!– just make sure tabpanel id should replace with your added tab target –>
<div class=”row-padding”>
<div class=”form-group”>
<label class=”control-label col-sm-3 col-md-3″ for=’wpas_select_status’><?php _e( ‘Status’, ‘dc-woocommerce-multi-vendor’ ); ?></label>
<div class=”col-md-6 col-sm-9″>
<select name=’wpas_select_status’ class=”form-control” id=”wpas_select_status_wcmp”>
<option <?php if($status==0){ echo “selected”; } ?> value=’0′>Disable</option>
<option <?php if($status==1){ echo “selected”; } ?> value=’1′>Enable</option>
</select>
</div>
</div>
<div class=”form-group”>
<label class=”control-label col-sm-3 col-md-3″ for=’_select_start_time’><?php _e( ‘Start Time’, ‘dc-woocommerce-multi-vendor’ ); ?></label>
<div class=”col-md-6 col-sm-9″>
<input type=”text” id=”wpas_st_date_wcmp” class=”form-control inline-input” name=”wpas_st_date” value=”<?php echo $start_date; ?>” placeholder=”From… YYYY-MM-DD” maxlength=”10″ autocomplete=”off”>
<span class=”inline-input”> @</span>
<span class=”screen-reader-text”>Hour</span>
<input type=”text” id=”wpas_st_hh_wcmp” class=”form-control inline-input” name=”wpas_st_hh” placeholder=”HH” value=”<?php echo $st_hh; ?>” size=”2″ maxlength=”2″ autocomplete=”off”><span class=”inline-input”>:</span>
<span class=”screen-reader-text”>Minute</span>
<input type=”text” id=”wpas_st_mn_wcmp” class=”form-control inline-input” name=”wpas_st_mn” placeholder=”MM” value=”<?php echo $st_mn; ?>” size=”2″ maxlength=”2″ autocomplete=”off”>
<span class=”inline-input”>GMT</span>
</div>
</div>
<div class=”form-group”>
<label class=”control-label col-sm-3 col-md-3″ for=’_select_end_time’><?php _e( ‘End Time’, ‘dc-woocommerce-multi-vendor’ ); ?></label>
<div class=”col-md-6 col-sm-9″>
<input type=”text” id=”wpas_end_date_wcmp” class=”form-control inline-input” name=”wpas_end_date” value=”<?php echo $end_date; ?>” placeholder=”From… YYYY-MM-DD” maxlength=”10″ autocomplete=”off”>
<span class=”inline-input”> @</span>
<span class=”screen-reader-text”>Hour</span>
<input type=”text” id=”wpas_end_hh_wcmp” class=”form-control inline-input” name=”wpas_end_hh” placeholder=”HH” value=”<?php echo $end_hh; ?>” size=”2″ maxlength=”2″ autocomplete=”off”><span class=”inline-input”>:</span>
<span class=”screen-reader-text”>Minute</span>
<input type=”text” id=”wpas_end_mn_wcmp” class=”form-control inline-input” name=”wpas_end_mn” placeholder=”MM” value=”<?php echo $st_mn; ?>” size=”2″ maxlength=”2″ autocomplete=”off”>
<span>GMT</span>
</div>
</div>
<div class=”form-group”>
<label class=”control-label col-sm-3 col-md-3″ for=’_select_end_time’><?php _e( ‘CountDown’, ‘dc-woocommerce-multi-vendor’ ); ?></label>
<div class=”col-md-6 col-sm-9″>
<select name=’countdown’ class=”form-control” id=”countdown_wcmp”>
<option <?php if($countdown==0){ echo “selected”; } ?> value=’0′>Disable</option>
<option <?php if($countdown==1){ echo “selected”; } ?> value=’1′>Enable</option>
</select>
</div>
</div>
<div class=”form-group”>
<p class=”form-field wpas_note control-label col-md-9 col-sm-12″>Note: Start time and End time will be on GMT, Current GMT time is: <?php echo date(“Y-m-d @ H:i”,$now); ?></p>
</div>
</div>
</div>
<?php
}
add_action( ‘wcmp_product_tabs_content’, ‘add_custom_product_data_content’, 10, 3 );
/**
* Save Custom Tab content data.
* @author WC Marketplace, NKNov12
* @version 3.3.0
*/
function wpas_schedule_sale_save_data_tab_wcmp( $product, $post_data ) {
$wpas_error=false;
$wpas_st_hh=00;
$wpas_st_mn=00;
$wpas_end_hh=00;
$wpas_end_mn=00;
$wpas_status =sanitize_text_field($post_data[‘wpas_select_status’]);
$countdown =sanitize_text_field($post_data[‘countdown’]);
$wpas_st_date=sanitize_text_field($post_data[‘wpas_st_date’]);
if(!empty($post_data[‘wpas_st_hh’])) $wpas_st_hh=sanitize_text_field($post_data[‘wpas_st_hh’]);
if(!empty($post_data[‘wpas_st_mn’])) $wpas_st_mn=sanitize_text_field($post_data[‘wpas_st_mn’]);
$wpas_end_date=sanitize_text_field($post_data[‘wpas_end_date’]);
if(!empty($post_data[‘wpas_end_hh’])) $wpas_end_hh=sanitize_text_field($post_data[‘wpas_end_hh’]);
if(!empty($post_data[‘wpas_end_mn’])) $wpas_end_mn=sanitize_text_field($post_data[‘wpas_end_mn’]);
$wpas_start_schedule_hook=”wpas_start_shedule_sale”;
$wpas_end_schedule_hook=”wpas_end_shedule_sale”;
//Y-m-d H:i:s
$wpas_st_time=strtotime($wpas_st_date.” “.$wpas_st_hh.”:”.$wpas_st_mn.”:00″);
//echo “start time”.$wpas_st_time;
$wpas_end_time=strtotime($wpas_end_date.” “.$wpas_end_hh.”:”.$wpas_end_mn.”:00″);
if($wpas_status==1)
{ wp_clear_scheduled_hook( $wpas_start_schedule_hook, array($post->ID));
wp_clear_scheduled_hook( $wpas_end_schedule_hook, array($post->ID) );
wp_schedule_single_event($wpas_st_time, $wpas_start_schedule_hook,array($post->ID));
wp_schedule_single_event($wpas_end_time, $wpas_end_schedule_hook,array($post->ID));
}
// Save Data
if (!empty($wpas_st_date) && !empty($wpas_end_date)) {
update_post_meta(absint( $post_data[‘post_ID’] ),’wpas_schedule_sale_status’,$wpas_status);
update_post_meta(absint( $post_data[‘post_ID’] ),’wpas_schedule_sale_st_time’,$wpas_st_time);
update_post_meta(absint( $post_data[‘post_ID’] ),’wpas_schedule_sale_end_time’,$wpas_end_time);
update_post_meta(absint( $post_data[‘post_ID’] ),’wpas_schedule_sale_countdown’,$countdown);
if($wpas_st_time > time())
{
update_post_meta(absint( $post_data[‘post_ID’] ),’wpas_schedule_sale_mode’,0);
}
}
}
add_action( ‘wcmp_process_product_object’, ‘wpas_schedule_sale_save_data_tab_wcmp’, 10, 2 );
Hi, I’m looking to hide specific variation from the selected schedule. Is this possible to do using this plugin
For example
I want to make an offer for the product that is called Mango
I have variation in this product
1Kg
5Kg
10Kg
I want to make the 1KG schedule availability for 10 Days
I want to make the 5KG schedule availability for 5 Days
I want to make the 1KG No schedule because it’s the regular price
After my schedule, the variation should be hidden in the front end
Is this possible to do
Best regards
Rafilathif
It says plug-in not tested with my version of WP, so I guess the first question should be is: when will this plug-in be updated?
The issue I have is, I have set up a store and have someone else manage the store. I have not given them admin priviliages as I don’t want them to be able to add/delete pages/plug-ins of the website etc. However, this plug-in tab ‘Availability Scheduler’ on the product data section of the product does not show for any type of user other than administrator.
Is this because of the issue in the first sentence? or something else?
I have even added user role editor plug-in in an attempt to find the check box which enables the tab to be available to the Shop_Manager role. I have added ALL the capabilities of the Administrator to the Shop_Manager role and it still doesn’t show. If I change the role of the Shop_Manager to Administrator then it shows, but then that gives the Shop_Manager role all the Administrator capabilities that I didn’t want to give that role.
Help, please…
]]>My site is in development. I want to be able to have the products show and hide themselves on a scheduler, ie I don’t want people to see things they cannot buy.
Also, can I change it from GMT to local time?
]]>Hi,
does this Plugin “Woocommerce Product Availability Scheduler” also work for variable products?
Beste,
Natalia
Hi friends,
users with Administrator access can see the Availability Scheduler on the product data, but user with Shop Manager access cannot. How can we fix this? The Shop Manager needs to set up the schedule.
Thank you.
]]>We are selling the local sellers offered products not like other online website.Our task is Different
and we are setting the company as an attribute when the company offered any offer we’ll add the company name as an attributes on that product
So the local seller always makes offers for a specific time period. So when the offer expire we need to hide the variation only not the Product totally. and the seller will make an offer again ASP their schedule time so if the request us to make an offer we’ll enable back
So to get this action success we think the Scheduler can able to filter by
Attribute
Category
Tag
Brand
etc…
Is this plugin can do this Job?
Hi
In theory, this would be a useful plugin, thanks. However, it is not working.
I have followed the screenshot guidance, but the Status keeps getting set back to ‘Disabled’ (sometimes when I save it it shows ‘Enabled’, but when I next refresh the edit screen is goes back to ‘Disabled’), so my product continues to be displayed.
I have tried disabling all other plugins except Woocommerce and maintenance mode, and using the WP twenty twenty theme.
Please help
Thanks
Clare
Can you change the availability scheduler on multiple items at the same time ?
I have several categories that are only available at certain months of the year and it would be much easier if I could set them all at one time instead of editing all 160 items.
]]>This plug-in is not working… not displaying as an described on the Product details. Tried clearing all Transients to no avail.
]]>The availability scheduler doesn’t seem to work since upgrading to WordPress 5.2.4
and Woocommerce 3.7.1
I need to set a product to DRAFT after the countdown gets to 0. I had read that this plugin is compatible with WCFM – WooCommerce Frontend Manager. But when I set the time nothing happens, neither the date nor the time is displayed.
Example:
? A vendor creates a product. Then, it sets the time and date (Monday 20 @ 13:30 to 15:00), clients can see this product at the store.
? After the times runs out (Monday 20 @ 15:01) this product should be now a DRAFT, clients can’t see this product anymore.
—
What should I do or what do you recomend me to do?
Is it posible to change the product to DRAFT after the countdown gets to 0?
]]>HI there
If you use the link to get behind holding screen then go to this product
https://sweet-prizes.com/product/patient-ninja/
I have the plugin setup and the countdown turned on
I put this shortcode in the description
[wpas_schedule_product columns=’4′ limit=’5′ ]
and on the product page it doesn’t show countdown it shows NO Products Found?
WE are creating a prize website, but thought this would work to turn them on and off?
Your help is appreciated ??
Paul
]]>Looking to remove the countdown on the product preview/thumbnail in the shop main page. I currently have it set up so the products appear in a grid with its basic features – thumbnail, price, purchase button, etc.
Here’s a screenshot of one of the layout options of my shop page, and why I’d like to remove the countdown from just this location:
https://drive.google.com/file/d/1tJJpb05WQdV_hX-0wzN6IfjK-6dcEgOC/view?usp=sharing
Thanks!
]]>Hello,
On multisites, The button of “Add to Cart” will not show up after the countdown hit Zero. Two issue here:
1# On product page, it just refresh but that button not show up.
2# On Woo shop page, it seems trying to refresh but it just freezed.
Thanks
]]>Hi,
The availability scheduler tab is appearing for me on the ‘Edit product’ page for Simple Products but it is not appearing on the ‘Edit Product’ page for Variable products.
Not sure if this is a general bug or just on my particular install.
Thanks.
]]>Where is this resource?
“Hide Add-to-Cart Button when shop is closed”
]]>Hello, excellent work, I only see one detail, use GMT time is not very useful for everyone, how to change to use the time of the store?
]]>Hello, I’ve installed this plugin to test if it worked but after enabling the scheduler and add a start and expiring date/time it does nothing, the product is still purchasable. I’ve put an end date just a few minutes ahead so I could refresh the shop page and see the changes, nothing happened. I’ve tried with simple, variable and Mix and Match products.
Any ideas?
Hi,
I have installed the plugin on my website. But ‘Availability Scheduler’ tab is not appearing in the products. Please help me. It’s bit urgent.
Thanks in advance!
Aman
I use Variable products almost exclusively.
]]>Hello,
I have one problem. This plugin is showed only 5 products. It’s don’t worked from 6-product or another products. I need are help.
Example: https://aksiya.openshop.uz/
]]>Hi there!!
Since last plugin update, I can’t set the Availability Status to ENABLED. It doesn’t work for any product.
Can you help me?
]]>