Created
January 14, 2021 17:59
-
-
Save MarceloGlez/282194c3de4612859c2537150f0cef5e to your computer and use it in GitHub Desktop.
Cambiar orden en Single products en Woocommerce
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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