Et_top_cart shortcode not showing content of $output

21 replies3 participantsUpdated by Rose Tyler

  • Avatar: fourth-element
    fourth-element
    Participant

    Hi team,

    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.

    CMD2
    REDUX
    ROYAL CORE
    WOOCOMMERCE

    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.

    21 Answers

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    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.

    Regards

    Avatar: fourth-element
    fourth-element
    Participant

    As requested

    Please contact administrator
    for this information.
    Avatar: fourth-element
    fourth-element
    Participant

    Site Access

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    Could you, please, provide us screenshots or gif using Gyazo tool to explain what exactly does not work? Because I see the cart and subtotal https://prnt.sc/118x5ix

    Regards

    Avatar: fourth-element
    fourth-element
    Participant

    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.

    Please contact administrator
    for this information.
    Avatar: fourth-element
    fourth-element
    Participant

    I think the issue may relate to this class

    widget_shopping_cart_content

    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.

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    So, what is the link to site with the issue: dev.fourthelement.com or test.fourthelement.com?
    And what credentials should we use to pass auth form https://prnt.sc/11agpnr ?

    Regards

    Avatar: fourth-element
    fourth-element
    Participant

    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.

    Avatar: fourth-element
    fourth-element
    Participant

    Hi, Have you had a chance to take a look at this?

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    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.

    Regards

    Avatar: fourth-element
    fourth-element
    Participant

    Hi,

    Thank you, of course I absolutely understand, appreciate all the help!

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    Thank you for your patience.

    Regards

    Avatar: fourth-element
    fourth-element
    Participant

    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.

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    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.

    Regards

    Avatar: fourth-element
    fourth-element
    Participant

    Hi,

    Is there any update you can give on this?

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    We have not found the solution yet. Trying to recode the cart widget at all. I’ll inform you if it helps.

    Regards

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    Check now, please.

    Regards

    Avatar: fourth-element
    fourth-element
    Participant

    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?

    Best regards

    Darren

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    You are welcome.
    Yes, we’ll include this improvement in the next theme update.

    Regards

    Avatar: fourth-element
    fourth-element
    Participant

    Hi, I just wanted to follow up on this, was the fix implemented in a release? I have 6.3.2 installed, but does this include the fix or will there be a incoming theme release with it in? Appreciate your help.

    Darren

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hi,

    Yes

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register