Save WooCommerce Order details in custom table
问题 I have created a custom database in table order-master in which I will save WooCommerce order total amount , shipping charges and token . For this, I have edited paypemts.php file, code is below: <?php include_once($_SERVER['DOCUMENT_ROOT'].'/canadiapharma.com/wp-config.php' ); global $woocommerce; global $wpdb; echo '<h3>Custom Calculation :</h3>'; $amount_2 = $woocommerce->cart->get_cart_total(); $ship_raw = floatval( preg_replace( '#[^\d.]#', '', $woocommerce->cart->get_cart_shipping_total