IMPORTANT NOTE: THIS CODE SHOULD NO LONGER BE USED AS IT IS NOT DYNAMIC (THE SINGLE PRODUCT PAGE MUST REFRESH TO UPDATE THE TOTALS) AND, EVEN MORE IMPORTANTLY, IT DOES NOT WORK (UNLESS THE USER REFRESHES THE PAGE) FOR PRODUCTS DISPLAYED ANYWHERE ELSE BUT ON THE SINGLE PRODUCT PAGE (FOR EXAMPLE ON CATEGORY PAGES OR FOR PRODUCTS ON THE HOMEPAGE.) INSTEAD, WE UNFORTUANTELY HAVE TO USE A PLUGIN - Mini Cart for WooCommerce by Sharabindu which has fair number of styling options and has a shortcode option to insert the mini cart anywhere you like (other similar plugins just append it to a menu in unpaid version.) Note that you can use this plugin and keep the VIEW CART link in the code below, as was done on Eat Sum More. 1. ADD THE FOLLOWING HTML WHERE YOU WAN ADD TO CART AND MY ACCOUNT BUTTONS TO SHOW (can be in header.php OR page.php AND single.php)
2. ADD THE FOLLOWING IN YOUR CSS FILE SO THE ADD TO CART AND ACCOUNT BUTTON DON'T SHOW ON ALL PAGES