Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
Update to 0.0.13 - add clearRegisterSession and be more explicit abou…
Browse files Browse the repository at this point in the history
…t state of registered variable
  • Loading branch information
bossanova808 committed Feb 13, 2018
1 parent 44bd696 commit c64056f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ Here's some sketch code to get you started:
{# Get the results of user registration, if there are any... #}
{% set registered = craft.commerceRegisterOnCheckout.checkoutRegistered ?? null %}
{% set account = craft.commerceRegisterOnCheckout.checkoutAccount ?? null %}
{# Explicitly clear the http session variables now that we've used them #}
{% do craft.commerceRegisterOnCheckout.clearRegisterSession %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function getReleaseFeedUrl()
*/
public function getVersion()
{
return '0.0.12';
return '0.0.13';
}

/**
Expand Down Expand Up @@ -343,7 +343,7 @@ public function init(){
// Needed because we can't guarantee order of execution of plugins... :(
// DOES not run for other plugin users....
if(isset(craft()->config->get('environmentVariables')['IsImageScience'])){
CommerceRegisterOnCheckoutPlugin::log("Re-run [onOrderComplete] as now we have a new user.");
CommerceRegisterOnCheckoutPlugin::log("Image Science Only: Re-run [onOrderComplete] as now we have a new user.");
craft()->businessLogic_logic->onOrderCompleteHandler($event);
CommerceRegisterOnCheckoutPlugin::log("...done");
}
Expand Down
9 changes: 9 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
[
{
"version": "0.0.13",
"downloadUrl": "https://github.com/bossanova808/CommerceRegisterOnCheckout/archive/0.0.13.zip",
"date": "2018-02-14T00:00:00.000Z",
"notes": [
"[Added] do `clearRegisterSession` to explicitly clear http session vars",
"[Fixed] Explicitly set registered to null if registration is not attempted"
]
},
{
"version": "0.0.12",
"downloadUrl": "https://github.com/bossanova808/CommerceRegisterOnCheckout/archive/0.0.12.zip",
Expand Down

0 comments on commit c64056f

Please sign in to comment.