How to pragmatically set order item with the correct subtotal, for specific country, for product prices with tax included

Our store uses prices with tax included and we are selling to Countries with different tax rates. We managed to get woocommerce to calculate everything perfectly with the filter: add_filter( ‘woocommerce_adjust_non_base_location_prices’, ‘__return_false’ ); But when we are trying to create an order pragmatically with the code below: $order = wc_create_order(); $order->set_address( $address, ‘billing’ ); $order->set_address(…

Details

How to add a link to an external website in the description of a customizer control (with Kirki)?

I’m building a WordPress theme and I use the Kirki Customizer framework to add controls and settings to the customiser. I added a description to some controls, using the following code: ‘description’ => esc_html__( ‘Description here’, ‘kirki’ ), Now I want to add a link in the description to an external website. I already tried…

Details