Change WPeC customer cookie performance and synchronicity#1598
Closed
JeffPyeBrook wants to merge 1 commit intowp-e-commerce:masterfrom
Closed
Change WPeC customer cookie performance and synchronicity#1598JeffPyeBrook wants to merge 1 commit intowp-e-commerce:masterfrom
JeffPyeBrook wants to merge 1 commit intowp-e-commerce:masterfrom
Conversation
* Wrap the check for the WPeC customer cookie in a function * Rather than check for the customer cookie on the ready event the ready event sets a timer to cause the cookie check to happen very shortly after the ready event processing completes * Fix parsing of the customer cookie check response to retrieve the customer id from the AJAX response generated with the PHP function wp_send_json_success * When the cookie is present it is parsed to extract the WPeC customer id, this ensures that the customer ID is set when the cookie is present jsut the same as when the cookie is being created * Added some console messages to aid WPeC customer support in tracking down performance and reliability issues that have been reported in the WordPress support forum during the summer/fall of 2014 * Added time out value to HTTP request, commented out with a note for the site owner
Contributor
Author
|
@JustinSainton do want this PR? if not i won't bother rebasing it |
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix for issue #1597