siliconforks
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce PayPal Payments] What is /?wc-ajax=ppc-simulate-cart ?Upon further investigation, it appears that if the “PayPal Smart Buttons” feature is disabled on the single product page, and the “Pay Later” feature is also disabled, then the plugin will no longer make the
/?wc-ajax=ppc-simulate-cart
AJAX requests. While this may not be ideal for sites which want these features, it seems an effective solution for now.Forum: Plugins
In reply to: [WooCommerce PayPal Payments] What is /?wc-ajax=ppc-simulate-cart ?OK, I see on the single product page, it is making a large number of
/?wc-ajax=ppc-simulate-cart
requests – it looks like it is making 2 requests when the page loads, and then (if it is a variable product) it makes another 2 requests each time the customer selects an attribute. So if the product has 3 attributes, there might be a grand total of 8 AJAX requests.Are all of these requests necessary? Is there any way to turn these off?
My understanding is that the processing of each order involves both the WooCommerce ShipStation Integration plugin and the WooCommerce Shipment Tracking plugin. Basically, the WooCommerce ShipStation Integration plugin detects the presence of the WooCommerce Shipment Tracking plugin, and then calls the function
wc_st_add_tracking_number()
defined in WooCommerce Shipment Tracking to add the tracking number. This function stores the tracking number in the post meta with key_wc_shipment_tracking_items
.The WooCommerce ShipStation Integration plugin also adds an order note. (If we didn’t have the WooCommerce Shipment Tracking plugin installed, then adding the order note would be the only thing it does.)
The Route plugin parses the order note, finds a tracking number, compares it against its own stored version of the tracking number, which does not match (because the tracking number from the order note was converted to lowercase). Then it calls the
routeapp_cancel_tracking_order()
method, which ultimately ends up removing the tracking number from the_wc_shipment_tracking_items
post meta.Also, we sent you a private support request which contains details about the store this is running on – did you see that?