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
| // Ensure cart contents update when products are added to the cart via AJAX (place the following in functions.php) | |
| add_filter('add_to_cart_fragments', 'woocommerce_header_add_to_cart_fragment'); | |
| function woocommerce_header_add_to_cart_fragment( $fragments ) { | |
| global $woocommerce; | |
| ob_start(); | |
| ?> | |
| <a class="cart-contents" href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"><?php echo sprintf(_n('%d item', '%d items', $woocommerce->cart->cart_contents_count, 'woothemes'), $woocommerce->cart->cart_contents_count);?> - <?php echo $woocommerce->cart->get_cart_total(); ?></a> |
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
| share-buttons.xyz | |
| traffic2cash.xyz | |
| с.новым.годом.рф | |
| net-profits.xyz | |
| social-widget.xyz | |
| free-social-buttons.xyz | |
| 4webmasters.org | |
| 76brighton.co.uk | |
| 7makemoneyonline.com | |
| acads.net |
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
| /** | |
| * Changes the redirect URL for the Return To Shop button in the cart. | |
| * | |
| * @return string | |
| */ | |
| function wc_empty_cart_redirect_url() { | |
| return 'http://mywebsite.com/sample-page/'; | |
| } | |
| add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' ); |
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
| // Add snippet to your functions.php file to add a second password field to the WooCommerce checkout page. | |
| add_action( 'woocommerce_checkout_init', 'wc_add_confirm_password_checkout', 10, 1 ); | |
| function wc_add_confirm_password_checkout( $checkout ) { | |
| if ( get_option( 'woocommerce_registration_generate_password' ) == 'no' ) { | |
| $checkout->checkout_fields['account']['account_password2'] = array( | |
| 'type' => 'password', | |
| 'label' => __( 'Confirm password', 'woocommerce' ), | |
| 'required' => true, | |
| 'placeholder' => _x( 'Confirm password', 'placeholder', 'woocommerce' ) | |
| ); |
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
| add_filter( 'woocommerce_product_get_tax_class', 'big_apple_get_tax_class', 1, 2 ); | |
| function big_apple_get_tax_class( $tax_class, $product ) { | |
| if ( WC()->cart->subtotal > 150 // 150 eur = 135 gbp, until a live rate is available | |
| && WC()->customer->get_billing_country() === 'GB' // only change the tax class for customers from GB. _billing_ can be changed to _shipping_ as well. | |
| && ! preg_match( 'BT', strtoupper( WC()->customer->get_billing_postcode() ) ) // but only those outside of Northern Ireland | |
| ) { | |
| $tax_class = 'Zero Rate'; | |
| } | |
| return $tax_class; | |
| } |
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
| add_action('profile_update', 'wc_fue_update_customers_table_user_profile_update', 10, 2); | |
| function wc_fue_update_customers_table_user_profile_update( $user_id, $old_user_data ) { | |
| // step 1 - get user from user id and email. | |
| $user = get_userdata($user_id); | |
| if ( !$user ) { | |
| return; | |
| } | |
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 | |
| /** | |
| * Plugin Name: Extend WooCommerce Subscription Intervals | |
| * Description: Add a "every 25" billing interval to WooCommerce Subscriptions | |
| * Author: Brent Shepherd | |
| * Author URI: http://brent.io | |
| * Version: 1.0 | |
| * License: GPL v2 | |
| */ |
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
| //add instead of [submit] in Contact Form 7 | |
| <button type="submit" class="btn btn-large btn-primary"><i class="fa fa-bed"></i></button> | |
| <img class="ajax-loader" src="http://www.yoursite.com/wp-content/plugins/contact-form-7/images/ajax-loader.gif" alt="Sending ..." style="visibility: hidden; opacity: 1;"> |
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
| #woocommerce_eu_vat_number { | |
| position: absolute; | |
| top: 230px; | |
| width: 100%; | |
| } | |
| #billing_country_field { | |
| margin-top: 6em; | |
| } |
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
| .woocommerce-message a.button.wc-forward:hover { | |
| color: #222 !important; /* change this color code! */ | |
| } | |
| .woocommerce input.button, .woocommerce input.button:hover { | |
| color: #333 !important; | |
| } |
NewerOlder