WooCommerce cart icon

If you are using WooCommerce in your app, a cart icon will automatically appear on single product pages in your app. If you'd like it to appear on every page, you can add the following code to a custom javascript file in a plugin or child theme on your WordPress site:

jQuery(document).ready(function($) {

	if( $('body').hasClass('woocommerce-page') )
		parent.postMessage( JSON.stringify( { post_title: window.appp.post_title, cart_link: window.apppwoo.cart_url } ), '*');
	
});

You may need to edit this script to work properly for you site, this is only an example.