Woocommerce navbar cart display options stuck

Hello, after upgrading to the latest version of X we encountered an issue with woocommerce with a function that was deprecated, and updated that accordingly to the solution posted here https://theme.co/apex/forum/t/woo-commerce-nav-error/11553

Now we’re stack with the current display options in the navbar for the cart. Even though we change those (icon, colors, etc) they change just for a second and then get back to the same settings as before.

Can you help ?

Hi there,

Thanks for writing in.

Would you mind providing the exact site’s URL that has this issue? Have you tried clearing the cache? Based on your detail, the change is taking effect but it just going back to how it was, right? Maybe it’s just due to cache, so please provide your login credentials in a secure note as well. I’ll check how the code was implemented.

Thanks!

Hello @Rad , the problem lies in the navbar menu, so it’s spread through all the website.
attached goes the note with the credential. Please note this is a dev environment http://dev-qifactory.pantheonsite.io/

Hey @qifactory,

I see you have custom templates. Would you mind removing customizations? Or, you can switch to the X parent theme and see if the issue persists.

Thanks.

Hello @christian_y

I switched to the parent theme, it acts exactly the same, so now I switched back.

I see. In this case, please give us FTP access so we could take a closer look.

Thanks.

I’m having a similar issue with X 5.2.5 and WooCommerce 3.2.4.

The navbar displays correctly for a fraction of a second because the x_woocommerce_navbar_cart PHP function outputs the correct markup, but then that apparently gets replaced by JavaScript code.

It seems to be related to caching and session storage. After saving the WooCommerce navbar options, if I clear my browser’s cache and session storage and reload a frontend page, the navbar looks correct. I noticed that the session storage contains a variable called wc_fragments with a key called div.x-cart, which is probably where the old markup is persisting.

@fundibu

Kindly Create a new topic and provide us the following info in Secure Note

Set it as Secure Note

  • Link to your site
  • WordPress Admin username / password
  • FTP credentials

This is to ensure that we can provide you with a tailored answer to your situation.

All the best!

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