Created
January 12, 2013 02:33
-
-
Save claudiosanches/4515753 to your computer and use it in GitHub Desktop.
WooCommerce - Botão ver detalhes no lugar do botão de adicionar ao carrinho.
This file contains hidden or 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
<?php | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
global $product; | |
printf( '<a href="%s" class="button">%s</a>', get_permalink( $product->id ), __( 'Ver detalhes' ) ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@marcosrossato sempre esteve na pasta template todos os templates do WooCommerce, mas não é para você modificar o arquivo no WooCommerce, no lugar você vai criar esse arquivo no seu tema, foi isso que eu falei lá em cima.