Skip to content

Instantly share code, notes, and snippets.

@MarceloGlez
Created January 14, 2021 17:59
Show Gist options
  • Save MarceloGlez/282194c3de4612859c2537150f0cef5e to your computer and use it in GitHub Desktop.
Save MarceloGlez/282194c3de4612859c2537150f0cef5e to your computer and use it in GitHub Desktop.
Cambiar orden en Single products en Woocommerce
/*single product original*/
woocommerce_template_single_title - 5
woocommerce_template_single_price - 10
woocommerce_template_single_excerpt - 20
woocommerce_template_single_add_to_cart - 30
woocommerce_template_single_meta - 40
woocommerce_template_single_sharing - 50
/*Code para cambiar orden de elementos - */
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 15 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment