Changeset 1713817
- Timestamp:
- 08/15/2017 09:26:31 PM (9 years ago)
- File:
-
- 1 edited
-
woo-search-on-product-sku/trunk/index.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-search-on-product-sku/trunk/index.php
r1617035 r1713817 1 1 <?php 2 2 /** 3 * Plugin Name: Woo search on product SKU & Woocommerce basic configurations3 * Plugin Name: SKU search to direct product page 4 4 * Description: Woo Sku to Product, If a user search for a product by its SKU user will be redirected to Product page directly 5 5 * Change add to cart text 6 6 * Change Proceed to checkout button text 7 * Version: 1. 47 * Version: 1.5 8 8 * Author: Xaraar 9 9 * Author URI: Xaraar.com … … 235 235 } 236 236 237 function disable_shipping_calc_on_cart( $show_shipping ) {237 function woobfdisable_shipping_calc_on_cart( $show_shipping ) { 238 238 239 239 $options = get_option( 'woobf__settings' ); … … 243 243 return $show_shipping; 244 244 } 245 add_filter( 'woocommerce_cart_ready_to_calc_shipping', ' disable_shipping_calc_on_cart', 99 );246 247 248 function woo commerce_button_proceed_to_checkout() {245 add_filter( 'woocommerce_cart_ready_to_calc_shipping', 'woobfdisable_shipping_calc_on_cart', 99 ); 246 247 248 function woobfwoocommerce_button_proceed_to_checkout() { 249 249 $options = get_option( 'woobf__settings' ); 250 250 if( !empty($options['woobf_proceed_to_checkout_button_text_field']) && $options['woobf_proceed_to_checkout_button_text_field']!= '') { … … 259 259 260 260 261 add_filter( 'add_to_cart_text', 'woo _custom_single_add_to_cart_text' ); // < 2.1262 add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo _custom_single_add_to_cart_text' ); // 2.1 +261 add_filter( 'add_to_cart_text', 'woobfwoo_custom_single_add_to_cart_text' ); // < 2.1 262 add_filter( 'woocommerce_product_single_add_to_cart_text', 'woobfwoo_custom_single_add_to_cart_text' ); // 2.1 + 263 263 264 function woo _custom_single_add_to_cart_text() {264 function woobfwoo_custom_single_add_to_cart_text() { 265 265 266 266 $options = get_option( 'woobf__settings' );
Note: See TracChangeset
for help on using the changeset viewer.