Monday, 31 October 2016

How to hide Coupon form in WooCommerce, WordPress?

In case you're not utilizing coupons by any stretch of the imagination, you can conceal the structure on the truck and checkout page by unchecking "coupons checkbox" from WooCommerce > Settings > General, yet most times you'll need to leave coupons empowered on the off chance that you...

Woocommerce add to cart button redirect to checkout Learn

Method 1 for manual link:- Try WooCommerce default method for add to cart button redirect to checkout. You can find the option in the WooCommerce -> Settings -> Products -> Display area. When the option “Redirect to the cart page after successful addition” is checked it will redirect...

Sunday, 9 October 2016

How to change WordPress login page WordPress Logo?

You can change WordPress login page WordPress logo to website logo using Two methods. Method 1:- Using Plugin:- Customize Login Image: https://wordpress.org/plugins/customize-login-image/screenshots/ WP Custom Admin Login Page Logo: https://wordpress.org/plugins/wp-custom-login-page-logo/screenshots/ Method 2:- Using code:- First you need to open your theme’s "functions.php" file and then paste the following code:...

Saturday, 8 October 2016

How to any value display only till 2 decimal points?

Using following methods can display only 2 decimal point value. Method 1:- <?php $final_total=199.9; $formattedNum = number_format($final_total, 2); echo $formattedNum; ?> Method 2:- <?php $final_total=199.9; echo $number = sprintf('%0.2f', $final_total); ?> For more Interesting, Useful Article & codes visit IT New Code. ...

How to hide other Shipping methods When free Shipping is available in WooCommerce, WordPress?

Some times there are many methods use for diffident need & conditions in WooCommerce. In it one comman condition is like "Hide other Shipping methods When free Shipping is available". Below is given solution of this condition. First create Free Shipping method with condition.Then, Add following code in...

How to Create Contact form 7 HTML Structure code for send E-mail in WordPress?

First Create Contact form in contact form 7 Plugin. Then Put following code in Mail structure. CODE:- <div style="width:70%;background: rgba(204, 204, 204, 0.36);padding: 30px;margin: 0 auto;"> <center><img style="max-height: 100px;" src="Logo_url"></center> <center><h2>Inquiry About Site</h2></center> <center> <table style="background: #DDDDDD;color: #005BC6;width: 90%;"> <tbody> <tr style="line-height: 24px;"> <td style="padding: 5px 10px;color: #000;font-weight:...

In WordPress if template name is "something" then excecute code?

Just add following code where you need. <?php if ( is_page_template('template_file_name.php') ) {     // Returns true when 'template_file_name.php' is being used. } else {     // Returns false when 'template_file_name.php' is not being used. } ?> For more Interesting, Useful Article & codes visit IT New...

 

Copyright @ 2016 IT New Code | Developing Code | Designing Code.

Designed by: Templateism