Check if item already in cart – WooCommerce

In WooCommerce, Looking for code by which you can check Product that you going to ADD to CART already exist in Cart or not ? By Below code you can check whether an item has already been added to your WooCommerce cart or not ? # $product_id is ID for product which you going to… Read More »

Display Product Short Description in WooCommerce Checkout

In WooCommerce, Products are displayed in graphical form at Cart Page or Checkout. Though, some of the customers prefer a short description on cart page or checkout page as well. So if they are buying many products that are visually similar they can easily cross check them before confirming their order on checkout. so, we… Read More »

Customize the Thank you page in WooCommerce

Whenever a customer makes a purchase on your shop, you should always be grateful to them by showing them an appreciative gesture using a Thank you page. WooCommerce has already done this for you by redirecting customers to the WooCommerce Thank you page after a successful purchase. However, sometimes it’s just not enough. What can… Read More »

Rename “Add to Cart” Button if Product Already at Cart

If Product already at WooCommerce Cart than change “Add to Cart” Button text and Displaying a different text instead of default “Add to Cart” text. So user can easily communicate with product. In Woocommerce it’s very easy. Woocommerce provide 2 filter hook for that. one filter hook for the Single Product page and another filter… Read More »

Custom Sidebar in WordPress Without Plugin

This is easiest way to add custom sidebars to your theme. Default in the wordpress theme there is one or two sidebar. Here i show you how to create Custom Sidebar in WordPress Without Plugin. First of all Register your Sidebar. So First to add this following code in your theme’s functions.php file of your… Read More »

Add Additional Custom Column to the WordPress Users Table

To add additional custom field on Wp-admin side Users listing table add following code in your active theme functions.php file. Dont forgot to update column name Meta key according it used in your functionality for get user additional details. Add Additional Input field to User Profile page Wp-admin side // /* start Back end extra… Read More »

Customize Checkout Page in Woocommerce

Hide Billing field on Checkout Page Woocommerce # Hide Shipping field on Checkout Page Woocommerce # Reorder Billing fields on Checkout Page Woocommerce # WooCommerce version 2.6 and below function reorder_wc_billing_fields($fields) { $order = array( “billing_first_name”, “billing_last_name”, “billing_company”, “billing_address_1”, “billing_postcode”, “billing_city”, “billing_email”, “billing_phone” ); foreach($order as $field) { $ordered_fields[$field] = $fields[“billing”][$field]; } $fields[“billing”] = $ordered_fields;… Read More »

Force SSL to Website all pages with .htaccess

If you installed SSL correctly but in some of pages not getting Green in Address bar ? Its because of mixed content loading in you pages. Mixed content mean some resource get loaded by https and some without https. so now to get green address and forcefully apply SSL to all resource that get loaded… Read More »

Font Color Not getting change on iPhone for Numbers?

Having issue with iPhone & Safari Browser for number like Font color not getting change even you already assign by CSS. Reason is number iPhone identify Number as Phone Number and adding link on it so it getting display like it is anchor link with tel attribute a[href^=tel] { color: inherit; text-decoration: none; } Add… Read More »

Category: CSS