Table of Contents

Class DiscontinueProductsByDateScheduledTaskAddIn

Namespace
Dynamicweb.Ecommerce.Products.ScheduledTaskAddIns
Assembly
Dynamicweb.Ecommerce.dll

Scheduled task that discontinues products whose DiscontinuedDate has been reached. For every product where the discontinued date is in the past and the product is not already discontinued, the task sets Discontinued to true.

[AddInName("Dynamicweb.Scheduling.DiscontinueProductsByDateAddIn")]
[AddInLabel("Discontinue products by date")]
[AddInDescription("Marks products as discontinued when their 'Discontinued by date' has been reached.")]
public sealed class DiscontinueProductsByDateScheduledTaskAddIn : BaseScheduledTaskAddIn
Inheritance
DiscontinueProductsByDateScheduledTaskAddIn
Inherited Members

Methods

Run()

Runs the task: finds all products whose discontinued date has passed and flips their discontinued flag.

public override bool Run()

Returns

bool
To top