Jump to content

Shipping Total Workaround


Guest benlogan

Recommended Posts

Guest benlogan

Hi, I don't know if it has already been done, but I worked it out. This is my first time doing php coding, so it wont be that greate, but, it solves the problem of not adding the shipping to the total without the customer clicking it.

What it does is adds "Please select a shipping method." as the fault shipping option.

So it forces the user to select a method. although it doesnt stop them from just clicking continue. i will try to fix that. anyway do this.

open /modules/shipping/by_weight/calc.php

find

$countryISO = countryIso($basket['delInf']['country']);




add just below




$SelectMethod = "Please select a shipping method.";




find




if($sum == 0){

	$sum = 0.00;

}



$taxVal = taxRate($module['tax']);




add just below




//start "plesae select method"

	$shippingPrice .= "<option value='".$i."C0|".$SelectMethod."'";

	

	if($i."C0" == $optNo){

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

  //$basket = $cart->setVar("By Weight (1st Class)","shipMethod");

	}

	

	$sum = $sumClass1;

	

	$shippingPrice .= ">".$SelectMethod."</option>\r\n";

	

  //$shippingPrice .= "<option value='".$i."C0|".$sumClass1."'";

	//end method

now it should work. as you can see its not very conventional, but it works. i just need to work out, how to stop the user from not selecting a method. if anyone can help me, please feel free.

Link to comment
Share on other sites

  • 2 weeks later...

Benlogan, great minds think alike. Just last night I suggested that doing this might be a solution, and now I see you have already done it. I am going to try this.

Have you found a solution yet that would prevent the user from just clicking Continue? I will be very happy if you have. Please post it.

Thanks!!

Link to comment
Share on other sites

Dear benlogan

I am not sure if this is help or even possoble but just suggest.

Is it possible to put some hidden commend on "Continue" botton?

so when customer click on "continue" button, updated total amount automatically.

Like "mouseOver" commend.

Possible? or Duh!

I wish it is good idea and you make it soon.

Sincerely,

Andy

Link to comment
Share on other sites

Thank you thank you thank you brooky!!!!

you are da man im eagerly awaiting the 3.0.3 release and I know you have busted arse to get it right.

does the nekkie cubecart dance (_|\_) (_/|_) (_|\_) (_/|_) (_|\_) (_/|_) (_|\_) (_/|_) (_|\_) (_/|_) (_|\_) (_/|_) (_|\_) (_/|_) (_|\_) (_/|_) (_|\_) (_/|_) (_|\_) (_/|_)

Kinetic

Link to comment
Share on other sites

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...