add_action(‘woocommerce_order_status_completed’, ‘complte_order_process_function’); function complte_order_process_function($order_id){ $order_user_details = new WC_Order($orde...Read More
To edit files in my account folder(inside template directory of woocommerce) : Create a “woocommerce” folder inside our theme folder. Create a “myaccount” folder inside our woo...Read More
Hooks used for Orders in woocommerce: https://codebrothers.eu/woocommerce-hooks/ Woocommerce hooks WooCommerce Visual Hook Guide: Checkout Page...Read More
add_filter( ‘woocommerce_breadcrumb_defaults’, ‘myfun’ ); // function definition function myfun( $defaults ) { // Change delimeter as ‘>’ $defaults[‘deli...Read More
In function.php : // Add action to hook into the approp add_filter( ‘woocommerce_placeholder_img_src’, myfun’ ); /** * Function definition to new placeholder image URL. */ function m...Read More
wishlist short available in below link: https://yithemes.com/docs-plugins/yith-woocommerce-wishlist/02-shortcode.html Displaying wishlist button under each product in product listing page: add ...Read More
Showing search result based on the selected category using ajax: Search form: <form role=”search” method=”get” action=”<?php echo get_permalink( woocommerce_get_pag...Read More
Add following hook in function.php function advanced_search_query($query) { if($query->is_search()) { $query->set(‘post_type’, ‘product’); // category terms search. if (i...Read More