davidzc89
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] How to automatically use billing phone as shipping phone?Nevermind, I fixed it
$order = wc_get_order($order_id);
$order->set_shipping_phone($order->get_billing_phone());
$order->save();Forum: Plugins
In reply to: [WooCommerce] How to automatically use billing phone as shipping phone?@melindahelt thanks for the reply
I’ve seen that article while researching prior to posting here, but it would add an extra step for my customer. They would need to fill in their number twice – one in billing phone field and another in this shipping phone field
Before this, this wasn’t an issue because when my customer filled in the billing phone field, it would automatically be considered as the shipping phone as well (I see this during import/integration or my orders with my courier for generating delivery orders, but that’s outside of the scope of this question)
With the 5.6 update, the shipping phone is a separate value from billing phone. See changelog: Enhancement – Added support for Shipping Phone, in addition to Billing Phone in email templates and in the Order’s edit screen. #30097So now the shipping phone value is always empty
Basically I would like to know how to use the billing phone as the shipping phone automatically.
Forum: Plugins
In reply to: [YITH WooCommerce Wishlist] Wishlist button loading iconActually the problem suddenly went away so I’m not sure how it was fixed also. Sorry @nawafgantare