Home Forums WoodMart support forum HTML content below Add To Cart button issue

HTML content below Add To Cart button issue

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #390276

    harshwe
    Participant

    Hello Luke,

    I think below is technically incorrect, in general. Or a bug.

    I tried to use the custom HTML content below Add to Cart button on Single product page. I found that this content shows In-between the Add to Cart button and Wishlist-compare links.
    Technically it should show after these 2 links – Wishlist-Compare, automatically. Means, these 2 links should have higher priority of placement.

    Normally these 2 links are intended to show just below Add to Cart button. And it is the most suitable place and preferable to show for these 2 links, in general.

    https://i2.paste.pics/HLACJ.png
    URL for reference – https://www.vasangini.com/product/red-elephant-tapestry-peacock-mandala-tapestries-queen-bedspread/

    Can you please make changes in next update, so that if someone uses the location of HTML content to be shown below Add to Cart button, then it should show below Wishlist-Compare buttons.

    Another Reason: those 2 links have major requirement and are preferred by most of the users or visitors, rather than custom HTML content.
    Also, think of a scenario, if we or any site owner have larger HTML content, then those 2 links (wishlist-compare), gets shifted downwards even further.
    I hope this should sound logical to you and team.

    Until then, if there is code snippet to change the priority, then please suggest. Would highly appreciate.
    Please get this fixed.

    PS:
    Using Layout section for Single product page is Not the actual solution, rather it is an alternative.
    Please try to update it by setting and revising the priority of HTML content or of those 2 links on Single product page, to be shown below Add to Cart button.

    Regards

    #390689

    Luke Nielsen
    Keymaster

    Hello,

    Okay, please enter the below code to the functions.php file in your child theme. It should relocate this area.

    if ( ! function_exists( 'woodmart_after_add_to_cart_area' ) ) {
        function woodmart_after_add_to_cart_area() {
            ?>
            <?php if ( woodmart_get_opt( 'content_after_add_to_cart' ) || woodmart_get_opt( 'after_add_to_cart_html_block' ) ) : ?>
                <div class="wd-after-add-to-cart">
                    <?php if ( 'text' === woodmart_get_opt( 'after_add_to_cart_content_type', 'text' ) ) : ?>
                        <?php echo do_shortcode( woodmart_get_opt( 'content_after_add_to_cart' ) ); ?>
                    <?php else : ?>
                        <?php echo woodmart_get_html_block( woodmart_get_opt( 'after_add_to_cart_html_block' ) ); ?>
                    <?php endif; ?>
                </div>
            <?php endif; ?>
            <?php
        }
    
        add_action( 'woocommerce_single_product_summary', 'woodmart_after_add_to_cart_area', 39 );
    }

    Kind Regards

    #390746

    harshwe
    Participant

    Hello Luke,

    This worked like a charm 🙂
    Thank you

    Can you please ask the team to make changes in the next Theme update, so that if someone uses the location of HTML content to be shown below Add to Cart button, then it should show below Wishlist-Compare buttons, automatically. (without the use of snippet code)

    Specially considering above mentioned reasons as mentioned here –
    https://xtemos.com/forums/topic/html-content-below-add-to-cart-button-issue/#post-390276

    Regards

    #391237

    Luke Nielsen
    Keymaster

    Hello,

    Of course, I sent it to the team and they will consider it.

    Please let us know if there is anything further we can assist you with!

    Kind Regards

    #391339

    harshwe
    Participant

    Hello Luke,

    OK, thank you. Much appreciable.
    I have marked this response of yours as OK #390689

    Regards

    #391714

    Luke Nielsen
    Keymaster

    Hello,

    Ok, In case you need any additional help, I’d be more than happy to assist you.

    Kind Regards

Viewing 6 posts - 1 through 6 (of 6 total)