Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

help with ups.php


keithschm

Recommended Posts

I am trying to make a free ups ground shipping, and subtract the ground price from the other shipping ups options. Since the code for the ups prices is a list I am not sure if the ground price is a var.

 

here is the ups code.

 

$methods = array();
	$qsize = sizeof($upsQuote);
	for ($i=0; $i<$qsize; $i++) {
	  list($type, $cost) = each($upsQuote[$i]);
	  $methods[] = array('id' => $type,
						 'title' => $this->types[$type],
						 'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);


	}

 

now I can add - $whatever the ground $ var is to

 

 'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);

 

and that should work. I tested it with $cost and it subtracted the shipping cost from all.

but I can not figure out how to pull just the ground cost.

 

Anybody know what that would be ?

 

thanks

Link to comment
Share on other sites

ok I have been going through the code, and trying many things. if I use the code below, it removes all shipping costs from the quote. But I can not just find the Ground or GND cost.

 

HELP.....

'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes - $cost);

Link to comment
Share on other sites

ok I figured out. now

 

is there a list of vars the $HTTP_POST_VARS, that get passed through the check out process. for product id etc... I am trying to ad a if statment so I need to know what the var is for a product that is being ordered. I really need the manyfactures ID but I could probably get that once I had the prodcut id of what is being ordered

Link to comment
Share on other sites

  • 4 weeks later...
ok I figured out. now

 

is there a list of vars the $HTTP_POST_VARS, that get passed through the check out process. for product id etc... I am trying to ad a if statment so I need to know what the var is for a product that is being ordered. I really need the manyfactures ID but I could probably get that once I had the prodcut id of what is being ordered

 

 

 

Did you figure out how to remove the ups ground? I have been trying to figure it out as well can you please tell me what you did?

Link to comment
Share on other sites

Did you figure out how to remove the ups ground? I have been trying to figure it out as well can you please tell me what you did?

 

 

 

I am able to make free ground period, and subtrack the ground price from the otheres on the shipping page, but when we get to the confirm page only the free ground will casrry through. if another option sis selected it will have the full shipping price. very strange. I have to dig deeper...

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...