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 | |
function custom_woocommerce_catalog_orderby( $items ) { | |
unset( $items['price'] ); | |
unset( $items['price-desc'] ); | |
return $items; | |
} |
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 | |
function custom_wc_mercadopago_args( $args ) { | |
$args['payment_methods'] = array( | |
'excluded_payment_types' => array( | |
array( 'id' => 'ticket' ) | |
) | |
); | |
return $args; |
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
/* Simulador */ | |
#wc-correios-simulator { | |
} | |
/* Título do simulador */ | |
#wc-correios-simulator strong { | |
} |
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 | |
/** | |
* 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 ); |
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 | |
} | |
/** | |
* WooCommerce Language Pack Upgrader class | |
* | |
* Downloads the last language pack. | |
* |
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
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 ); |
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
ninja@email.com|20 | |
sensei@email.com|15 |
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
<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"> |
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
.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 { |
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( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.2', '>=' ) ) { | |
} else { | |
} |
OlderNewer