Plugin Directory

Changeset 1713817


Ignore:
Timestamp:
08/15/2017 09:26:31 PM (9 years ago)
Author:
firdousi
Message:

errorfixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • woo-search-on-product-sku/trunk/index.php

    r1617035 r1713817  
    11<?php
    22/**
    3 * Plugin Name: Woo search on product SKU & Woocommerce basic configurations
     3* Plugin Name: SKU search to direct product page
    44* Description: Woo Sku to Product, If a user search for a product by its SKU user will be redirected to  Product page directly
    55* Change add to cart text
    66* Change Proceed to checkout button text
    7 * Version: 1.4
     7* Version: 1.5
    88* Author: Xaraar
    99* Author URI: Xaraar.com
     
    235235}
    236236
    237 function disable_shipping_calc_on_cart( $show_shipping ) {
     237function woobfdisable_shipping_calc_on_cart( $show_shipping ) {
    238238
    239239    $options = get_option( 'woobf__settings' );
     
    243243    return $show_shipping;
    244244}
    245 add_filter( 'woocommerce_cart_ready_to_calc_shipping', 'disable_shipping_calc_on_cart', 99 );
    246 
    247 
    248 function woocommerce_button_proceed_to_checkout() {
     245add_filter( 'woocommerce_cart_ready_to_calc_shipping', 'woobfdisable_shipping_calc_on_cart', 99 );
     246
     247
     248function woobfwoocommerce_button_proceed_to_checkout() {
    249249    $options = get_option( 'woobf__settings' );
    250250    if( !empty($options['woobf_proceed_to_checkout_button_text_field']) &&  $options['woobf_proceed_to_checkout_button_text_field']!= '') {
     
    259259
    260260
    261 add_filter( 'add_to_cart_text', 'woo_custom_single_add_to_cart_text' );                // < 2.1
    262 add_filter( 'woocommerce_product_single_add_to_cart_text', 'woo_custom_single_add_to_cart_text' );  // 2.1 +
     261add_filter( 'add_to_cart_text', 'woobfwoo_custom_single_add_to_cart_text' );                // < 2.1
     262add_filter( 'woocommerce_product_single_add_to_cart_text', 'woobfwoo_custom_single_add_to_cart_text' );  // 2.1 +
    263263 
    264 function woo_custom_single_add_to_cart_text() {
     264function woobfwoo_custom_single_add_to_cart_text() {
    265265 
    266266  $options = get_option( 'woobf__settings' );
Note: See TracChangeset for help on using the changeset viewer.