Pro Theme Cart in NavBar

In Pro, I am trying to recreate the default NavBar X uses where it shows the number of items and the price in the NavBar. I am using Pr Header elements CART ITEMS, CART TOTAL. It is working, but just one small issue:

The item total shows and I have added the text “ITEMS” after it … BUT this is just a mockup, I need the “ITEMS” text to be dynamic, and say “ITEM” if there is only 1 item or “ITEMS” if there are zero or more than 1. (if it says “1 items” this is grammatically incorrect)… I can’t see how to do this in PRO yet it did this automatically in X.

Hey @kirk74,

This is possible using the Conditions feature, but I suspect there’s currently a bug because the Number Condition does not work with the {{dc:woocommerce:cart_items}} Dynamic Content.

I’ll post this in our issue tracker so this case will be queued to be investigated by our development team and once they label this as a bug, they will code a solution and include it in one of the future releases.

Please stay tuned for updates.


Regarding the Sticky menu problem, I don’t see the issue in your live and staging sites. Please detail how we can see the problem in a new thread to avoid confusion.

Thanks.

Ok thank you… are you saying that you will update this thread when that bug has been fixed? Or I just need to keep an eye out?

Hi @kirk74,

My colleague has already reported the issue in our issue tracker, and our development team will investigate it further. But, we really don’t have any ETA on this and the fix might be included with the succeeding theme update. I would also suggest you stay tuned with the upcoming Theme updates.

Thanks

Hello,

Please use {{dc:woocommerce:cart_items_raw}} if you would like to use the cart count in a conditional display. See my image for reference. Let us know if you have any questions!

{{dc:woocommerce:cart_items}} is a realtime number which will not work currently with our conditions as that takes place entirely on the backend.

image

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