Et_top_cart shortcode not showing content of $output

This topic has 22 replies, 3 voices, and was last updated 3 years, 2 months ago ago by Rose Tyler

  • Avatar: fourth-element
    fourth-element
    Participant
    April 9, 2021 at 14:44

    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
    Support staff
    April 9, 2021 at 14:53

    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
    April 9, 2021 at 15:19

    As requested

    Please contact administrator
    for this information.
    Avatar: fourth-element
    fourth-element
    Participant
    April 9, 2021 at 16:06

    Site Access

    Please contact administrator
    for this information.
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 10, 2021 at 13:07

    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
    April 11, 2021 at 20:19

    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
    April 12, 2021 at 09:08

    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
    Support staff
    April 12, 2021 at 10:57

    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
    April 12, 2021 at 12:25

    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
    April 14, 2021 at 14:34

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

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 14, 2021 at 17:44

    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
    April 15, 2021 at 09:05

    Hi,

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

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    April 15, 2021 at 12:30

    Hello,

    Thank you for your patience.

    Regards

    Avatar: fourth-element
    fourth-element
    Participant
    April 26, 2021 at 09:37

    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
    Support staff
    April 27, 2021 at 18:46

    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
    May 11, 2021 at 11:37

    Hi,

    Is there any update you can give on this?

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    May 13, 2021 at 14:14

    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
    Support staff
    May 13, 2021 at 16:25

    Hello,

    Check now, please.

    Regards

    Avatar: fourth-element
    fourth-element
    Participant
    May 14, 2021 at 09:22

    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
    Support staff
    May 14, 2021 at 17:02

    Hello,

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

    Regards

    Avatar: fourth-element
    fourth-element
    Participant
    August 25, 2021 at 09:45

    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
    August 25, 2021 at 15:31

    Hi,

    Yes

    Regards

  • Viewing 22 results - 1 through 22 (of 22 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.