Skip to content
  • Home
  • About
  • Contact

How To Find It

Tips For Program

  • Home
  • HTML
    • HTML
    • Jquery & Javascript
    • css
  • Php
  • sql
  • wordpress
    • woocommerce
      • Woocommerce Hooks
    • Plugin developement Tips
  • General

Category: woocommerce

woocommerce_product_query_meta_query

woocommerce_product_query_meta_query

October 7, 2017 admin
Used to filter  meta queries for woocommerce. Queries in “prefix_postmeta “ table . Sample add_filter(‘woocommerce_product_query_meta_query’ , ‘hide_outofstock_from_best_sellers... Read More
How to edit shipping address fields in woocommerce checkout page?

How to edit shipping address fields in woocommerce checkout page?

October 5, 2017 admin
Using woocommerce_shipping_fields hook we can edit the fields . Sample : add_filter( ‘woocommerce_shipping_fields’, ‘shippingfields’ ); function shippingfields ( $fields ) { $field... Read More
How to change the default address fields in woocommerce checkout.

How to change the default address fields in woocommerce checkout.

October 4, 2017 admin
To alter all billing and shipping fields while checkout. EG: add_filter( ‘woocommerce_default_address_fields’, ‘my_default_address_fields’ ); function my_default_address_fields... Read More
How to remove products with a category from search result in woocommerce

How to remove products with a category from search result in woocommerce

October 4, 2017October 4, 2017 admin
In functions.php add_action( ‘pre_get_posts’, ‘query_posts_order_price’); function query_posts_order_price($query) { if ( $query->is_search ) { $query->set( ‘tax_qu... Read More
Hide ‘out of stock’ products in Woocommerce

Hide ‘out of stock’ products in Woocommerce

October 4, 2017 admin
Hide ‘out of stock’ products in Woocommerce OR How to hide out of stock products using meta query in wordpress add_filter(‘woocommerce_product_query_meta_query’ , ‘hide_o... Read More
How to add shortcode for best selling products in store front end theme?

How to add shortcode for best selling products in store front end theme?

January 10, 2017 admin
Add following code in your functions.php: function storefront_best_selling_products( $args ) { if ( storefront_is_woocommerce_activated() ) { $args = apply_filters( ‘storefront_best_selling_prod... Read More
How to use best selling hook from store front end theme

How to use best selling hook from store front end theme

January 10, 2017 admin
To use best selling hook in store front end theme. use the hook with different name to already defined “function storefront_best_selling_products”: add_action( ‘homepage1’, ... Read More
WordPress plugin to list woocommerce taxonomies with images.

WordPress plugin to list woocommerce taxonomies with images.

December 29, 2016December 29, 2016 admin
First of all set image uploading plugin to categories. We have used plugin: “Category images”: https://wordpress.org/plugins/categories-images/ Then we can choose the categories from the w... Read More
Best Selling product widget code in woocommerce

Best Selling product widget code in woocommerce

December 29, 2016 admin
Add these code to your functions.php to include a new widget for best selling products: function registering_widget() { register_widget( ‘WC_Widget_best_selling_products’); } add_action( &... Read More
How to get the table prefix in woocommerce

How to get the table prefix in woocommerce

December 15, 2016 admin
global $wpdb; $table = $wpdb->prefix.’woocommerce_bonus_point’; //Table name: woocommerce_bonus_point... Read More
  • 3 of 5
  • « Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next »

Recent Posts

  • How to include styles and scripts on wordpress admin pages?
  • Page Template dropdown missing from page attribute in wordpress
  • How to add a logo uploading field in customize settings in wordpress
  • How to add a new page in wordpress admin
  • Template is missing. Standalone themes need to have a index.php template file. Child themes need to have a Template header in the style.css stylesheet.

Categories

  • css (13)
    • Bootstrap (2)
  • General (13)
  • HTML (10)
  • Jquery & Javascript (39)
    • OOP javascript (11)
  • Php (39)
    • Amzon s3 and Php (3)
  • sql (2)
  • wordpress (154)
    • Hooks & Filters (1)
    • Plugin developement Tips (7)
    • woocommerce (50)
      • Woocommerce Hooks (17)
Theme Designed by InkHive. howtofindit©2021