Ticket #2401 (new defect)

Opened 9 months ago

Last modified 4 months ago

Refactor Order factory pattern to be consistent with Payment and Shipping classes

Reported by: sharvey Owned by: sharvey
Priority: minor Milestone: E-Commerce 0.6.0
Component: Modules - ecommerce Version:
Severity: high effort / impact Keywords:
Cc: Hours:

Description

Order still uses a factory concept of Order::create() which is redundant, and makes no sense when the Payment and ShippingCalculator? classes use a different system.

Object::create('Order') should be used instead, like the aforementioned classes, which means we can use Object::useCustomClass() in our _config.php files. This means a net loss of code in Order, too.

Change History

Changed 6 months ago by rlouis

  • owner changed from sharvey to rlouis

Changed 4 months ago by sharvey

  • owner changed from rlouis to sharvey
Note: See TracTickets for help on using tickets.