Documentation You are here: start » v » 2.0 » json

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
v:2.0:json [2018/11/29 06:43]
adam [Adding a Coupon or Session Value Automatically Using JSONP]
v:2.0:json [2019/09/09 05:38] (current)
adam [Making a JSONP call to the cart]
Line 27: Line 27:
 If you want to render the cart or checkout after a request, put the ''​render()''​ function call in the ''​done()''​ callback, like this: If you want to render the cart or checkout after a request, put the ''​render()''​ function call in the ''​done()''​ callback, like this:
 <code javascript>​FC.client.request('​https://'​+FC.settings.storedomain+'/​cart?​empty=true'​).done(function() { <code javascript>​FC.client.request('​https://'​+FC.settings.storedomain+'/​cart?​empty=true'​).done(function() {
-            ​FC[FC.json.context].render();​ +     FC[FC.json.context].render();​ 
-            });</​code>​+});</​code>​
  
 ===== Modifying or Removing Items with JSONP ===== ===== Modifying or Removing Items with JSONP =====

Site Tools