Enabled product bundles

This commit is contained in:
Nedim Uka
2018-06-29 14:40:28 +02:00
parent e0514f7f57
commit b5475ff2f1
12004 changed files with 1694047 additions and 1610 deletions

View File

@@ -0,0 +1,48 @@
<?php
/**
* Booster for WooCommerce - Functions - Math
*
* @version 3.6.0
* @since 3.6.0
* @author Algoritmika Ltd.
*/
if ( ! defined( 'ABSPATH' ) ) exit;
if ( ! function_exists( 'wcj_round' ) ) {
/**
* wcj_round.
*
* @version 3.6.0
* @since 3.6.0
*/
function wcj_round( $value, $precision = 0, $rounding_function = 'round' ) {
return $rounding_function( $value, $precision );
}
}
if ( ! function_exists( 'wcj_ceil' ) ) {
/**
* wcj_ceil.
*
* @version 3.6.0
* @since 3.6.0
*/
function wcj_ceil( $value, $precision = 0 ) {
$fig = ( int ) str_pad( '1', $precision + 1, '0' );
return ( ceil( $value * $fig ) / $fig );
}
}
if ( ! function_exists( 'wcj_floor' ) ) {
/**
* wcj_floor.
*
* @version 3.6.0
* @since 3.6.0
*/
function wcj_floor( $value, $precision = 0 ) {
$fig = ( int ) str_pad( '1', $precision + 1, '0' );
return ( floor( $value * $fig ) / $fig );
}
}