ecreationsllc
Forum Replies Created
-
Sorry, I should have been more clear. I did not re-write your plugin or use your plugin at all. I just wrote my own plugin and complete functionality from scratch to do what I needed it to do. Your plugin works great, it is just not suited for what I need it for.
-Scott
Just an update to my last comment … do not use ~~
'woocommerce_checkout_order_processed'~~ action, insted use'woocommerce_thankyou'action so that the order is completed before moving order items.- This reply was modified 7 years, 1 month ago by ecreationsllc. Reason: formatting
I thank you for your help but I just decided to write my own to do exactly what I want. I just used the
'woocommerce_checkout_order_processed'action to check the order items and create a new order if necessary based on some criteria. Then I just changed the order id to the new one in the order items affected and did a$new_order->calculate_totals();to get the new total and so on. Of course it was a little more complicated than this but it works perfectly.- This reply was modified 7 years, 1 month ago by ecreationsllc. Reason: formatting
This new version now works perfectly! … thank you for your quick fix – the new splitted orders now remain set as “processing” like expected.
Closing this for now. Let me know if there is anything we can do to help.
I hope that answers your question. If you have any other comments or questions, please let us know. Thanks!
Forum: Reviews
In reply to: [Google Customer Reviews for WooCommerce] 5 starsThank you!!!
Forum: Plugins
In reply to: [Google Customer Reviews for WooCommerce] Small errosGreat! I’m glad it resolved itself for you!
Unfortunately, no, I don’t think that’s possible because the badge comes from Google via javascript. They control the position.
Forum: Reviews
In reply to: [Google Customer Reviews for WooCommerce] Works as describedThank you! We’re glad you like it!
Sorry for not replying sooner, this has resolved the issue it would appear.
Please try the following to reproduce the error
function test( $pass ) { if ( is_admin() ) { return $pass; } $cart = WC()->cart->get_cart(); #var_dump($cart); if ( $cart ) { foreach ( $cart as $key => $values ) { $product_id = $values[ 'product_id' ]; $product_cat_ids = wc_get_product_cat_ids( $product_id ); print_r( $product_cat_ids ); } } return $pass; } add_filter( 'woocommerce_countries', 'test', 10 );