ryansmiller
Forum Replies Created
-
Hi @zorem,
I understand that it might not make sense to you, but some of the orders we ship are unpaid. These customers receive an “Invoice” (with the Custom Status of “Invoice”) that they then have to pay within 30 days after we ship the item. They usually pay by Check.
I realized that we do not need you to add a filter. This is the code that we came up with:
function custom_woocommerce_update_order( $order_id ) { $order = wc_get_order( $order_id ); $shipment_tracking = get_post_meta( $order_id, '_wc_shipment_tracking_items', true ); $order_status = $order->status; if (($order_status == 'invoice') && (!empty($shipment_tracking))) { $order->update_status( 'invoiced-shipped' ); } }; add_action( 'woocommerce_update_order', 'custom_woocommerce_update_order', 10, 1 );Forum: Plugins
In reply to: [The Events Calendar] ACF Relationship field: past events only sort of workHey @faeldray,
I’m having the exact same problem. I’ve added in the filter to return all events in a relationship field, but whenever I reload the page, the events don’t seem to “stick”. This results in having to update the events every time I update the post.
This does seem to have to do with The Events Calendar and the way it filters past events.
Any help would be really appreciated!!
Forum: Plugins
In reply to: [Address Book for WooCommerce] Duplicate “Add New Shipping Address” buttons@beerbits thanks for the suggestion. I am using Elementor, but I do not have the Premium Addons for Elementor plugin installed. It does seem to be a problem around Elementor however.
Forum: Plugins
In reply to: [Address Book for WooCommerce] Duplicate “Add New Shipping Address” buttonsHey @doomwaxer,
Thanks for the helpful information.
My user has a default billing and shipping address. We have not loaded up any additional billing and shipping addresses for customers, but will be doing that soon.
I’m running Storefront, but it looks like the problem is being caused by Elementor (turned off all plugins, minus WooCommerce and WooCommerce Address Book. Then I turned on Elementor and it caused the problem). Not exactly sure why it is though as I’m just calling the WooCommerce My Account shortcode.
When I look at the HTML I see that the second calling of the address book hook is being nested within the first “address_book” div.
<div class="address_book"> <h2></h2> <p class="myaccount_address">The following addresses are available during the checkout process.</p> <div class="col2-set addresses address-book"></div> <div class="add-new-address"> <a href="https://beta.eastcoastfabrics.com/my-account/edit-address/shipping/?address-book=shipping2/" class="add button">Add New Shipping Address</a> </div> <hr> <div class="address_book"> <h2></h2> <p class="myaccount_address">The following addresses are available during the checkout process.</p> <div class="col2-set addresses address-book"></div> <div class="add-new-address"> <a href="https://beta.eastcoastfabrics.com/my-account/edit-address/shipping/?address-book=shipping2/" class="add button">Add New Shipping Address</a> </div> </div> </div>Let me know if you have any thoughts. Thanks!