{"id":4991197,"date":"2014-06-09T03:26:33","date_gmt":"2014-06-09T03:26:33","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/not-doing-ajax-order-review-causing-errors\/"},"modified":"2016-08-21T21:21:43","modified_gmt":"2016-08-21T21:21:43","slug":"not-doing-ajax-order-review-causing-errors","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/not-doing-ajax-order-review-causing-errors\/","title":{"rendered":"Not doing ajax Order Review &#8211; causing errors"},"content":{"rendered":"<p>First off I would like to say, I really do love this plugin. <\/p>\n<p>I have noticed a change in the order review php file from since version 2.1.8 till now (2.1.10) that the order_review div cannot load when ajax is running.<\/p>\n<p>Here is the code:<\/p>\n<pre><code>&lt;?php if ( ! is_ajax() ) : ?&gt;&lt;div id=&quot;order_review&quot;&gt;&lt;?php endif; ?&gt;\n.....\n&lt;?php if ( ! is_ajax() ) : ?&gt;&lt;\/div&gt;&lt;?php endif; ?&gt;<\/code><\/pre>\n<p>If someone would like to make an add on for coupons and extra amount by a click of a button on the checkout page and would like the order review div to be refreshed afterwards.<\/p>\n<p>How do I go about doing this when the above code is in placed?<br \/>\nAs it currently disables refreshing using custom ajax.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/woocommerce\/<\/p>\n","protected":false},"template":"","class_list":["post-4991197","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4991197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4991197\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4991197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}