Lines:
1 to 63 of 63
<?php /** * Plugin Name: oik Weight/Country Shipping * Plugin URI: https://www.oik-plugins.com/oik-plugins/oik-weightcountry-shipping * Description: WooCommerce extension for Weight/Country shipping. No longer supported. Please switch to oik-weight-zone-shipping. * Version: 1.4.3 * Author: bobbingwide * Author URI: https://bobbingwide.com/about-bobbing-wide * License: GPL2 * Text Domain: oik-weightcountry-shipping * Domain Path: /languages/ * WC requires at least: 2.6 * WC tested up to: 8.2.1 Copyright Bobbing Wide 2014-2023 ( email : herb@bobbingwide.com ) Copyright 2012 andyswebdesign.ie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The license for this software can likely be found here: http://www.gnu.org/licenses/gpl-2.0.html */ /* function init_oik_shipping() – Implement "plugins_loaded" action for oik-weightcountry-shipping */ /* class OIK_Shipping */ /* function OIK_Shipping::__construct() – Constructor for OIK_Shipping class */ /* function OIK_Shipping::init() – */ /* function OIK_Shipping::init_form_fields() – */ /* function OIK_Shipping::display_country_groups() – */ /* function OIK_Shipping::calculate_shipping() – Calculate shipping rates */ /* function OIK_Shipping::get_countrygroup() – Retrieve the number of the country group for the country selected by the user on checkout */ /* function OIK_Shipping::get_rates_by_countrygroup() – Retrieves all rates available for the selected country group */ /* function OIK_Shipping::set_countrygroup_title() – Set the title for this country group rate */ /* function OIK_Shipping::pick_smallest_rate() – Picks the right rate from available rates based on cart weight */ /* function OIK_Shipping::sort_ascending() – Sort the rates array by ascending weight */ /* function OIK_Shipping::no_shipping_available() – Implement "woocommerce_cart_no_shipping_available_html" */ /* function OIK_Shipping::admin_options() – Display Weight/Country shipping options */ /* function add_oik_shipping() – Implement ‘woocommerce_shipping_methods’ filter for oik-weightcountry-shipping */ /* function init_oik_weightcountry_l10n() – Implement ‘woocommerce_init’ to load l10n versions and then initialise weight/country shipping */ //add_action( 'plugins_loaded', 'init_oik_shipping', 0 ); add_filter( 'woocommerce_shipping_methods', 'add_oik_shipping' ); add_action( 'woocommerce_init', 'init_oik_weightcountry_l10n' ); if ( !function_exists( "bw_trace2" ) ) { /* function bw_trace2() – Trace $value to the trace log file if tracing is active */ /* function bw_backtrace() – Log a debug_backtrace() to the trace log file if tracing is active */ }View on GitHub View on Trac