JayaParmar
Forum Replies Created
-
Forum: Plugins
In reply to: Postcode shipping rate by total weight and not quantityHi 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
In reply to: Postcode shipping rate by total weight and not quantityHi 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
In reply to: OIK weight/country shipping minimum rate alwaysHi 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
In reply to: Postcode shipping rate by total weight and not quantityHello,
Any help? Can this plugin be modified for total cart weight? Looking forward to responses…