Jump to content
Sign in to follow this  
warrenneedham

Hook In Nav bar

Recommended Posts

warrenneedham

I would like to display JigoShop cart in the NavBar of my site. I have been given the following code: <?php echo sprintf(_n('%d item – ', '%d items – ', jigoshop_cart::$cart_contents_count, 'jigoshop'), jigoshop_cart::$cart_contents_count); echo jigoshop_cart::get_cart_total(); ?> Is there a way to hook this in somehow? I have the Pagelines Customize plugin installed.

Share this post


Link to post
Share on other sites
Danny

Hi, Add this to your child themes functions.php file, it may require some styling.

add_action('get_search_form', 'jigo_cart');
		function jigo_cart(){ ?>
	
			
				
	


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
warrenneedham

worked like a charm!

Share this post


Link to post
Share on other sites
Danny

Awesome! :D


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
webgeek

Hi Danny,

Really new to pageline and not familiar with coding...

Do you have the same for woocommerce?

SHould I enter the code in "woocommerce/woocommerce-functions.php" or "woocommerce/woocommerce-hooks.php"?

Thanks and sorry for the amateur question...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×