Add quantity badge to shopping cart modal

Hi there,

I’m trying to add a quantity badge to a shopping cart modal trigger icon, but don’t see any obvious way to do it. I’ve found some scripts that do it, but wondering if this functionality is already built in or if there is a plan to implement it.

Thank you!

Hello @powrider686,

Thanks for writing in!

In your Cart Modal element’s Toggle tab, enable the “Text” option.

And then in the Text option field, you can use the WooCommerce Cart Item number dynamic content.

Screenshot 2023-01-21 at 11.52.33 AM

And you might need to redesign the look of your Toogle button since you have added a number next to the icon.
Screenshot 2023-01-21 at 11.55.18 AM

Hope this helps.

@ruenel This is great, thank you!

Hello @powrider686,

Glad that we were able to help you. Please feel free to open a new thread if you have any more concerns.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.