This code adds the cart count & total price to the nav menu in Lifestyle Pro.
The solution uses Dashicons which modern HTML 5 Genesis child themes load by default.
Enables dynamic updating of item count & total price using Ajax when the Add To Cart button is clicked without the need to refresh the page.
Tested using the Genesis Sample & Lifestyle Pro child themes by StudioPress. Should work in any HTML 5 child theme without modification.
Demo Video #
Shows the cart icon added before the cart count & price total linked to the cart page updating dynamically using Ajax in the Primary and secondary nav menu of the Lifestyle Pro child theme for Genesis.
Installation #
There’s 2 steps relating to usage of the code in the download folder :
Step 1 : Copy & paste the PHP code from the functions file to the end of your child themes functions file.
Step 2 : Copy & paste the CSS from the style.css file to the end of your child themes style sheet and clear caching.
Register or login to access the download folder :
Note : Requires the activation of both the WooCommerce & Genesis Connect for WooCommerce plugins.
Was This Tutorial Helpful?