Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter JayaParmar

    (@jayaparmar)

    Hi Rizwan
    Saw your reply on ‘weight options’ mail one year ago. Have you figured out a way?
    or can somebody help me with a solution to make the postcode shipping plugin work for weight options or anything similar??

    Thread Starter JayaParmar

    (@jayaparmar)

    Hi again,
    Can below be changed to weight instead of count by someway? The plugin is too good if it can be used this way…

    //Get Cart Quantity
    $cartQuantity = $woocommerce->cart->cart_contents_count;

    Thread Starter JayaParmar

    (@jayaparmar)

    Hi again
    Read the code under plugin, however am a begineer at wordpress. It mentiones $final_rate = $this->pick_smallest_rate( $rates, $weight ) in the below coding. Is this the reason my shipping rate is selected as the minimum value? I do not know..can an expert help me please ?
    my site is honeykhakhra.com if you would like to see the problem. The error pertains to countries outside India.

    function calculate_shipping( $package = array() ) {
    $woocommerce = function_exists(‘WC’) ? WC() : $GLOBALS[‘woocommerce’];
    $country_group = $this->get_countrygroup($package);
    $rates = $this->get_rates_by_countrygroup( $country_group );
    //bw_trace2( $rates, “rates” );
    $weight = $woocommerce->cart->cart_contents_weight;
    //bw_trace2( $weight, “cart contents weight” );
    $final_rate = $this->pick_smallest_rate( $rates, $weight );

    if ( $final_rate !== false && is_numeric( $final_rate )) {
    $taxable = ($this->tax_status == ‘taxable’) ? true : false;
    if ( $this->fee > 0 && $package[‘destination’][‘country’] ) {
    $final_rate += $this->fee;

    Thread Starter JayaParmar

    (@jayaparmar)

    Hello,
    Any help? Can this plugin be modified for total cart weight? Looking forward to responses…

Viewing 4 replies - 1 through 4 (of 4 total)