Home Forums WoodMart support forum Move Up sells from footer under the add to cart button

Move Up sells from footer under the add to cart button

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #283997

    netpixel
    Participant

    Hi from Greece, please i want some help, in theme Fashion Minimalism
    i want to move Upsells product from the footer, under the button add to cart. please give me the code to add in child fuction.php Look the photos in attchement

    Please, please help me.

    Attachments:
    You must be logged in to view attached files.
    #284099

    Hello,

    There is no option to show the upsells products after adding to the cart button.

    Upsells products are certain products you add to the product page as per Woocommerce documentation: https://docs.woocommerce.com/document/related-products-up-sells-and-cross-sells/

    I can suggest a workaround:

    Create HTML block, add the products by ID by means of the Product Grid and then show this HTML block by means of Extra content block: https://xtemos.com/docs/woodmart/product-page-options/#local_settings

    You will find the option to show the Extra block After content, Before Content, Prefooter

    If you want to show it in the area after add to cart add this code to the functinons.php of the child theme and the extra content block would move after Add to cart.

    add_action(
    	'wp',
    	function() {
    		remove_action( 'woodmart_after_product_content', 'woodmart_product_extra_content', 20 );
    		add_action( 'woocommerce_single_product_summary', 'woodmart_product_extra_content', 31 );
    	},
    	1200
    );

    You will need to create HTML for each product.

    If you have any questions please feel free to contact us.

    Best Regards

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