Skip to content
Advertisement

Tag: woocommerce

woocommerce_cart_calculate_fees load after woocommerce_before_cart_table

I have a problem trying to do some calculations with woocommerce_before_cart_table custom values and passing them to woocommerce_cart_calculate_fees. The problem is that woocommerce_before_cart_table is loading first and I am not able to pass that values from woocommerce_before_cart_table to woocommerce_cart_calculate_fees hook… How can I pass that calculation on woocommerce_cart_calculate_fees hook? Thanks Answer So If I understand you are making some test

Adding an image near the footer on WooCommerce completed orders email notification

I’m trying this code to insert images just near the footer in WooCommerce completed orders email notification, but unfortunately it doesn’t work! Here’s the code I’m trying: Any Clue please? Thanks Answer You should better use a custom hooked function in woocommerce_email_customer_details action hook for example, this way: You could also use woocommerce_email_footer action hook instead which have only one

Pre-filing checkout post code with a custom value

I have been using this custom function below in the previous versions of WooCommerce in order to pre-fill the City and ZIP code fields: It has been working great until the new WC updates. The city still works, but the default ZIP code field doesn’t seem to work anymore. It doesn’t automatically pre-polulate the value. Anything changed? Is there any

Advertisement