$("#advanced_cart").html("<%= escape_javascript(render('advanced_cart')) %>");


<% if @order.line_items.present? %>
  $("#advanced_cart").html("<%= escape_javascript(render('advanced_cart')) %>");
<% else %>
  window.location.reload(true); 
<% end %>

Refresh page if cart is empty
Refresh page if cart is empty
