Skip to content

Instantly share code, notes, and snippets.

View dennisnissle's full-sized avatar

Dennis Nissle dennisnissle

View GitHub Profile
@dennisnissle
dennisnissle / gist:b413200a83746d6fb0a6
Created January 24, 2015 16:22
Hide estimated text WooCommerce
<?php
add_action( 'woocommerce_cart_totals_after_order_total', 'my_theme_hide_cart_estimated_text' );
add_action( 'woocommerce_after_cart_totals', 'my_theme_remove_cart_tax_zero_filter' );
function my_theme_hide_cart_estimated_text() {
add_filter( 'woocommerce_get_cart_tax', 'my_theme_set_cart_tax_zero' );
}
function my_theme_set_cart_tax_zero( $tax ) {
return 0;
<?php
/**
* Template for displaying earch form
*
* @author Vendidero
* @version 1.0.0
*/
?>
<div class="widget widget_search">
<form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<?php
/**
* Template for displaying product search form
*
* @author Vendidero
* @version 1.0.0
*/
?>
<form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get">
<input type="search" name="s" value="<?php the_search_query(); ?>" placeholder="<?php _e( 'Search Products', 'vendipro' );?>" />
<?php
$service = 'http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl';
$client = new SoapClient( $service, array( 'exceptions' => true ) );
try {
$rs = $client->checkVat( array( 'countryCode' => 'AT', 'vatNumber' => 'U653977XX' ) );
<?php
function woocommerce_gzd_template_checkout_legal() {
echo '<p class="form-row legal terms">' . ( get_option( 'woocommerce_gzd_display_checkout_legal_no_checkbox' ) == 'no' ? '<input type="checkbox" class="input-checkbox" name="legal" id="legal" />' : '' ) . ' <label class="checkbox" for="legal">' . wc_gzd_get_legal_text() . '</label></p>';
}
?>
@dennisnissle
dennisnissle / functions.php
Created April 28, 2016 11:47
WooCommerce Germanized disable instant order confirmation
<?php
my_childtheme_disable_confirmation( $confirm ) {
return false;
}
add_filter( 'woocommerce_gzd_instant_order_confirmation', 'my_childtheme_disable_confirmation', 10, 1 );
?>
<wpml-config>
<admin-texts>
<key name="theme_mods_vendipro">
<key name="vendipro_options">
<key name="features_1" />
<key name="features_2" />
<key name="features_3" />
</key>
</key>
</admin-texts>
<wpml-config>
<admin-texts>
<key name="woocommerce_gzd_shipping_costs_text" />
<key name="woocommerce_gzd_free_shipping_text" />
<key name="woocommerce_gzd_order_submit_btn_text" />
<key name="woocommerce_gzd_complaints_procedure_text" />
<key name="woocommerce_gzd_delivery_time_text" />
<key name="woocommerce_gzd_unit_price_text" />
<key name="woocommerce_gzd_product_units_text" />
<key name="woocommerce_gzd_display_listings_link_details_text" />
.woocommerce-checkout {
border: 2px solid #0099cc;
padding: 15px;
}
.woocommerce .checkout .woocommerce-checkout-review-order {
border: none;
padding: 0;
}
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
/**
* Contains Revocation Form Fields
*
* @class WC_GZD_Revocation
* @version 1.0.0
* @author Vendidero
*/