Plugin Directory

Changeset 3425679


Ignore:
Timestamp:
12/22/2025 10:32:10 PM (2 months ago)
Author:
epeken
Message:

fix berat bungkus

Location:
epeken-all-kurir
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • epeken-all-kurir/tags/2.0.5/class/shipping.php

    r3424413 r3425679  
    24002400        $this -> shipping_metric_dimension = 0;
    24012401        $berat_bungkus = ($this -> settings['berat_package'])/1000;
    2402         $cart_weight = $woocommerce->cart->cart_contents_weight + $berat_bungkus;
     2402        $cart_weight = $woocommerce->cart->cart_contents_weight;
    24032403                if(get_option('woocommerce_weight_unit') === "g") {
    24042404                   $cart_weight = $cart_weight / 1000;
    2405                 }
     2405        }
     2406        $cart_weight = $woocommerce->cart->cart_contents_weight + $berat_bungkus;
     2407       
    24062408        $length=0;$width=0;$height=0;
    24072409        $dimensi_barang = 0;
  • epeken-all-kurir/trunk/class/shipping.php

    r3424413 r3425679  
    24002400        $this -> shipping_metric_dimension = 0;
    24012401        $berat_bungkus = ($this -> settings['berat_package'])/1000;
    2402         $cart_weight = $woocommerce->cart->cart_contents_weight + $berat_bungkus;
     2402        $cart_weight = $woocommerce->cart->cart_contents_weight;
    24032403                if(get_option('woocommerce_weight_unit') === "g") {
    24042404                   $cart_weight = $cart_weight / 1000;
    2405                 }
     2405        }
     2406        $cart_weight = $woocommerce->cart->cart_contents_weight + $berat_bungkus;
     2407       
    24062408        $length=0;$width=0;$height=0;
    24072409        $dimensi_barang = 0;
Note: See TracChangeset for help on using the changeset viewer.