Add below codes on your function.php file and fix the image alt attribute missing error. function code_gravatar_alt($codeGravatar) { if (have_comments())…
Code Snippet to change stock status option in woocommerce.Here I change out of stock option text to Sold and you…
Code Snippet to change out of stock text to sold in woocommerce add_filter(‘woocommerce_get_availability’, ‘availability_filter_func’); function availability_filter_func($availability){ $availability[‘availability’] = str_ireplace(‘Out of…
Code Snippet for adding discount for cart total in woocommerce add_action( ‘woocommerce_cart_calculate_fees’, ‘code_discount_based_on_total’,25, 1 ); function code_discount_based_on_total( $cart ) {…
Use the following steps to add product custom field for retail price. Step 1: Add Custom field input at product…
Use the following code Snippet to display savings in woocommerce cart page. PHP Code function code_wc_discount_total() { global $woocommerce; $discount_total…
PHP snippet to add a extra fee to the checkout for specific payment gateway.You can copied and pasted in your…
PHP snippet to add a extra fee to the checkout for every payment gateway.You can copied and pasted in your…
How to redirect customers to a custom landing page after the order process?Some of them need specific page redirection after…
Add below codes on your function.php file and get the sub total amount while customer increase the product quantity on…