Jump to content

By Weight Tweaking


Guest

Recommended Posts

Hi, I need some assistance...

- I've got products that require no shipping - I set the weight at 0.00

- In shipping by weight I add 0.01:0.00

- The mod won't let me have the above without an error unless I either have a handling fee or tax. In otherwords, it just won't allow a $0 shipping fee - it must have something, at least 1 cent, then it works.

Any ideas how to allow it to be $0??

Thanks!

Link to comment
Share on other sites

Hi, I need some assistance...

- I've got products that require no shipping - I set the weight at 0.00

- In shipping by weight I add 0.01:0.00

- The mod won't let me have the above without an error unless I either have a handling fee or tax. In otherwords, it just won't allow a $0 shipping fee - it must have something, at least 1 cent, then it works.

Any ideas how to allow it to be $0??

Thanks!

modules/shipping/By_Weight/calc.php

SEARCH FOR

if($sum == 0){

	$sum = 0.00;

}




REPLACE WITH
/*

if($sum == 0){

	$sum = 0.00;

}

*/

// Free ship if weight = 0 by convict -->

if($sumClass1 == 0 && $sumClass2 == 0 && isset($shipZone)){



	$shippingPrice .= "<option value='".$shipKey."'";

	

	if($shipKey ==$basket['shipKey']){

		$shippingPrice .= " selected='selected'";

		$basket = $cart->setVar("Free","shipMethod");

		$basket = $cart->setVar(sprintf("%.2f","0.00"),"shipCost");

	}

	

	$shippingPrice .= ">".priceFormat("0.00")." Free</option>\r\n";

	$shippingAvailable = TRUE;

	

	$shipKey++;

}

// <-- Free ship if weight = 0 by convict

Have fun! ;)

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...