Sunnysideup\Ecommerce\Tasks\DeleteOldProducts
Adds all members, who have bought something, to the customer group.
Synopsis
class DeleteOldProducts
extends BuildTask
{
- // members
- protected string $title = 'Delete products that are not for sale and have not been sold for a year';
- protected string $description = 'Takes all the Members that have ordered something and adds them to the Customer Security Group.';
- private static string $last_sold_days_ago = '365';
- // methods
- public void run()
- public void getListOfCandidates()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
private
- $last_sold_days_ago
protected
- $description
- $title