Home › Forums › WoodMart support forum › HTML content below Add To Cart button issue
HTML content below Add To Cart button issue
- This topic has 5 replies, 2 voices, and was last updated 2 years, 9 months ago by
Luke Nielsen.
-
AuthorPosts
-
July 11, 2022 at 5:55 pm #390276
harshweParticipantHello 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
July 13, 2022 at 10:43 am #390689
Luke NielsenKeymasterHello,
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
July 13, 2022 at 12:52 pm #390746
harshweParticipantHello Luke,
This worked like a charm š
Thank youCan 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-390276Regards
July 15, 2022 at 9:58 am #391237
Luke NielsenKeymasterHello,
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
July 15, 2022 at 6:00 pm #391339
harshweParticipantHello Luke,
OK, thank you. Much appreciable.
I have marked this response of yours as OK #390689Regards
July 18, 2022 at 11:47 am #391714
Luke NielsenKeymasterHello,
Ok, In case you need any additional help, Iād be more than happy to assist you.
Kind Regards
-
AuthorPosts
Tagged: below add to cart, html content, html content below add to cart button, html content priority, wishlist compare links priority
- You must be logged in to create new topics. Login / Register