Giter Site home page Giter Site logo

versionpress-for-woocommerce's People

Contributors

pavelevap avatar

Stargazers

 avatar

Watchers

 avatar  avatar

versionpress-for-woocommerce's Issues

Store sessions?

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.

  • Track {prefix}_woocommerce_sessions table.
  • Recognize entities.
  • Add actions.

Persistent cart data

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.

Problems with older WooCommerce versions

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 :-(

Unite some related commits for Undo

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 :-(

Is this still active/required?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.