How to display woocommerce product details on wp page
How to display woocommerce product details on wp page
How to display woocommerce product details on wp page
How to find the file path in WordPress?
Make the product page as homepage WooCommerce
For single product page, I tested it with the themes: ShoppingCart and Storefront and it works fine : in function.php: function shoppingcart_setup(){ add_filter(‘woocommerce_short_description’, function(){ global $product; $units_sold = $product->get_total_sales(); if ( $units_sold ) return ‘<p>’ . sprintf( __( ‘Sold: %s’, ‘woocommerce’ ), $units_sold ) . ‘</p>’; }, 10, 2); } add_action( ‘after_setup_theme’, ‘shoppingcart_setup’ ); Note: … Read more
Found it! global $woocommerce; $shipping_method = $_POST[‘shipping_method’][0]; $shipping_amount = $woocommerce->cart->get_shipping_total();
How can I filter products by meta in Woocommerce REST API?
Add custom field address_3 before city in user profile
Add this code snippet in functions.php and let me know. /* * AST: get UPS Tracking number from order note * */ add_action( ‘woocommerce_rest_insert_order_note’, ‘action_woocommerce_rest_insert_order_note’, 10, 3 ); function action_woocommerce_rest_insert_order_note( $note, $request, $true ) { //check if AST is active if ( !function_exists( ‘ast_insert_tracking_number’ ) ) return; //check if order note is for UPS if( … Read more
How can I send information when a order is completed to my own POS?
Woocommerce get attributes