Cart Items & Totals Raw vs. Regular

I couldn’t find any documentation on this so it’s going to keep me up all night until I know.

What is the difference between these two (I’ll assume it also applies to cart totals & subtotals).

{{dc:woocommerce:cart_items}}
{{dc:woocommerce:cart_items_raw}}cart_items}}

Both work perfectly (and exactly the same) for me on 1 site but, on another site, using the raw version creates a lag on mobile devices.

Thanks!

Hi Stella,

The {{dc:woocommerce:cart_items_raw}} return only the numeric value of the cart items, whereas {{dc:woocommerce:cart_items}} return the same value wrapped with the <span> tags and looks like <span data-csdc-wc="cart-items">cart item number</span>. I have tried the same in my local environment and didn’t find any issue in the mobile as described by you. I would suggest you provide any screenshot marked with the issue or any video that helps us to recognize the problem.

Thanks

Okay, on 2 mobiles ( 1 Android & 1 Apple) and on Edge, by going to stellaluca.com and adding items to the cart, the counter does not change. It’s stuck at 0.

When you go to the checkout or cart page, the counter updates with the correct total but then, going back to the shop page or any other page on the site, it reverts to 0.

Hello Stella,

I am using MS Edge and I have tested the site on my Android phone.

The cart item number counter works on my end. It is not stuck at 0. Please clear your mobile browser cache or at least use private browsing mode and test your site again.

Kindly let us know how it goes.

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