View functions.php
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
add_filter( 'woocommerce_price_trim_zeros', '__return_false' ); |
View functions.php
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
<?php | |
function custom_woocommerce_catalog_orderby( $items ) { | |
unset( $items['price'] ); | |
unset( $items['price-desc'] ); | |
return $items; | |
} |
View functions.php
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
<?php | |
function custom_wc_mercadopago_args( $args ) { | |
$args['payment_methods'] = array( | |
'excluded_payment_types' => array( | |
array( 'id' => 'ticket' ) | |
) | |
); | |
return $args; |
View functions.php
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
<?php | |
/** | |
* Move the WooCommerce Correios shipping product simulator. | |
*/ | |
remove_action( 'woocommerce_single_product_summary', array( 'WC_Correios_Product_Shipping_Simulator', 'simulator' ), 45 ); | |
add_action( 'woocommerce_single_product_summary', array( 'WC_Correios_Product_Shipping_Simulator', 'simulator' ), 25 ); |
View style.css
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
/* Simulador */ | |
#wc-correios-simulator { | |
} | |
/* Título do simulador */ | |
#wc-correios-simulator strong { | |
} |
View class-wc-language-pack-upgrader.php
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
<?php | |
if ( ! defined( 'ABSPATH' ) ) { | |
exit; // Exit if accessed directly | |
} | |
/** | |
* WooCommerce Language Pack Upgrader class | |
* | |
* Downloads the last language pack. | |
* |
View functions.php
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
function custom_woocommerce_show_product_thumbnails() { | |
global $product; | |
$attachment_ids = $product->get_gallery_attachment_ids(); | |
if ( ! empty( $attachment_ids ) ) { | |
$attachment_id = current( $attachment_ids ); // pega o primeiro | |
$image_link = wp_get_attachment_url( $attachment_id ); |
View paypal.txt
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
ninja@email.com|20 | |
sensei@email.com|15 |
View index.html
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
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"> |
View style.css
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
.payment_method_pagseguro > input[type="radio"], | |
.payment_method_pagseguro > label, | |
.woocommerce #payment div.payment_box.payment_method_pagseguro:after, | |
.woocommerce-page #payment div.payment_box.payment_method_pagseguro:after, | |
.payment_box.payment_method_pagseguro > p { | |
display: none; | |
} | |
.woocommerce #payment div.payment_box.payment_method_pagseguro, | |
.woocommerce-page #payment div.payment_box.payment_method_pagseguro { |
OlderNewer