if (!empty($tax_rates)) { $tax_rate = reset($tax_rates); $tax_rate_info = (float)$tax_rate[‘rate’]; $f_rate = $tax_rate_info * 1; }
wordpress woocommerce > settings > tax 메뉴 추가
classMainextendsBridge { /** Display Price and Tax */ $this->add_filter( ‘woocommerce_get_sections_tax’, ‘WooComInfusionSettingTax@showTab’ ); $this->add_filter( ‘woocommerce_get_settings_tax’, ‘WooComInfusionSettingTax@showForm’, 10, 2 ); …..} classWooComInfusionSettingTaxextendsController […]
wordpress delete_post_meta by meta_value
// Delete item. if( isset($_POST[‘delete_item’]) && $_POST[‘delete_item’] !=” ) { $jsDelItems = json_decode(stripslashes($_POST[‘delete_item’])); $delData = array(); foreach( $jsDelItems as $menuArr […]
JAVASCRIPT Looping JSON Array
var json = [{“code”:”02000000″,”name”:”level1-2″},{“code”:”01000000″,”name”:”level1″}] ; for(var i = 0; i < json.length; i++){ var obj = json[i]; console.log(obj.code, obj.name);} // […]
PHP Laravel 6,7 – 문자 자르기 Str::substr() – ( Helpers )
컨트롤 —- use Illuminate\Support\Str; $converted = Str::substr(‘The Laravel Framework’, 4, 7); // Laravel Front (…blade.php) —- {{ \Illuminate\Support\Str::substr(‘The Laravel Framework’,-9 […]
PHP Laravel 파일 작성 .htaccess
<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On […]
APACH 아파치 포트 변경
# If you just change the port or add more ports here, you will likely also # have to change […]
JAVASCRIPT 입력 제약 참조
var common = { datepicker : function(){ $(“.datepicker”).datepicker({ dateFormat : ‘yy-mm-dd’ , prevText : ‘이전달’ , nextText : ‘다음달’ […]