Using conditionals with dynamic content

Hello there,

Wondering if it’s possible to use conditionals along with dynamic content?

Especially looking at the Cart item, where I’d like to have a different title if the cart is empty and if there’s an item…

Something like…

{if:condition;value_if_true;value_if_false}
{if:{{dc:woocommerce:cart_items}}>0;Your cart has {{dc:woocommerce:cart_items}} items;Your cart is empty!}

Since I’m pretty sure this isn’t implemented, is there any plan to add even more flexibility to the dynamic content?

Thanks!

1 Like

Hi There @thisisbbc

Thanks for writing in! You can review our dynamic content feature explained on our changelog (https://theme.co/changelog/#theme-pro-2-5-0-theme-x-6-5-0-cornerstone-3-5-0). Currently it is not possible to use conditional tags within dynamic content feature.

I will add this as a feature request, so that our developers should be able to review it further.

Thanks!

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