Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #119 from Adobe-Marketing-Cloud/fix-commerceservic…
Browse files Browse the repository at this point in the history
…e-for-cart

fix commerce service for cart
  • Loading branch information
bpauli committed Nov 4, 2016
2 parents 64e6694 + f98ce28 commit a8e903f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var global = this;
*/
use(function () {

var commerceService = resource.adaptTo(com.adobe.cq.commerce.api.CommerceService);
var commerceService = currentPage.getContentResource().adaptTo(com.adobe.cq.commerce.api.CommerceService);
var session = commerceService.login(request, response);
var resolver = resource.getResourceResolver();

Expand Down Expand Up @@ -68,4 +68,4 @@ use(function () {
total: total,
entries: _entries
}
});
});

0 comments on commit a8e903f

Please sign in to comment.