WooCommerce : Add same product to cart twice instead of changing quantity in Cart Page.

In some of cases, We like to have product in WooCommerce added in the cart as separate items and not as the same item with the changed quantity. We can do that with pasting the code To the functions.php of theme. Example : This Is Done Basically In Two Steps: Step 1: Split product quantities …

WooCommerce : Add same product to cart twice instead of changing quantity in Cart Page. Read More »

WooCommerce: Programmatically Remove Product From Cart Using Product Id.

We Know while adding an item to cart requires just its product ID, removing it from the cart we need to know the “cart item key” .Many Times in WooCommerce we need to remove a product from cart using product ID,if a certain condition is met we follow these steps:- Generate Cart Id From Product …

WooCommerce: Programmatically Remove Product From Cart Using Product Id. Read More »

WooCommerce : Display “FREE” if Product Price is 0 or Empty On WooCommerce Cart Page Or Checkout Page.

Do you ever need to replace the default WooCommerce pricing label for a free product? Instead of showing the default WooCommerce pricing label of $0.00, you want to show custom text,like “FREE” or “Download Now”. In WooCommerce when product price is zero or empty then on cart page or checkout page it will show zero …

WooCommerce : Display “FREE” if Product Price is 0 or Empty On WooCommerce Cart Page Or Checkout Page. Read More »

WooCommerce : Show Only One Error Message on Checkout Field Error.

Their are approximately 7 to 10 default field which are required on WooCommerce checkout field. In case these all have error then their are so much error in top, you can see in screenshot below. so for removing or we can say replacing all error with only one msg , you can view in screenshot …

WooCommerce : Show Only One Error Message on Checkout Field Error. Read More »

WooCommerce : Custom validation on checkout page for First and Last names to Contain Only Letters.

Woocommerce allow to fill user information on it’s checkout page.It also allow create user account at time of checkout. on checkout page their are many fields provided by woocommerce which may have input type number or text. Woocommerce allow user to fill number instead of text in first name and last name field which not …

WooCommerce : Custom validation on checkout page for First and Last names to Contain Only Letters. Read More »

WooCommerce : How to Create a Custom Product Tab on Product page.

For Adding Product Tab on Product Page we have to define tab and it’s callback in woocommerce hook ‘woocommerce_product_tabs’. The ‘woocommerce_product_tabs’ filter provided by WooCommerce should be used for adding a custom tab to a single product page in WooCommerce. The code should be added to the functions.php file of your theme. Example : Before …

WooCommerce : How to Create a Custom Product Tab on Product page. Read More »

WooCommerce : How to Remove Product Tabs on Product page.

The default product tabs On Product page are: Description Additional Information Reviews The ‘woocommerce_product_tabs’ filter provided by WooCommerce should be used for removing tabs on single product page in WooCommerce. The code should be added to the functions.php file of your theme. Before function RemoveReviewsTab( $tabs ) {   unset( $tabs[‘additional_information’] );   unset( $tabs[‘description’] );   unset( …

WooCommerce : How to Remove Product Tabs on Product page. Read More »

WooCommerce : When adding product to cart and then refreshing the page it adds product again to cart.

Generally in WooCommerce clicking on Add-to-Cart and it successfully add the product and display the message that the product is added. And on refreshing the page and message did not disappear and it adds the product once more to cart. And how many times am refreshing the page it is adding the product again to …

WooCommerce : When adding product to cart and then refreshing the page it adds product again to cart. Read More »

Mandatory qualities that provide a web development company with distinction

What according to you, is the best means to get a job done these days? Which is the one tool that can be always relied upon to make sure that one’s ideas, opinions, or businesses, receive the desired exposure? There are a variety of ways to achieve the intended. But websites seem to have an …

Mandatory qualities that provide a web development company with distinction Read More »

Click on map and get Longitude -Latitude.

<div id=”MyMap” style=”width:100%;height:500px;”></div> <script> function myMap() {   var mapCanvas = document.getElementById(“MyMap”);   var myCenter=new google.maps.LatLng(51.508742,-0.120850);   var mapOptions = {center: myCenter, zoom: 5};   var map = new google.maps.Map(mapCanvas, mapOptions);   google.maps.event.addListener(map, ‘click’, function(event) {     LocationMarker(map, event.latLng);   }); } function LocationMarker(map, location) {   var marker = new google.maps.Marker({     position: location,     map: map   });   var infowindow = new google.maps.InfoWindow({     content: …

Click on map and get Longitude -Latitude. Read More »

Scroll to Top