Skip to content

Latest commit

 

History

History
 
 

unpublish-a-certain-collection-daily

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Unpublish a certain collection, daily

Tags: Collections, Schedule, Unpublish

Use this task with the companion publishing task (see this task's documentation) to make a certain collection of products available on a schedule, and unavailable on another schedule.

Default options

{
  "collection_id__required": null
}

Learn about task options in Mechanic

Subscriptions

mechanic/scheduler/monday+18.hours
mechanic/scheduler/tuesday+18.hours
mechanic/scheduler/wednesday+18.hours
mechanic/scheduler/thursday+18.hours
mechanic/scheduler/friday+18.hours
mechanic/scheduler/saturday+14.hours
mechanic/scheduler/sunday+14.hours

Learn about event subscriptions in Mechanic

Documentation

Use this task with the companion publishing task (see this task's documentation) to make a certain collection of products available on a schedule, and unavailable on another schedule.

For best results, pair this task with Publish a certain collection, daily, from our task library.

To configure this task, enter the "Collection ID" for the collection you wish to unpublish. Refer to this article for assistance on finding Shopify object IDs.

Out of the box, this task will unpublish everything in this collection at 6pm on weekdays, and 2pm on weekends. To adjust this, click the "Show Advanced" link, and tweak the "Subscriptions" setting to taste. Each line represents midnight in your shop's local timezone, plus whatever number of hours you prefer. For example, mechanic/scheduler/tuesday+13.hours would mean Tuesday at 1pm.

Installing this task

Find this task in the library at tasks.mechanic.dev, and use the "Try this task" button. Or, import this task's JSON export – see Importing and exporting tasks to learn how imports work.

Contributions

Found a bug? Got an improvement to add? Start here: ../../CONTRIBUTING.md.

Task requests

Submit your task requests for consideration by the Mechanic community, and they may be chosen for development and inclusion in the task library!