I have this odd thing happening with the [et_top_cart] shortcode.
When a page loads, for a very brief second, the cart contents (price, etc) show, then for some reason the whole contents of $output disappears not just from view but from the HTML as well.
This is what’s left
<div class="shopping-container shopping-container-695 style-dark "><div class="widget_shopping_cart_content"></div></div>
I’ve stripped all the plugins out so that only the following ones needed for the theme and Woocommerce plugin are on and the same thing occurs.
I’ve also switched the theme to a basic Royal Child theme and to the Royal main theme itself with the same outcome, it simply disappears.
I’ve also taken the contents of the [et_top_cart] shortcode and placed them into my own shortcode and when I use this one, it shows the cart. However when I then come to add a product to the cart, it doesn’t instantly reflect and update causing me to have to refresh the page to see the product in the cart, which isn’t ideal from a user perspective.
I’m not sure what’s going on, any advice would be appreciated.Site URL: hidden Theme version: 6.3.2 WooCommerce version: 5.1.0
Provide us with WP Dashboard and FTP access to your site. Remove the custom shortcode you added. Let us to check the issue without your customization.
If your screenshot is from our live website, then yes it does work because that is using my own version of the cart code so it works to an extent, but with this live example, the ajax cart update doesn’t initiate on cart additions.
On my test site, which uses the shortcode et_top_cart, this (YT link) shows you what happens. The cart disappears as something on the site is deleting the cart code from the DOM.
I provided access and login details to my dev website which again has the et_top_cart shortcode in place with the minimum plugins activated to show this isn’t a plugin conflict.
I think the issue may relate to this class
On my version of the shortcode when I add it, the cart disappears and it is also declared on the et_top_cart shortcode as well.
All sites dev, test and live share the same issue, but please use dev.fourthelement as the site to access and work on, I’ve provided the credentials above. Thank you lots for your continued support.
I passed your issue to our developers. Waiting for reply. We have a lot of requests these days, so take my apologies for this delay.
Thank you, of course I absolutely understand, appreciate all the help!
Good morning, apologies, I have been on some annual leave, may I ask if your team have managed to get any further in terms of understanding why the mini cart disappears?
It isn’t a problem if they haven’t, just wanted to touch base to check either way. Thank you.
Sorry for such a long work on this issue, developers can’t find the exact reason of the issue. But they are still working on this problem and need a little bit more time.
We have not found the solution yet. Trying to recode the cart widget at all. I’ll inform you if it helps.
Thank you Olga and to your team for taking the time to investigate and work on this it is very much appreciated, I can see the cart there on our dev site now, that is great news. Is this something you need to roll out into a new theme release?
You are welcome.
Yes, we’ll include this improvement in the next theme update.
You must be logged in to reply to this topic.Log in/Sign up
One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.