WooCommerce Show Product Total Quantity

Product Total Quantity

If customers add quite a lot products to cart, when they view the cart, they are difficult to find out total how many they added to cart.

Or, if there is a situation: Purchase any product, get 20% discount if more than 100 pieces. Customers need to know how many they have added to cart.

Here is the coding to show total how many products added to cart:

<?php global $woocommerce; ?>
<?php echo sprintf(_n('%d', '%d', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?>

I added the coding before Cart Subtotal, you may add to any place you want.

<tr class="cart-subtotal">
	<th><?php _e( 'Product Quantity', 'woocommerce' ); ?></th>
	<td><?php global $woocommerce; ?><?php echo sprintf(_n('%d', '%d', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?></td>
</tr>

Show in Cart Page

To show the total quantity in cart page, you need to copy /plugins/woocommerce/templates/cart/cart-totals.php to your child theme /woocommerce/cart/ to prevent any error.

Result:
WooCommerce Show Product Total Quantity

Show in Checkout Page

To show the total quantity in checkout page, you need to copy /plugins/woocommerce/templates/checkout/review-order.php to your child theme /woocommerce/checkout/ to prevent any error.

Result:
WooCommerce Show Product Total Quantity Checkout Page

External Link: WooCommerce – Show number of items in cart and total

WooCommerce Show Product Total Quantity
Please do hesitate to contact me if you found out any mistake or typo.

WooCommerce Show Save How Many Percentage

With WooCommerce Snippet

When using WooCommerce, some users would like to set the item with a sale price. Default WooCommerce just strikethrough the regular price and show only sale price. Customers don’t know how many actually they save. With this WooCommerce snippet, it will show how many percentage they sale from a regular price.

Paste below coding at your theme’s function.php

<?php
add_filter( 'woocommerce_sale_price_html', 'woocommerce_sales_price_percentage', 10, 2 );
function woocommerce_sales_price_percentage( $price, $product ) {
	$percentage = round( ( ( $product->regular_price - $product->sale_price ) / $product->regular_price ) * 100 );
	return $price . sprintf( __(' - Save %s', 'woocommerce' ), $percentage . '%' );
}
?>

Result:
WooCommerce Show Save How Many Percentage

Show Percentage Is More Attractive

Now, the percentage of discount is displayed next to sale price. Customers able to know how many actually they save from a regular price. With percentage of discount, it’s more attractive!

External Link: WooCommerce Percentage Saved Sale Price

WooCommerce Show Save How Many Percentage
Please do hesitate to contact me if you found out any mistake or typo.

Bitcoin Mining Malware Bundled with Legitimate Applications

YourFreeProxy

Warning from security researchers at Malwarebytes, there is a new malware threat recently, which Bitcoin miners are bundled with third party potentially unwanted programs (PUPs) that come bundled with legitimate applications.

The malware is using ‘jhProtominer’, a popular mining software that runs via the command line. It abuse the CPUs and GPUs of infected computers to generate Bitcoins. ‘jhProtominer’ bundled with ‘monitor.exe’, which is a part of “YourFreeProxy” application. The ‘monitor.exe’ is waiting for commands from a remote server, eventually downloading the miner and installing it on the system.

“YourFreePorxy” is owned by Mutual Public AKA We Build Toolbars, it is proxy server. However, this application bundle a malware which will use users’ computer to mine Bitcoins. Actually, this feature appears in their terms of service.

Terms of Service

COMPUTER CALCULATIONS, SECURITY: as part of downloading a Mutual Public, your computer may do mathematical calculations for our affiliated networks to confirm transactions and increase security. Any rewards or fees collected by WBT or our affiliates are the sole property of WBT and our affiliates.

One of the user reported to Malwarebytes that saw a 50% increase in processor usage when installed the toolbar. Maybe that mining software could be flagged as malware.

External Link:
[1]Potentially Unwanted Miners – Toolbar Peddlers Use Your System To Make BTC
[2]Don’t Install Crap ! Bitcoin Mining malware bundled with Potentially Unwanted Programs

Please do hesitate to contact me if you found out any mistake or typo.

iPhone 5s Genuine Black Gold Sell in Ebay

iPhone 5s Genuine Black Gold01

iPhone 5s Genuine Black Gold Sell in Ebay

A iPhone-customize company, Elite Gold Designs LLC sell the only one in the world iPhone 5s, a iPhone 5s Genuine Black Gold 64GB in Ebay. They claim that the iPhone 5s Genuine Black Gold is the first and the only one in the world with Genuine Apple parts currently. This iPhone 5s is 64GB and factory unlocked. Its’ selling price is USD $3,600 and still available for this moment.

iPhone 5s Genuine Black Gold02

Seller’s Notes

The Black model iPhone 5S was purchased new from apple, A gold white iPhone 5S was also purchased to use the frame from the gold iphone 5S to the black iPhone 5S.

Apple Has Not Made, They Made

Apple has not made the black gold model but Elite Gold Designs LLC made it. They use a Space Grey model and a Gold model, take apart professional to build one special Black Gold model. It’s a unique Black iPhone 5s with Gold frame. It’s made by all OEM genuine parts from Apple and not aftermarket or knock off parts.

iPhone 5s Genuine Black Gold03

iPhone 5s Genuine Black Gold04

iPhone 5s Genuine Black Gold06

iPhone 5s Genuine Black Gold05

International Shipping is Available

Elite Gold Designs LLC said that international shipping is available. Those who are interest about this iPhone 5s may contact with them or ask for any question. Sound expensive because it combine two iPhone 5s.

iPhone 5S Genuine Black Gold Model Currently the only one in the world!! 64GB

Please do hesitate to contact me if you found out any mistake.

Mac iTunes Store Is Showing Blank White Screen

Mac iTunes Store Is Showing Blank White Screen

Showing Blank White Screen

This is one the problem I faced when using iTunes Store on Mac OS 10.6.8 Snow Leopard, My Mac iTunes Store is showing blank white screen. When I open iTunes and choose the iTunes Store. It’s showing blank white screen but it’s fine when I choose the Library. At first, I thought it’s internet problem. I decided try to access after few days. The problem is still there. I wonder that why this happen and I confirm that my internet connection is fine. I check the latest update, my iTunes version is the current version. I also tried download iTunes from Apple website and installed it. I still faced the same problem.

Safari Update

After some research, I found out what is the reason cause this. Although I had update the latest version of iTunes, but I didn’t complete all the Software Update. I need to do the Safari Update to solve this problem.

By the way, I think that this problem only happen on Mac OS 10.6.8 Snow Leopard. Do the Safari Update, and it’s worked for me.

Now, I able to access to iTunes Store without show any blank white screen.

Safari 5.1.10 for Snow Leopard

I like to share what I know and I learn. Please do hesitate to contact me if you found out any mistake.