I hereby claim:
- I am bporcelli on github.
- I am bporcelli (https://keybase.io/bporcelli) on keybase.
- I have a public key ASA0TWkOn7xTTkrVcprgiz_Q58ajvl59T_BZyeOEW-EqTgo
To claim this, I am signing this object:
<?php | |
use WCV_Payouts\Commissions; | |
use WCV_Payouts\PayoutBuilder; | |
use WCV_Payouts\Payouts; | |
/** | |
* Triggers a payout for all order commissions when an order is marked | |
* complete. | |
* |
<?php | |
/** | |
* Force use of 1 day shipping if vendor shipping package includes | |
* perishable items. | |
* | |
* @param array $rates Shipping package rates. | |
* @param array $package Shipping package. | |
* | |
* @return array |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/** | |
* Hides all shipping services with an estimated delivery time of 1 day. | |
* | |
* @param bool $show_rate Whether to show the shipping rate. | |
* @param array $rate Shippo Rate object. | |
* | |
* @return bool | |
*/ |
<?php | |
/** | |
* Returns a list of Shippo shipping services to disable. | |
* | |
* @return string[] | |
*/ | |
function ms_get_disabled_shipping_services() { | |
// List shipping services to disable here. | |
// See https://goshippo.com/docs/reference#servicelevels for possible values. |
/** | |
* Hide shipping rates when free shipping is available. | |
* | |
* @param array $rates Array of rates found for the package. | |
* @return array | |
*/ | |
function my_hide_shipping_when_free_is_available( $rates ) { | |
$free = array(); | |
foreach ( $rates as $rate_id => $rate ) { | |
if ( 0 === (int) $rate->cost ) { |
<?php | |
/** | |
* Changes which shipping methods are enabled by default for MarketShip. | |
* | |
* @param array $shipping_methods Shipping methods enabled for vendor. | |
* @param int $vendor_id Vendor user ID. | |
* | |
* @return array | |
*/ |
<?php | |
/** | |
* Check whether a vendor offers free shipping to a country with TRS. | |
* This doesn't check whether free shipping would actually be available | |
* for a given product weight/quantity/subtotal. For that, see the | |
* function below. | |
* | |
* @param int $vendor_id Vendor ID. | |
* @param string $country_code ISO country code. |
<?php | |
/** | |
* Change the "Europe" continent in WooCommerce to only include the EU countries. | |
* | |
* @param array $continents WooCommerce continents. | |
* | |
* @return array | |
*/ | |
function pluginpros_change_countries_for_europe( $continents ) { |
<?php | |
/** | |
* Removes the Setings > Shipping tab in the vendor dashboard. | |
* | |
* @param array $tabs Vendor settings tabs. | |
* | |
* @return array | |
*/ | |
function wcv_remove_vendor_shipping_settings_tab( $tabs ) { |