This small plugin provide the functionality to add a button to upload CSV and then search the products by sku which are in first column of csv. Create a folder by name ‘multiple-sku-search’ under plugins directory of wordpress site. In this folder create a file ‘multiple-sku-search.php’ and copy-paste the above code in this file. Now […]
Woocommerce
Show featured products on top on woocommerce shop page
Add this code to active theme functions.php, it will work with woocommerce 3.
Delete all attribute name in woocommerce
To delete all attribute names in woocommerce
Delete All Woocommerce Products
Sometime It needs to delete all the products of Woocommerce below is the list of query which can be executed directly to MySQL to delete all Woocommerce data in database. Basically such kind of query is required to delete all Woocommerce products which are imported/created in development process. Note: Please take a backup of your […]
Product Additional Information tab is not displaying
Additional Information tab is displayed by woocommerce in case product weight or product dimesions are set to a non-zero value. In case there is still need to display product addtional information tab then add the below code to your themes functions.php file. add_filter(‘wc_product_enable_dimensions_display’,’show_addtional_info_tab_always’); function show_addtional_info_tab_always(){ return true; } It generally needed when it requires to […]
How to implement category pagination in woocommerce
Update the below code in yourtheme/woocommerce/archive-product.php file to get pagination on category listing on default product page. ========================= <?php if ( ! defined( ‘ABSPATH’ ) ) { exit; // Exit if accessed directly } get_header( ‘shop’ ); ?> <?php if(is_shop()){ ?> <div class=””> <?php $base_thumb = wc_get_page_id( ‘shop’ ); $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( $base_thumb ), “full” ); […]