Sunnysideup\Ecommerce\Tasks\EcommerceTaskLinkOrderAddressesAtBothEnds
works out how many products have been sold, per product.
Synopsis
class EcommerceTaskLinkOrderAddressesAtBothEnds
extends BuildTask
{
- // members
- protected string $title = 'Links the Order Addresses at the Order And Address side';
- protected string $description = 'This only needs to be run if you have an outdated version of e-commerce where the links seem broken';
- // methods
- public void run()
- protected void linkOrderWithBillingAndShippingAddress()
Hierarchy
Extends
- SilverStripe\Dev\BuildTask
Tasks
Line | Task |
---|---|
18+ | : consider whether this does not sit better in its own module. |
18+ | : refactor based on new database fields |
Members
protected
- $description
- $title
Methods
protected
- linkOrderWithBillingAndShippingAddress() — make sure that the link between order and the two addresses is made on both sides.