woocommerce

Get separate Order's tax totals amounts with tax class

冷暖自知 提交于 2021-02-07 09:29:54
问题 I'm making personal a PDF invoice plugin for woocommerce. Some of our products has tax with Reduced rate (%8) or Standart rate (%18). For example, Product A = Reduced rate (%8), Product B = Standart rate (%18). I can get total of tax amount easily but I want to print with sperate tax total amounts with tax class . How to get total Reduced rate tax amount of an order? Also Standart rate. How can I echo them separately? 回答1: The Tax class is not registered anywhere in the order data… It's

Get separate Order's tax totals amounts with tax class

為{幸葍}努か 提交于 2021-02-07 09:29:01
问题 I'm making personal a PDF invoice plugin for woocommerce. Some of our products has tax with Reduced rate (%8) or Standart rate (%18). For example, Product A = Reduced rate (%8), Product B = Standart rate (%18). I can get total of tax amount easily but I want to print with sperate tax total amounts with tax class . How to get total Reduced rate tax amount of an order? Also Standart rate. How can I echo them separately? 回答1: The Tax class is not registered anywhere in the order data… It's

Change “No Product” message in Woocommerce

落花浮王杯 提交于 2021-02-07 09:25:38
问题 I have the problem at the first Woocommerce page. I don't have any product at the shop. For this reason, Woocommerce shows "No Products" message on the first page. Now I want to change this message. How do I do this? Shop address: http://shahroodantenna.ir/shop/ 回答1: Try the following, where you can customize the "No Product" message: add_action( 'woocommerce_no_products_found', function(){ remove_action( 'woocommerce_no_products_found', 'wc_no_products_found', 10 ); // HERE change your

Change “No Product” message in Woocommerce

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-07 09:25:20
问题 I have the problem at the first Woocommerce page. I don't have any product at the shop. For this reason, Woocommerce shows "No Products" message on the first page. Now I want to change this message. How do I do this? Shop address: http://shahroodantenna.ir/shop/ 回答1: Try the following, where you can customize the "No Product" message: add_action( 'woocommerce_no_products_found', function(){ remove_action( 'woocommerce_no_products_found', 'wc_no_products_found', 10 ); // HERE change your

Hook for customizing product image thumbnail

本秂侑毒 提交于 2021-02-07 09:21:21
问题 I need a help on woo-commerce to override the cart product image thumbnail. I am creating a plugin for customizing the product in the detail page and if we do "add to cart" it will be updated in the cart page with a customized thumbnail. If any hook is available for overriding the image, please let me know. 回答1: I've spent many hours searching for the answer also and even asked a Stackoverflow question (WooCommerce: change product image permalink with filter/action hook) which now happens to

Sync additional Billing registration fields with default Wordpress fields in WooCommerce

丶灬走出姿态 提交于 2021-02-07 09:20:33
问题 I Have added the below codes into Woocommerce user registration form to get the Billing Details on the registration page. Now what is happening when a new user register, the first and last name will get registered in the database of billing details & as well as in the default wordpress user account . If the user update his first name & last name on his account (wordpress user account), the same should update on the billing details. Woocommerce settings: Guest checkout is disabled. Checkout

Hook for customizing product image thumbnail

陌路散爱 提交于 2021-02-07 09:20:25
问题 I need a help on woo-commerce to override the cart product image thumbnail. I am creating a plugin for customizing the product in the detail page and if we do "add to cart" it will be updated in the cart page with a customized thumbnail. If any hook is available for overriding the image, please let me know. 回答1: I've spent many hours searching for the answer also and even asked a Stackoverflow question (WooCommerce: change product image permalink with filter/action hook) which now happens to

Hook for customizing product image thumbnail

独自空忆成欢 提交于 2021-02-07 09:20:07
问题 I need a help on woo-commerce to override the cart product image thumbnail. I am creating a plugin for customizing the product in the detail page and if we do "add to cart" it will be updated in the cart page with a customized thumbnail. If any hook is available for overriding the image, please let me know. 回答1: I've spent many hours searching for the answer also and even asked a Stackoverflow question (WooCommerce: change product image permalink with filter/action hook) which now happens to

Hook for customizing product image thumbnail

余生长醉 提交于 2021-02-07 09:19:41
问题 I need a help on woo-commerce to override the cart product image thumbnail. I am creating a plugin for customizing the product in the detail page and if we do "add to cart" it will be updated in the cart page with a customized thumbnail. If any hook is available for overriding the image, please let me know. 回答1: I've spent many hours searching for the answer also and even asked a Stackoverflow question (WooCommerce: change product image permalink with filter/action hook) which now happens to

Sort Order Items by “menu order” in WooCommerce order edit pages

倖福魔咒の 提交于 2021-02-07 09:15:58
问题 I use this function to sort Woocommerce order admin items by menu order but But products with variables do not display properly. And if there are several product with variables in the order, only one of them will be displayed. edit: we have problem with multiple items of a product with different attributes: item1: product A,variable a,attribute: red color, qty 12 item2: Product A, variable a, attribute: green color, qty 18 after sort it only shows : item1: product A,variable a,attribute: red