Sunnysideup\Ecommerce\Tasks\EcommerceTaskCountryAndRegionDisallowAllCountries
update EcommerceCountry.DoNotAllowSales to 1 so that you can not sell to any country.
Synopsis
class EcommerceTaskCountryAndRegionDisallowAllCountries
extends BuildTask
{
- // members
- protected string $title = 'Disallows sale to all countries';
- protected string $description = 'We add this task to reset all countries from Allow Sales to Disallow Sales - as a good starting point when selling to just a few countries';
- // methods
- public void run()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Members
protected
- $description
- $title