Category: Woocommerce

Woocommerce Javascript events

Woocommerce Checkout JS events $( document.body ).trigger( ‘init_checkout’ ); $( document.body ).trigger( ‘payment_method_selected’ ); $( document.body ).trigger( ‘update_checkout’ ); $( document.body ).trigger( ‘updated_checkout’ ); $( document.body ).trigger( ‘checkout_error’ ); $( document.body ).trigger( ‘applied_coupon_in_checkout’ ); $( document.body ).trigger( ‘removed_coupon_in_checkout’ ); Woocommerce cart page JS events $( document.body ).trigger( ‘wc_cart_emptied’ ); $( document.body ).trigger( ‘update_checkout’ ); $( […]

Read more

Woocommerce Action List

Template Hooks Actions HOOK FILE(S) get_product_search_form woocommerce-template.php woocommerce_.$product->product_type._add_to_cart woocommerce-template.php woocommerce_after_main_content archive-product.php, single-product.php woocommerce_after_shop_loop archive-product.php, loop-shop.php, woocommerce-template.php woocommerce_after_shop_loop_item content-product.php woocommerce_after_shop_loop_item_title content-product.php woocommerce_after_single_product content-single-product.php woocommerce_after_single_product_summary content-single-product.php woocommerce_after_subcategory content-product_cat.php woocommerce_after_subcategory_title content-product_cat.php woocommerce_archive_description archive-product.php, woocommerce-template.php woocommerce_before_main_content archive-product.php, single-product.php woocommerce_before_shop_loop archive-product.php, loop-shop.php, woocommerce-template.php woocommerce_before_shop_loop_item content-product.php woocommerce_before_shop_loop_item_title content-product.php woocommerce_before_single_product content-single-product.php woocommerce_before_single_product_summary content-single-product.php woocommerce_before_subcategory content-product_cat.php woocommerce_before_subcategory_title content-product_cat.php woocommerce_product_thumbnails product-image.php woocommerce_sidebar archive-product.php, single-product.php […]

Read more

Woocommerce Conditional Tags

Introduction The Conditional Tags of both WooCommerce and WordPress can be used in your Template files to change what content is displayed based on what conditions that page matches. For example, you might want to display a snippet of text above the shop page. With the is_shop() Conditional Tag you can. Since WooCommerce uses custom post types you can […]

Read more

Disable Payment Method Based on Country Woocommerce PHP

// Disable gateway based on country function payment_gateway_disable_country( $available_gateways ) { global $woocommerce; if ( isset( $available_gateways[‘cod’] ) && $woocommerce->customer->get_country() <> ‘IN’ ) { unset( $available_gateways[‘cod’] ); } return $available_gateways; } add_filter( ‘woocommerce_available_payment_gateways’, ‘payment_gateway_disable_country’ );

Read more
PHP Functions

Woocommerce List all Available Payment Gateways

$available_gateways = WC()->payment_gateways->get_available_payment_gateways();

Read more

Woocommerce Incredible Multi Page Checkout Extension on Sale + Coupon = Super Cheap

Woocommerce Incredible Multi Page Checkout is on sale. Give customers a more thorough checkout process.  Download it today. Plus we have a coupon that gives you an additional $5.00 off of the plugin price. 50 uses total.  Don’t miss out. Coupon code: nertcoupon Check out the plugin Here          

Read more