Home Forums WoodMart support forum Swap code for production

Swap code for production

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

    agrisocio
    Participant

    I made a variable product, and from your template, the order from the top is product short description then variation then variation description. by chance, can i change the order? thankyou

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

    Artem Temos
    Keymaster

    Hello,

    You can swap the short description with the whole add to cart block including variations description, quantity and add to cart. It is not possible to separate the add to cart section in WooCommerce.

    Kind Regards

    #246966

    agrisocio
    Participant

    and how to swap that? thank you

    #246989

    Artem Temos
    Keymaster

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    add_action(
    	'wp',
    	function() {
    		remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
    		add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 31 );
    	}
    );
    #247029

    agrisocio
    Participant

    Thankyou I will try it, and will report the result later.

    #247139

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

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