Skip to content

[WooCommerce] Split code related to products and orders #3477

Closed
@felipeelia

Description

@felipeelia

Is your enhancement related to a problem? Please describe.

The WooCommerce feature has 2 files: WooCommerce.php and Orders.php. I suggest we have 4:

  • WooCommerce.php - to keep just the common things between products and orders
  • OrdersAutosuggest.php - the current Orders.php file but renamed
  • Orders.php - code strictly related to orders
  • Products.php - code strictly related to products

As we must keep backward compatibility, the Orders -> OrdersAutosuggest rename will need to be done in a way that calling the method in the old file calls the new file with a warning.

Designs

No response

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions