Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Architecture of WooCommerce (flow of execution) #9

Open
szepeviktor opened this issue Apr 30, 2023 · 3 comments
Open

Architecture of WooCommerce (flow of execution) #9

szepeviktor opened this issue Apr 30, 2023 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@szepeviktor
Copy link
Owner

szepeviktor commented Apr 30, 2023

Trim down WC, "WooCommerce lite"

https://github.com/woocommerce/woocommerce

  • Load WooCommerce class from a modified copy of includes/class-woocommerce.php
  • replace __FILE__ with dirname(WC_PLUGIN_FILE).'/includes/class-woocommerce.php'
  • compare class version to plugin version during deployment
    version_compare(\WooCommerce::instance()->version, \Composer\InstalledVersions::getVersion('wpackagist-plugin/woocommerce'), '=');
  • WC Features: src/Internal/Features/FeaturesController.php
  • WC Admin features: filter:woocommerce_admin_features includes/react-admin/feature-config.php
  • WC Blocks: src/Packages.php
  • wget https://github.com/woocommerce/woocommerce/releases/download/7.6.1/woocommerce.zip
@szepeviktor szepeviktor added the help wanted Extra attention is needed label Apr 30, 2023
@szepeviktor
Copy link
Owner Author

szepeviktor commented Apr 30, 2023

sed -i -e "s#\\b__FILE__\\b#dirname(WC_PLUGIN_FILE).'/includes/class-woocommerce.php'#" includes/class-woocommerce.php

@szepeviktor szepeviktor changed the title Architecture of WooCommerce (lifecycle overview) Architecture of WooCommerce (flow of execution) Apr 30, 2023
@szepeviktor
Copy link
Owner Author

szepeviktor commented Jul 12, 2024

Legacy features

var_dump(array_keys(Automattic\WooCommerce\Utilities\FeaturesUtil::get_features(true, true)));
  • analytics
  • new_navigation
  • product_block_editor
  • cart_checkout_blocks
  • marketplace
  • order_attribution
  • hpos_fts_indexes
  • custom_order_tables

@szepeviktor
Copy link
Owner Author

respond with HTTP/410 on trashed products

https://gist.github.com/szepeviktor/dedfeb7d4a5d2a1d1df1139cf48935f5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant