Posts

Showing posts with the label woocommerce

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 change total price of a varible product on quantity change

Woocommerce change total price of a varible product on quantity change The objective is to CALCULATE TOTAL PRIZE MULTIPLIED by QUANTITY. Below code works with simple products but not with VARIABLE PRODUCTS. I was to able makeup to this. The Problem is Variation Price is not getting multiplied. <?php add_filter( 'woocommerce_variable_price_html', 'bbloomer_variation_price_format_310', 10, 2 ); function bbloomer_variation_price_format_310( $price, $product ) { // 1. Find the minimum regular and sale prices $min_var_reg_price = $product->get_variation_regular_price( 'min', true ); $min_var_sale_price = $product->get_variation_sale_price( 'min', true ); // 2. New $price if ( $min_var_sale_price < $min_var_reg_price ) { $price = sprintf( __( 'From: <del>%1$s</del><ins>%2$s</ins>', 'woocommerce' ), wc_price( $min_var_reg_price ), wc_price( $min_var_sale_price ) ); } else { $price = sprintf( __( 'From: %1...

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 ...

Wordpress woocommrce pay here button to add invoice

Wordpress woocommrce pay here button to add invoice I'm a beginner for the WordPress.I used WooCommerce plugin.I want to know how to how to do like this part. website where user can add products in cart and submit order without paying (Order Quote) and receives thank you page. After receiving order, admin will review quote order and make changes in product price or add other charges and send proposal back to customer. Now Customer who has submitted order will review Order in My Orders screen and accept Website Admin proposal, which will then show use "Pay Now" button and customer will be again redirected to payment page for payment. anyone know how to do that correctly ? thanks You mean you want user to pay and user shouldn't get payment invoice ? – Sudharshan Nair 2 days ago ...