 
	
		
		
		
		
			
- 
		AuthorPosts
- 
		
			
				
July 11, 2017 at 10:41 am #819216Hi Enfold. I s it possible only to show cart icon when add a product at main menu? Hope you can advice. Best regards 
 SorenJuly 11, 2017 at 2:49 pm #819375Hey Soren, You can change that behavior in the theme shop options If you need further assistance please let us know. 
 Best regards,
 VictoriaJuly 11, 2017 at 2:56 pm #819387Thank you very much Victoria. Yes, but i won’t show the shop icon as floating, is to possible to show it when a customer add a product and then show it to the main menu? July 11, 2017 at 3:42 pm #819450Hi vanggrafisk, I’m not sure I understand, could you explain the flow of the icon step by step? Best regards, 
 VictoriaJuly 11, 2017 at 4:40 pm #819500Hi Victoria. How did i opload screenshot? Best regards 
 SorenJuly 11, 2017 at 4:44 pm #819507Please see the screenshot below July 11, 2017 at 11:58 pm #819725Hi, Please add following code to Functions.php file in Appearance > Editor function avia_cart_count(){ global $woocommerce; $count = $woocommerce->cart->cart_contents_count; if ($count > 0) { $avia_count = sprintf(_n(' %d', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count); return "<span class='counter'>/ ".$avia_count."</span>"; } } add_shortcode( 'cart_count', 'avia_cart_count' );then add a new Custom Link in Appearance > Menus and use following shortcode in navigation label [cart_count]Best regards, 
 YigitOctober 18, 2019 at 10:58 am #1149220Hi, I tried in the secondary menu but it doesn’t work, what can I do? thanks October 20, 2019 at 12:24 pm #1149611Hi wolfed, Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look? Best regards, 
 VictoriaOctober 20, 2019 at 1:47 pm #1149621Hi Victoria, I gave up because the cart is not updated when a product is inserted, thanks! October 21, 2019 at 4:39 am #1149694Hi, Thanks for the update, please let us know if you should need any further help on the topic. Best regards, 
 RikardMarch 7, 2021 at 1:04 pm #1286184I was looking for this code! the only thing its showing on my main menu like this ” cart icon /1″ can I show it with the bubble instead? Thank you guys! How it looks now: 
 https://imgur.com/ovmy3stHow should look with the bubble 
 https://imgur.com/EryNbJuMarch 8, 2021 at 9:05 am #1286346Hi mannys1985, Thanks for the screenshots. Could you post a link to where we can see the actual elements as well please? Best regards, 
 RikardMarch 8, 2021 at 1:17 pm #1286431This reply has been marked as private.March 9, 2021 at 1:28 pm #1286700You think this will be possible? March 11, 2021 at 4:44 pm #1287497Hi, I am marking this thread as resolved as this was resolved in another thread – https://kriesi.at/support/topic/number-in-the-bubble-above-the-jobs-menu-button-on-the-enfold-site/ :) Best regards, 
 Yigit
- 
		AuthorPosts
- The topic ‘How to only show cart icon in main menu whwn add a product?’ is closed to new replies.
