Sometime client having requirement to disable admin toolbar because its disturbing site layout or maybe we want to remove this toolbar for specific custom wp roles as per client said. So there is 2 ways to achieve this task. First one we can manage it from wordpress backend settings and second one we can hide … Continue reading Remove the WordPress admin toolbar from site
Some cases we required to create dynamic woocommerce order by programatically. So here we are covering this part below. Woocommerce provided wc_create_order() function to create order by code. This function has array argument and its return wc_order or wc_error.
To the right implementation, in following example we have created one woocommerce product called basic plan. We offering this plan for free. so that means on click of buy we will directly create woocommerce order for that particular user. so for 0 price user dont need to go on cart and checkout page to purchase package. This auto creation of order will skip that cart and checkout process for user.
Most of the websites owners want to extend some plugins functionality as per their requirement. But as per development perspective developer can’t modify changes directly into plugin, because if plugin get updated then all changes or extra code written in plugin will erase. So whats a solution on it? Solution is while making plugin from … Continue reading Overridable plugin templates from theme
In day to day development tasks we need specific product information to do some operations on it or else we have to show this information somewhere. But every time it take much time to find its functions and utilize it in our code. So this post is for you guys, if you have product id … Continue reading Get product information in woocommerce (Product name, type, id, price, sku etc..)
Google map provides so many features for developers to show google map in website. Today in this post, I am explaining one of the method to show google map by address. You can choose whatever address you want to display in map. To show map I have created one function generate_googlemap() to generate iframe. You … Continue reading Google map by address
This tutorial is about to Jquery password validations. We will see how to check password strength by jquery script which will give you strong and effective password. While entering password i have added different rules to validate password like minimum characters, uppercase and lowercase, number and special characters should be present in password and according … Continue reading JQuery password validations
Jquery is very strong framework to do such kind of tasks/operations. Today we will see how can we simply validate a form using custom jquery code. There is also validation plugins available in market like “validate.js” and so on.. ofcource we will also see this “validate.js” plugin validation in our future posts but now we … Continue reading Jquery Validations