Code

Discussion on WordPress Posts & WooCommerce Products Scheduler / Restrict Access

Discussion on WordPress Posts & WooCommerce Products Scheduler / Restrict Access

Cart 176 sales

vanquish does not currently provide support for this item.

72 comments found.

Hello,

Apologies in advance for the lenght of this comment…. :shocked: !

I bought your plugin a few weeks ago and would like to confirm with you that I am setting my rules up properly, and/or understand where I am mistaken as not all rules apply.

My intent is to make certain pages of my ecommerce site visible/invisble to the clients (actually anybody that is not me / the admin of the site) and when set as invisible, redirect them to a given url.

I have 5 specific pages that need to get published / unpublished every week, as shown below, each page contains woocommerce products:

Page: PAGE-1 Publish: Tuesday 5:00pm Unpublish: Sunday 5:01pm Redirect: redirect1 Comment: Page 1 needs to be visible every Tuesday as of 5pm, until Sunday 5:01pm (when page goes offline and the redirection starts being effective for everybody but me, the admin)

Page: PAGE-2 Publish: Wednesday 5:00pm Unpublish: Monday 5:01pm Redirect: redirect2 Comment: Page 2 needs to be visible every Wednesday from 5pm until the following Monday 5:01pm (when it goes offline and the redirection starts being effective for everyone but me)

Page: PAGE-3 Publish: Thursday 5:00pm Unpublish: Tuesday 5:01pm Redirect: redirect3 Comment: Page 3 needs to be visible every Thursday from 5pm until the following Tuesday 5:01pm (when it goes offline and the redirection starts being effective)

Page: PAGE-4 Publish: Friday 5:00pm Unpublish: Wednesday 5:01pm Redirect: redirect4 Comment: Page 4 needs to be visible every Friday from 5pm until the following Wednesday 5:01pm (when it goes offline and the redirection starts being effective)

Page: PAGE-5 Publish: Saturday 10:00am Unpublish: Thursday 5:01pm Redirect: redirect5 Comment: Page 5 needs to be visible every Saturday from 10am until the following Thursday 5:01pm (when it goes offline and the redirection starts being effective)

Here is how I have set-up the rules for Pages 1 and 2, but with no luck as they go offline/unpublish fine, but are back online/pblished the next day… I’d appreciate your feedback on what I am doing wrong, or why this may be happening:

PAGE 1: -Rule name: “Page 1” -Select item type: “Custom post” -Select custom post: “Page 1” (ie select page-1 in drop-down list) -Create a new date rule where: . Status: publish . Choose role: leave all unselected . Redirect: none . Start date type: Day of the week . Days of the week: Tuesday . Months: all selected . Years: 2017 . Start hour: 17 . Minute: 0 -Add new schedule date where: . Status: unpublish . Choose role: Client . Redirect: “redirect1” (ie select redirect1 page in drop-down list) . Start date type: Day of the week . Days of the week: Sunday . Months: all selected . Years: 2017 . Hour: 17 . Minute: 01

PAGE 2: -Rule name: “Page 2” -Select item type: “Custom post” -Select custom post: “Page 2” (ie select page-2 in drop-down list) -Create a new date rule where: . Status: publish . Choose role: leave all unselected . Redirect: none . Start date type: Day of the week . Days of the week: Wednesay . Months: all selected . Years: 2017 . Start hour: 17 . Minute: 0 -Add new schedule date where: . Status: unpublish . Choose role: Client . Redirect: “redirect2” (ie select redirect2 page in drop-down list) . Start date type: Day of the week . Days of the week: Monday . Months: all selected . Years: 2017 . Hour: 17 . Minute: 01

And so on for the remaining 3 pages…

As said, the core issue is that pages go offline just fine but get back online too early (I guess at midnight the same day)...

Thanks in advance for your kind help!

Leedoy

Hi, than you for reporting a detailed description of what you what to achieve.

Few questions: the PAGE 1 is properly goes off line on Sunday at 17:00 but returns online at Sunday at 0:00? or at Tuesday at 0:00?

Why only fort the unpublish rule you selected the Client role? Note that in this way the page is not setted as draft, but just it will not accessible by client role. So if you are accessing your site as Admin, you will se that page normally published.

have you enable the Invert item(s) status during unmatched time period for one of the two rules?

Can you check in the wordpress dashboard if the plugin is properly syncronized with your time?

Hello again, thanks for the super quick reply! To answer your questions:

1. I have tried different set ups, so am not 100% sure on the exact time when PAGE 1 came back published/visible. Yesterday it was offline, then this

2. I chose Client because I thought anybody else than me would be a client (or have a client role, as the plugin specifies ” if you select “unpublish” and then select “Customer” as role, the item will be invisible only for all the users with customer role and non-logged users.”. I guess I am wrong in doing so? Should I select all roles excluding “Admnistrator”? I know that the setting I chose (selecting “Client” only) means I can still see the page even during unpublished hours, but I use a private session / browser to check how the site shows up for unlogged/first-time visitors, and I could see the PAGE 1 just fine…

3. Nope, there are no “Invert items status during unmatched time period” enabled.

4. I did check the dashboard and time synchronization: everything is OK from this pov.

Thanks again!

So the issue is that is goes online too earlier or that it goes offline when it has not?

I need to know exactly which is the issue in order to try to figure out which tests I have to perform in order to fix it.

From the 1. I’m a bit confused: you say that you are not sure when the PAGE 1 came back published…so how exactly you tested that it was published to early?

You also say that yesterday it was offline, but actually it should be online from Tuesday, is it right? So you page are not published as they should be?

if you send me via private message (click on my name then use the low-right box):
  1. you email address
  2. admin access to wp-admin area
  3. FTP access
  4. Detailed description of the issue of a page link that is not working (for exampe: http://yoursite/page1 now should be offline instead is online. The scheduling rule associated it is named “page1”).
I can try to perform some live debug on my plugin scripts in order to get more clues about the issue and fix it. Thank you.

Hello!

I am in the process of buidling my ecommerce website and looking for a plugin that allows setting expiry date/time of a series of products. I have been using the demo version to understand better your plugin and am very interested in it. Nevertheless, I have a few questions. As I am a clear begginer in building an ecommerce site, apologies if these will sound ridiculous to you :-)

1. Will the plugin work well with other woocommerce plugins such as woocommerce quick view plugin (https://fr.wordpress.org/plugins/woo-quick-view/) and woocommerce pick up locations (https://codecanyon.net/item/woocommerce-pickup-locations-wordpress-plugin/18679931?s_rank=7)? I guess the answer is yes as these 2 are also woocommerce compatible, but I dont know to what extend plugins can intefere negatively…. and these other 2 are the ones I will need as well.

2. Is it possible to hide an entire category (of products), including the category tab/link itself from the shop? When playing with the demo I have created several categories (A,B,C) to which I have associated different products (X,Y,Z). I have successfully created a rule of Unpublish > category A -> all products (XYZ) -> date/time, which, when reaching date/time set, triggers all the products of category A to disappear (= success!). Nevertheless, the category A itself (title/tab) remains visible in my shop, and when clicking it, it displays a disappointing empty space and the message “no products were found matching your selection”. Therefore is it possible to remove the category all together at that date/time, and/or at leats to customize the text field that show up? (vice-versa: is it possible to create a category full of products that altogther will only display at the set date/time?)

Thanks a lot!

Hi, thank you for your appreciation :)

For what concerns your questions:

  1. I think there should be no problem, however I haven’t directly tested so I cannot assure you at 100%
  2. No unfortunately this is aspect not managed by the plugin
If you need further info, feel free to ask :)

Lovely! Thaks for quick answer, much appreciated :-) I will let you know if I need any help when I buy/install the plugin in the next few days!

Would be very helpful if this was compatible with WooCommerce Memberships – currently you can only restrict viewing/purchasing of products by a time period from when the user purchases a membership. We would love to be able to define when a product is viewable and purchasable by a specific date and by member status. This would, for example, allow us to make all products immediately available to Platinum members, but we could then drip products out one per week to Gold members.

Hi,
thank you for the suggestion, actually it would be very usefull. I’ll see if it will be possible to extend the plugin to be compatible with that one, but for now I cannot give you any eta.
Thank you.

Hi, My name is Caio, I am a developer from Brazil. I have a cliente who has a WordPress marketplace made using Handy Theme, WooCommerce and WCVendors plugins. She really likes your plugin and wishes to get it – in order to continue, I would like to know if your plugin works well with the theme and plugins mentioned above. (Of course, consideration there is no javascript in the website’s code). Thanks so much, have a nice day.

Hi Caio,
the plugin has not been teste on Handy theme and doesn’t have a specific WCVendors support. However if you send me a private message (click on my name then use the low-right box) I’ll reply with my email address where you can send me those plugins and theme files.

I can then setup a demo site where you can test together to see if it works as you expect.

hello,

I have purchased the plugin. However after selecting the dates when the product needs to be unpurchasable, the product is still getting added to the cart.

It sounds strange. As you can see from the demo site: http://www.codecanyon.eu/wpps/ products are properly setted purchasable/unpurchasable according the configured rules.

In your case it could be due to a availability rule miscondiguration. Could you share a complete admin access to your site? if so send me via private message (click on my name then use the low-right box). Thank you.

HI! Need a little help, I have 3 product categories (7am-11am),(12pm-3pm),(5pm-10pm), Those are also the time period during which the respective products be made available for buying, Outside those times the products should be visible but unpurchasable. Can you please advise me on this. Thank You.

Hi,
you should the create the following rules:
  1. 0 am – 6:59am
  2. 11:01am – 11:59am
  3. 3:01am – 4:59am
  4. 10:01 – 23:59am
For which the the visibility rule is visible but unpurchasable.

Hi The plugin will be very useful for my project, I have been trying the demo but I am not able to figure out how to hide the Add to Cart button during the time when the product is not for sale. Please help.

You made well, but you configured the rule to be active only for customer role (while the demo account is shop manager role). I’ve just unchecked that role and now the product is unavaiable to purchase from the 9:00

If you need to make the product unpurchasable only, for example the 9:00 to 11:00, you have just to create a second rule in which you make the product puglished and purchasable and the start hour is 11:00

I’ve configured this second rule as example in the demo site :)

Thank you for the reply. Bought it!

Glad to hear that :)
thank you for purchasing! :)

Hello! I’ve started using this plugin on one of my websites and noticed a strange issue. I am using this plugin to rotate products that are menu items, we have a rotating menu. The first scheduling rule in line is set to end on 5/31 at 11:59pm, at which time the publish status should invert and the next rule in line take affect beginning on 6/1 at 12:00am. Everything worked as expected, except that it all happened yesterday, a day early. The old rule shut off at 11:59 on 5/30 and the new rule started at 5/31 at 12:00am. My server offset timing is correct, the correct time and date show in my dashboard. As far as I can tell it should have happened correctly. Am I missing something? I appreciate your help – thanks!

Hi,
just to see I’ve understood the issue, it happened that both rules were trigger one day earlier than expected, right?

Would be possible to have a backend access to run some tests on my plugin? If so, please send me via private message (click on my name then use the low-right box).
In alternative could you share a complete screenshot of the rules you have configured? Thank you!

Message sent. Thanks for a fast response!

Just a follow up, I’ve noticed that the change appears to have happened right around 11:59 am, not pm. So 12 hours early.

I just installed the plugin and it doesn’t let me create a rule. I tried to uninstall and re-install but when I click ‘Add New Rule’ under the ‘Scheduler” tab nothing happens. Any ideas?

Thanks for the quick reply. I have gone through and deactivated all plugins but no luck :( This is the console error: Uncaught TypeError: Cannot read property ‘destroy’ of undefined in select2.full.min.js

Found it—it’s the Woocommerce plugin! (The official one by Automattic). Any suggestions? Or a recommendation for a different Woocommerce plugin?

Thank you for reporting this issue. Maybe I’ve a new plugin version that should fix your issue. Could you send me a private message (click on my name then use the low-right box) reporting your email? I can send you the new version at once! :)

Pre-Sales Question: Is there a way to import dates using a csv? I’m going to import 100 posts. I want to set a publish and unpublish dates for all of them. Is that possible?

Hi,
No unfortunately​ the plugin hasn’t such a feature.

Is there any way for me to display a product as “Unpurchasable” to general visitors, but offer a link for subscribers to add to cart? If not, could you suggest a work around using your plugin?

No, unfortunately the plugin hasn’t such a feature :(
However It is a nice suggestion, I’ll consider to implement it in a future release!

Okay, so is there a way at all to restrict visitors without the link from purchasing an item? I’m worried of people hijacking an event that they’re not invited to. Not everyone purchasing will be a registered member, and not everyone accessing the event will be eligible to purchase.

Note that if an item is unpurchasable it cannot be bought. Even if an users added it to cart in some way (for example he added it before it was made unpurchasable) the plugin denies to complete the checkout removing the item from cart.
Give a try to the demo site :)

I would like to purchase the plugin if it is possible to change the “catalog visibility” and “stock status” instead of drafting items when the time period.

Hi,
unfortunately is not possible. You can only set items as draft or in the unpurchasable state (items are visible in frontend but the ‘add to cart’ button is removed and the item cannot be bought even if it was previously in cart)

Ciao vanquish,

Grazie per questo plugin!!

Solamente una domanda: io sto usando il plugin con WooCommerce, è normale che a tutti i prodotti ai quali viene assegnata una regola (seleziono singoli prodotti e non uso le categorie) viene aggiornata la data di pubblicazione ad oggi? Anche se manualmente cambio la data di pubblicazione ai prodotti, al primo refresh torna a quella del giorno corrente. Non capisco se possa servire a qualcosa al plugin, se ho configurato qualcosa erroneamente oppure se sia un piccolo bug. Ovviamente il problema “vero” sta nella pagina di archivio dello Shop, dove se ordino i prodotti per novità, mi trovo sempre gli stessi prodotti in cima alla lista.

Grazie!

WD Studio

Ciao,
grazie per la segnalazione! si è un bug, ho provveduto a rilasciare una nuova versione (3.6) che risolve il problema. Lo potrai scaricare tra 3 – 4 giorni direttamente da CodeCanyon (il loro sistema di approvazione ci impiega un po prima di pubblicare i nuovi aggiornament), tuttavia se mi invii un messaggio privato (clicca sul mio nome e quindi usa il box in basso a destra) con la tua email, ti posso inviare direttamente l’aggiornamento!

Hello,

I’m trying to test your WordPress Posts & WooCommerce Products Scheduler / Restrict Access plugin before I buy it and I don’t seem to have the time offset configured correctly. I am located in San Francisco California. Thank you for your assistance.

Cory

Hi,
to confiure the proper time offset in order to syncronize the plugin with your local time you have to:
  1. See the actual plugin time using the dashoboard widget: http://www.codecanyon.eu/wpps/wp-admin/?loggedout=true
  2. Adjust the minute offset in the Scheduler page: http://www.codecanyon.eu/wpps/wp-admin/admin.php?page=wordpress-post-scheduler-configurator
For the first time set the time offset as 0. In this way you can see what is the current server time so you can understand which is the time offsett you have to use to syncronize the plugin.

For example, in my case (I’m located in Italy), once setted the 0 offset, I see that the proper offsett for me is 60 minute.
Let me know if you need further help :)

I believe I just left a comment on another plugin of yours, but think that this might be the better option. I am still not positive as to how it works though. I was able to see your demo (which is a great feature to include by the way!) but was a little confused about the date settings. I assume that the Start date is when the item will be unpublished if that is what is selected. But what is the Invert item status and End time at the bottom for?

Yes and I’ve just answered to it :)

Yes you right. To simply unpublish an item you have just to choose the Unpublish strategy, a date strategy and a starting hour&minute when it will be unpublished.

the Invert item status is to revert the status after an End date. For example:

Let’s suppose you want the item to be unpublish only during the weekend. So you will choose Saturday and Sunday, select the unpublish strategy, start from 0:00, select the invert status option and end at 23:59.
In this way once the Sunday -> 23:59 is reached, the item will be reverted to the plublish status.

In your case if you want just to set an expiration date, you have just to configure the Specific date option and a start hour&minute. So once reached that date, hour and minute the item will be uniplished and rever reverted to published.

You can have a test in the demo site :)

Hi!!

I am really interesting in your plugin, but i have some questions.

1.- Can i put that “X” categorie are not available for sale in the next month, but if somebody select now any product of that categorie, and select a date from the next month (i have delivery slots plugin) , then will not be able to continue the purchase.?

2.- i was giving a look to your plugin, but when i add the configure and select assignment strategy to all the categories except the selected, nothing happened and all the categories were blocked! But when i choose all selected items then work perfect!

Can you help me?

Thank you

Hi,
  1. Yes the plugin denies the checkout to be completed if in cart there is a product that cannot be purchased. For example it could happen that an user adds a product to cart then leaves the web site. Then the admin configures a rule that makes that product unpurchasable. To avoid that the returning customer could complete the checkout with the product that was in his cart, the plugin before the checkout is completed checks his cart and in case warns the user about that product that must be removed. However it has not been tested with 3rd party plugin (like the one you are using for the delivery slots)
  2. Thank you for reporting the issue. I’ve fixed and released a new version. Will be avilable in 3 – 4 days (due to codecanyon approval system that takes awhile to publish new updates). However if you send me a private message once purchased (click on my name then use the low-right box) I can send you the update via email!
If you need some more info, feel free to ask :)

I am using your testing site before I buy to make sure it works for me. I have set up three categories, three products (one in each category) and three rules.. How can I test the users to see if I create a user, that they only have access to one of the categories?

Hi,
you can use the user demo (pass: demo) that has Shop manager role and the user demo6 (pass: demo) that has Customer roles.
In this way you can set the visibility for one of those roles to test that it wont be available for the other.

I guess, what I am trying to find out is how the customer side is set up. Is the “roles” under the schedule tab for woocommerise customers or wp-admin users? How do I upload a list of users for the store and assign them to a specific role?

The plugin has any feature for import users and assign them roles.

What do you mean if the roles are for customers or wp-admin users? In the schedule tab are listed all the roles currently in the system, they can both identify customers, special users or admins (it up to how you have configured your installations). Checking the roles you need you can filter the item visibility.

When will the post(s) trigger their actions? Is this through WP-Cron? For instance, if I set a post to publish at midnight, and to unpublish 5 minutes later, is it not going to catch that? So, I guess I’m asking, how frequent is the “polling” and what happens if someone has their WP-Cron disabled (in my case)?

In this case there is no problem.
The triggering is performed when an user visit the site. The plugin checks if there are posts that had to be unpiblished according to the current time, and if so it unpublishes them.
In this way you are sure you do not miss any cron schedule when you have disabled it like in your case.

Ah well done. Good idea. But does this add extra server load on a large community website (such as mine)? I will sometimes have 30-75 simultaneous users on the website. Do you have it relaxing from excessive database querying under situations like that?

It does some caching and uses optimized queries to prevent server overload,
However it surely adds some more computation during page loading when an user access the site.

Hi, I just purchased and installed your Post Scheduler. It’s brilliant and just what I needed (to schedule the Publishing and Unpublishing of LearnDash LESSONS for 7 days, each new Friday of the year and then repeat the following year).

I just set up my first scheduled custom post, but I got this error on the front end only (back end still works):

Fatal error: Uncaught Error: Call to undefined function is_shop() in /home3/filmsco/public_html/testfilmscoringacademy/wp-content/plugins/wordpress-post-scheduler/classes/frontend/WPPS_PostPublisherManager.php:64 Stack trace: #0 /home3/filmsco/public_html/testfilmscoringacademy/wp-includes/plugin.php(601): WPPS_PostPublisherManager->filter_loop(Object(WP_Query)) #1 /home3/filmsco/public_html/testfilmscoringacademy/wp-includes/query.php(2493): do_action_ref_array(‘pre_get_posts’, Array) #2 /home3/filmsco/public_html/testfilmscoringacademy/wp-includes/query.php(4006): WP_Query->get_posts() #3 /home3/filmsco/public_html/testfilmscoringacademy/wp-includes/class-wp.php(608): WP_Query->query(Array) #4 /home3/filmsco/public_html/testfilmscoringacademy/wp-includes/class-wp.php(726): WP->query_posts() #5 /home3/filmsco/public_html/testfilmscoringacademy/wp-includes/functions.php(952): WP->main(’’) #6 /home3/filmsco/public_html/testfilmscoringacademy/wp-blog-header.php(16): wp() #7 /home3/filmsco/public_html/testfilmscoringacademy/ in /home3/filmsco/public_html/testfilmscoringacademy/wp-content/plugins/wordpress-post-scheduler/classes/frontend/WPPS_PostPublisherManager.php on line 64

Finally, if you have any insight on how I can make a post Publish on, for example, the 24th Friday of the Year, I would be most grateful, as I am trying to set up an annually repeating Course of 52 weekly Lessons.

Thank you, Evan

Hi,
thank you for reporting the issue. I’ve released a new 2.9 version that should address it. It will be ready to download in a day or two (CodeCanyon approval system takes awhile to approve updates).
However if you send me a private message (click on my name then use the low-right box) I can send you the update directly via email.

For what concerns the “24th Friday of the Year” question, for now the plugin has not that feature.
You can only schedule by selecting a specific day of the week or of the month. However it is a nice suggetion, I’ll try to see if it is possible to implement in a future release.

Meanwhile let me know if the 2.9 version fixes your issue :)

Does your Scheduler plugin allow it’s functionality on bbPress Forum Topic Posts?

Hi,
yes. I’ve installed the bbPress plugin on the demo site and I’ve configured an example rule that deactives a topic from 09:00 to 10:00. You can have a look here: http://www.codecanyon.eu/wpps/wp-admin/admin.php?page=wordpress-post-scheduler-configurator
user: demo
pass: demo

you can try to create some topics in the frontend and create some rules in the backend to see if the plugin fits your needs and expectations.

Please make sure to set the Minute offset setting according to yuour local time. To see the current server time go to the Dashboard, you will see a widget reporting the server time according the configured offset (that should match your local time).
by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey