Archived topic
SHOPHING CART ICON CONTENTS TOTAL
5 replies · Started by Iñaki Mansilla on March 19, 2019
Hi!.
How can I get this??:
1. Show number of items instead of price.
2. Number of items right above of a personalised shopping cart icon like show in the pic https://ibb.co/r2Y1n1y
Something like this example: http://www.maideralzaga.com
I have already place my icon like this:
.main-navigation a.cart-contents.shopping-bag:before, .secondary-navigation a.cart-contents.shopping-bag:before { content: url(https://www.ianmosh.com/wp-content/uploads/2019/03/shopping-bag-ic1.png);
display: inline;
line-height: inherit;
vertical-align: -5px;
}
I have been trying to do it with this, but I coundn´t manage to make it work. https://docs.woocommerce.com/document/show-cart-contents-total/
I can read code but can´t write PHP, so I am not sure if I am asking too much??... Thanks for your help!.
Hi there,
In GPP 1.8, we added an option to display the number of items instead of the price: https://generatepress.com/gp-premium-1-8/
If you install that version and open your site up so we can see it, we should be able to implement your icon :)
Wow I am overwhelmed with all that many new features and improvements. You guys are the best!, best theme / framework, and best support!!.
Thank you very much!!.
Just one small thing, why is it that you set the font-size so tiny??... I read:
.cart-contents > span.number-of-items {
font-size: 10px;
}
I can´t find this option in the Customizer... Although it's not a big deal as we can change it right away with css.
Yea, I think we'll increase that a bit. CSS is the way to go for now.
Glad you like the new version! :)
Ok, no big deal.
Thanks Tom.
No problem :)