Title: JayaParmar's Replies | WordPress.org

---

# JayaParmar

  [  ](https://wordpress.org/support/users/jayaparmar/)

 *   [Profile](https://wordpress.org/support/users/jayaparmar/)
 *   [Topics Started](https://wordpress.org/support/users/jayaparmar/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jayaparmar/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jayaparmar/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jayaparmar/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jayaparmar/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jayaparmar/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Postcode shipping rate by total weight and not quantity](https://wordpress.org/support/topic/postcode-shipping-rate-by-total-weight-and-not-quantity/)
 *  Thread Starter [JayaParmar](https://wordpress.org/support/users/jayaparmar/)
 * (@jayaparmar)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/postcode-shipping-rate-by-total-weight-and-not-quantity/#post-6899896)
 * 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??
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Postcode shipping rate by total weight and not quantity](https://wordpress.org/support/topic/postcode-shipping-rate-by-total-weight-and-not-quantity/)
 *  Thread Starter [JayaParmar](https://wordpress.org/support/users/jayaparmar/)
 * (@jayaparmar)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/postcode-shipping-rate-by-total-weight-and-not-quantity/#post-6899861)
 * 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;
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [OIK weight/country shipping minimum rate always](https://wordpress.org/support/topic/oik-weightcountry-shipping-minimum-rate-always/)
 *  Thread Starter [JayaParmar](https://wordpress.org/support/users/jayaparmar/)
 * (@jayaparmar)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/oik-weightcountry-shipping-minimum-rate-always/#post-6899858)
 * 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;
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Postcode shipping rate by total weight and not quantity](https://wordpress.org/support/topic/postcode-shipping-rate-by-total-weight-and-not-quantity/)
 *  Thread Starter [JayaParmar](https://wordpress.org/support/users/jayaparmar/)
 * (@jayaparmar)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/postcode-shipping-rate-by-total-weight-and-not-quantity/#post-6899856)
 * 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)