Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
v:2.0:json [2018/10/16 23:31] – [Making a JSONP call to the cart] marija | v:2.0:json [2019/09/09 05:38] – [Making a JSONP call to the cart] adam | ||
---|---|---|---|
Line 27: | Line 27: | ||
If you want to render the cart or checkout after a request, put the '' | If you want to render the cart or checkout after a request, put the '' | ||
<code javascript> | <code javascript> | ||
- | | + | FC[FC.json.context].render(); |
- | });</ | + | });</ |
===== Modifying or Removing Items with JSONP ===== | ===== Modifying or Removing Items with JSONP ===== | ||
Line 50: | Line 50: | ||
<code javascript> | <code javascript> | ||
FC.client.on(' | FC.client.on(' | ||
- | if (FC.json.coupons.length == 0) { | + | if ($.isEmptyObject(FC.json.coupons)) { |
FC.client.request(' | FC.client.request(' | ||
if (FC.util.hasError(' | if (FC.util.hasError(' |