Posts

Showing posts with the label woocommerce-rest-api

Indian rupee Not showing in Invoice PDF WooCommerce site

Image
Indian rupee Not showing in Invoice PDF WooCommerce site Indian rupee Not showing in Invoice PDF WooCommerce site.Right to change fonts deja vu and other things but it didn't work. In Firefox symbols are not even showing on Chrome a square box is appearing next to the amount price I help would be appreciated,code treid action( 'wp_enqueue_scripts', 'add_google_fonts' ); function add_google_fonts() { wp_enqueue_style( 'google_web_fonts', get_stylesheet_directory_uri() . '/dejavu/ttf/DejaVuSans.ttf' ); } Extended currency symbol support Enable this if your currency symbol is not displaying properly Enable font subsetting and Legacy mode has started showing currency symbol.....Resolved but only for chrome.problem remains on IE and firefox 1 Answer 1 As best I've been able to tell there the rupee symbol isn't a part of the DejaVu font. In this situatio...

woocommerce Dragonpay payment gateway

woocommerce Dragonpay payment gateway how and where dragonpay access to my site/plugin so that dragonpay can update of order status in woocommerce?this is the callback method in my plugin class payment_gateway extends WC_Payment_Gateway { function callback(){ global $woocommerce; $order_id = $_GET['txnid']; $status = $_GET['status']; $order = new WC_Order( $order_id ); if ($status == 'S') { $order->add_order_note('Dragonpay Payment Status: SUCCESSFUL'); $order->payment_complete(); wp_redirect($order->get_checkout_order_received_url()); exit; } } } Through it's own extended method payment_complete() normally… You should see in it the update_status() WC_Order method. – LoicTheAztec Jun 29 at 9:13 ...