Woocommerce Hooks

WooCommerce : Disable Automatic Login After Registration.

When we enable customer registration on My Account page, We will know that when new user is register it’s automatically logged in . it need to change when we need to manually approve each user. In that case we have to stop this Programmatically. we can simply use ‘woocommerce_registration_auth_new_customer’ filter for that. add_filter( ‘woocommerce_registration_auth_new_customer’, ‘__return_false’ …

WooCommerce : Disable Automatic Login After Registration. Read More »

WooCommerce : Upload File in My Account Registration Form.

How to upload profile picture or any file during WooCommerce My Account Registration? For uploading file from WooCommerce My Account Registration form we need to set form enctype type To multipart/form-data.secondly , we need to add html tags for input type file to upload file. then we need to validate them if the field field …

WooCommerce : Upload File in My Account Registration Form. Read More »

WooCommerce : Display a Product Category Dropdown and Redirect To Single Category Upon Selection.

How To add category dropdown Before WooCommerce product loop? WooCommerce product loop is generally on shop page and category page. on both pages WooCommerce provide hooks before the loop and after the loop. “woocommerce_before_shop_loop” “woocommerce_after_shop_loop” For adding a category dropdpwn or other texonomy dropdown We will use “woocommerce_before_shop_loop”. For Both Product loop. (shop page and …

WooCommerce : Display a Product Category Dropdown and Redirect To Single Category Upon Selection. Read More »

WooCommerce : Dynamic Pricing According To Quantity.

How To Set Dynamic Pricing Of Product According To Quantity?. Dynamic Pricing may be set by setting pricing rules based on products, order totals, roles, and product categories. In this post we will set price according to product quantity. Dynamic Pricing According To Quantity Set By Two Condition” Minimum Quantity: This is the Minimum Quantity …

WooCommerce : Dynamic Pricing According To Quantity. Read More »

WooCommerce : Disable Repeat Purchase Of Products.

Want to sell one product only once per user? Restrict User to buy a specific product only once in a lifetime from your WooCommerce site? Some times in WooCommerce products we need to stop user from buying product multiple time, that means user can buy that product only once. Depending on what kind of products …

WooCommerce : Disable Repeat Purchase Of Products. Read More »

WooCommerce : Customize Woocommerce Settings Tab.

WooCommerce is the more powerful e-commerce plugin for WordPress.And what i love with WooCommerce is that there’s an API for nearly everything.There are almost Hooks and filters For Every Customization work. Let’s talk about customizing Woocommerce Admin setting Tabs.To hide a specific Woocommerce setting tab or want to customize the Woocommerce setting tabs, not the …

WooCommerce : Customize Woocommerce Settings Tab. Read More »

Scroll to Top

Contact information