Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/dev/1.7' into 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrebenchuk committed Jun 16, 2015
2 parents 387fc7e + 3e4e5d5 commit 21a1967
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ protected function getHeaderConversionRules()
{
return [
'customerEmail' => 'email',
'firstname' => 'firstName',
'lastname' => 'lastName',
'prefix' => 'namePrefix',
'suffix' => 'nameSuffix',
'middlename' => 'middleName',
'customer_firstname' => 'firstName',
'customer_lastname' => 'lastName',
'created_at' => 'createdAt',
'updated_at' => 'updatedAt',
'store_id' => 'store:originId',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected function beforeProcessEntity($entity)
*/
protected function afterProcessEntity($entity)
{
if ($entity->getStatus()->getName() === CartStatus::STATUS_OPEN) {
if ($this->existingEntity->getStatus()->getName() === CartStatus::STATUS_OPEN) {
$this->updateRemovedCartItems($entity);
}

Expand All @@ -61,6 +61,7 @@ protected function afterProcessEntity($entity)
->updateCartStatus($entity);

$this->existingEntity = null;
$this->existingCartItems = null;

return parent::afterProcessEntity($entity);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ workflows:
to: $email_to
subject: $email_subject
body: $email_body
type: 'html'
- @call_method:
method: 'addRelatedEmail'
object: $cart
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ workflows:
required: false
init_actions:
- @assign_active_user: $.result.user
- @assign_value: [$email_subject, ""]
- @assign_value: [$email_body, ""]
- @assign_value: [$notes, ""]
- @assign_value: [$email_from, $.result.user.email]
- @assign_value: #Assign email to as shopping cart email
conditions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ workflows:
to: $email_to
subject: $email_subject
body: $email_body
type: 'html'
- @call_method:
method: 'addRelatedEmail'
object: $order
Expand Down

0 comments on commit 21a1967

Please sign in to comment.