Custom Coupon type woocommerce wordpress

In newer versions of WooCommerce, you will need to Register a custom coupon type Validate the coupon Calculate & Apply the discount Register custom coupon type Validate the coupon Calculate & Apply Discount Sources: @raju_odi’s answer on this exact question @Chris Morris’s answer to Woocommerce custom coupon type with custom discount always return 0

Prevent category updates in WordPress Woocommerce REST API

I take care of an E-Commerce that receives the products automatically through the physical store’s system. The physical store automatically syncs products including names, prices, quantities and categories. The physical store system doesn’t allow me to choose the items I want it to update. It simply sends this data via REST API and is automatically … Read more

WordPress Error: There has been a critical error on your website. Please check your site admin email inbox for instructions

There are following steps you can refer to resolve such issues. most of times this issue occurs due to bad/partial plugin installation. Always turn on debug.log file using adding below properties in wp-config.php file. define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); Go to wp-content/debug.log file and check if you have any Fatal error there. … Read more

WordPress get_terms() function not display custom taxonomy categories for woocommerce

The following code I wrote is supposed to show all the product categories of a wordpress ecommerce website. I’m using it inside a woocommerce hook that is responsible to render the contents before the main shop page, the woocommerce_before_main_content. I’m not able to get the categories, I will see only one category and the others … Read more