change position of a notice
Hello, can you help me? I would like to change the position of a notice in the wocommerce cart as it appears in the attached image, how could I do it?
Hey Carlos,
Thank you for the inquiry.
How can we make the notice display, and where is the shop page? We did find a product item, but we could not add it to the cart. Please provide a link to the shop page or to a product item so that we could check the cart page properly.
Best regards,
Ismael
Hi:
Sorry, I’m working in the store and I haven’t published it yet, … here is a product link:
https://www.presumedebebe.es/producto/example-lote-openiertoo-yuste-ref-021/
If you add to the cart, I will take you to the cart where the notice appears at the top and I would like it to appear as shown in the screenshot that I send you.
https://www.dropbox.com/s/63xlwwuk4x3u55m/Captura%20de%20pantalla%202020-10-29%20a%20las%2019.14.57.jpg?dl=0
I hope your help, thanks
Hi,
Sorry for the very late reply and thanks for the screenshot and link, but the link is resulting in a 404, I found another product linked below along with a screenshot of the expected results.
Try adding this code to the end of your functions.php file in Appearance > Editor:
function custom_script(){
?>
<script>
(function($){
$(document).ready(function(){
$( ".woocommerce-message" ).insertAfter( ".woocommerce-cart .woocommerce-cart-form" );
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'custom_script');
Then clear your browser cache and check.
Best regards,
Mike