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’ ); $( […]
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 […]
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 […]
$parse_uri = explode( ‘wp-content’, $_SERVER[‘SCRIPT_FILENAME’] ); require_once( $parse_uri[0] . ‘wp-load.php’ ); Include that at the top of your separate file and you’ll be good to go. 🙂
// 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’ );
$available_gateways = WC()->payment_gateways->get_available_payment_gateways();
Need an Employee Time Clock at your work location? Look no further. Make sure your employees get paid correctly and your managers aren’t pulling their hair out. http://codebangers.com/product/all-in-one-time-clock/
jQuery(document).ready(function() { jQuery(‘#upload_image_button’).click(function() { formfield = jQuery(‘#input1’).attr(‘name’); tb_show(”, ‘media-upload.php?type=image&TB_iframe=true’); return false; }); jQuery(‘#upload_texture_button’).click(function() { formfield = jQuery(‘#input2’).attr(‘name’); tb_show(”, ‘media-upload.php?type=image&TB_iframe=true’); return false; }); window.send_to_editor = function(html) { imgurl = jQuery(‘img’,html).attr(‘src’); jQuery(‘#’+formfield).val(imgurl); tb_remove(); } });
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
There are some threads on the internet telling you to do this as a fix: function check_some_other_plugin() { if ( is_plugin_active(‘some-plugin.php’) ) { … } } add_action( ‘admin_init’, ‘check_some_other_plugin’ ); That solution didn’t do anything for me, all I had to do was include plugin.php on my file like this: include_once(‘wp-admin/includes/plugin.php’); And the error was […]