Sunnysideup\Ecommerce\Tasks\EcommerceTaskCleanupProductFullSiteTreeSorting
Synopsis
class EcommerceTaskCleanupProductFullSiteTreeSorting
extends BuildTask
{
- // members
- protected string $title = 'Cleanup Product Full SiteTree Sorting';
- protected string $description = ' Resets all the sorting values in the Full Site Tree Sorting field in Products (not for the ProductVariations). This field includes the sorting number for the product at hand, as well as all the sorting number of its parent pages... Allowing you to keep the SiteTree sort order for a collection of random products. ';
- protected boolean $deleteFirst = true;
- // methods
- public void setDeleteFirst()
- public void run()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
protected
- $deleteFirst
- $description
- $title