[wp-trac] [WordPress Trac] #50078: admin-ajax add to cart

WordPress Trac noreply at wordpress.org
Mon May 4 15:36:05 UTC 2020


#50078: admin-ajax add to cart
--------------------------+-----------------------------
 Reporter:  fincahome     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hello,

 I had a problem with adding to the cart which did not work all the time on
 my e-commerce site. I had to call on a developer to correct this bug.
 Adding these lines in admin-ajax solved this problem:

 if ( $_REQUEST['action'] == "woocommerce_get_refreshed_fragments" &&
 $_REQUEST['woocs_woocommerce_before_mini_cart'] == "mini_cart_refreshing"
 ) {
         exit();
 }

 Would it be possible to foresee the addition of these lines in your next
 updates please?

 Thank you

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50078>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list