pavelevap / versionpress-for-woocommerce Goto Github PK
View Code? Open in Web Editor NEWVersionPress for WooCommerce
VersionPress for WooCommerce
wp-content/uploads/GeoIP.dat
wp-content/uploads/GeoIPv6.dat
Inspiration from Mergebot (test and define entities for postmeta):
_payment_tokens
exclude_product_categories
exclude_product_ids
product_categories
product_ids
There are customer sessions stored in {prefix}_woocommerce_sessions
table. These data are temporary (48 hours by default, can be more), but are very important, because customer can prepare its cart during the day and make an order next day in the evening. When we delete this data, it is possible that no purchase will happen.
Maybe it would be helpful to make it optional somehow.
{prefix}_woocommerce_sessions
table.When user (customer) is logged in and adds something to cart, it will be stored as usermeta _woocommerce_persistent_cart
(it is cleared after purchase). We should store it and reference correctly to product
entity.
There will be problem with compatibility to older versions. I tested WooCommerce 2.5.5 and received error after running Undo for created order:
PHP Fatal error: Uncaught exception 'Exception' with message 'Schema for table 'woocommerce_shipping_zones' not found' in ...\wp-content\plugins\versionpress\src\Database\TableSchemaStorage.php:47
Stack trace:
#0 ...\wp-content\plugins\versionpress\src\Synchronizers\Synchronizer.php(271): VersionPress\Database\TableSchemaStorage->getSchema('woocommerce_shi...')
#1 ...\wp-content\plugins\versionpress\src\Synchronizers\Synchronizer.php(143): VersionPress\Synchronizers\Synchronizer->createTable()
#2 ...\wp-content\plugins\versionpress\src\Synchronizers\SynchronizationProcess.php(66): VersionPress\Synchronizers\Synchronizer->synchronize('everything', Array)
#3 ...\wp-content\plugins\versionpress\src\Synchronizers\SynchronizationProcess.php(40): VersionPress\Synchronizers\SynchronizationProcess->runSynchronizationTasks(Array)
#4 ...\wp-content\plugins\versionpress\src\Git\Reverter.php(130): VersionPress\Synchronizers\SynchronizationProc in ...\wp-content\plugins\versionpress\src\Database\TableSchemaStorage.php on line 47
Database table woocommerce_shipping_zones
did not exists in this version :-(
It seems that everything works well, but following error appears when making an order:
PHP Notice: Undefined index: in ...\wp-content\plugins\versionpress\src\ChangeInfos\EntityChangeInfo.php on line 74
For CPT order
there is an important postmeta _customer_user
which should be linked to user
.
Example:
Customer is browsing through website and shopping -> _woocommerce_persistent_cart
usermeta is updated.
When making an order, _woocommerce_persistent_cart
is cleared. But when I want to undo this order, I need to also undo _woocommerce_persistent_cart
or they will stay in database forever :-(
I'm looking to implement vp on a headless WP with Woo, and this looked like a good solution vs manual git via gitlab (supporting multiple geographically diverse developers, designers, content contributors etc). Is this still the a-la-mode method?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.