Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #718967

    Hi!

    I’m using the latest enfold and woocommerce versions.

    When I add a product to the cart, I would expect the woocommerce warning/message box to appear at the top of the page, below the header. Instead, it appears below a code block inside a color section.

    This is weird behaviour. How can I make enfod output the message box to the top of the page?

    #719139

    Hey catarina_sobral,

    I’m not sure I understand the problem, could you post a screenshot of it please?

    Best regards,
    Rikard

    #719365

    Here:
    <a href='https://automattic.pxf.io/y2XdbN/' target='_blank' rel='nofollow'/ rel=woocommerce box bug" />

    The woocommerce box (“Vazio has been added to your cart”) show up below the book title and awards (they’re in a code block).

    I would like to move the woocommerce message box to the top of the page.

    Cheers

    #721221

    Hi,

    Sorry for the late reply!
    Unfortunately, it would not be easily possible as you have another code block above your element that has “O Meu Avô” etc.
    I wanted to try a jQuery solutin, however login credentials are not working for me

    Best regards,
    Yigit

    #721230

    No problem. Well, I don’t really know if this is enfold- or woocommerce-related (or even Envira Gallery’s fault).
    Still, I didn’t delve into woocommerce’s code, but I assumed the default behavior should be to create the .woocommerce-message div at the top of a page, perhaps as the first child of #main. Hence the confusion, why should woocommerce insert the div in the in the second code block of a page?

    It’s weird. Any ideas?

    ( The hidden text block above the code blocks serves as a helper for my client in the backend – as codeblocks don’t have identifiers or names I added text blocks describing each code block, visible only in the backend)

    #721597

    Hi,

    Which item is addable to cart? I managed last time but could not find an item this time :)
    You are using Envira gallery plugin to dislay your items. That is the issue. We can give jQuery solution a try.

    Best regards,
    Yigit

    #721717

    You can try any of the items in the “Vazio” gallery. Sure, go ahead.

    #723147

    Hi,

    I added following code to Functions.php file of your child theme

    function av_move_ci(){
    ?>
     <script>
    jQuery(window).load(function(){
    jQuery(".page-id-26 .woocommerce-message").detach().prependTo('#av_section_1 .entry-content-wrapper')
    });
     </script>
    <?php
    }
    add_action('wp_footer', 'av_move_ci');

    Please review your website now

    Best regards,
    Yigit

    #723282

    Great, it’s solved. I would rather get to the root cause than remedy the problem via js, but I understand it could be tremendously complex. Thank you for the help, you can close the ticket.

    Cheers!

    #723290

    Hey!

    You are welcome! :)

    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Woocommerce warning boxes in weird place’ is closed to new replies.