Also to make the module more manageable I am switching from Tagged Transaction, to the XML model.
This will make the code easier to adjust and manage as fedex constantly changes things...![]()
Also to make the module more manageable I am switching from Tagged Transaction, to the XML model.
This will make the code easier to adjust and manage as fedex constantly changes things...![]()
Ancient: This is not a big deal. But you need permission to use their logos. Also, if your going to DO this, put in an option for account numbers. Any larger company will have an account and negotiated rates.
This would be handy also in the UPS module. I have found that UPS freight much much less than FedEx Freight. UPS is more in line with other LTL shippers like Yellow, Old Dominion, etc.
Really wish I knew what I am doing in that code in 1st post that is wrong... anyone?
-chaddro
I would happy help with that, i dont see anything standing out to me, post the mysql errors, in full, so i can see what exactly is happening.
Back on the Fedex Rant, Why do they need soo many different options for more or less the same service, In researching the Freight Module for my client I have found they have
Fedex Express Frieght
Fedex Ground Multi=Package Frieght
Fedex Freight (LTL)
#####, and all of them use different APIs and web services
EDIT: Moderator note: aggressive language censored
Ancient:
I sent you a pm with a link to the two files. Thanks for taking a look!
-chaddro
I was considering asking Merlin to add a feature to the Fedex modules, but since he has abandoned the project, I will put in my 2 cents to whomever is brave or foolhardy enough to do it.
REQUEST: could we have the ability to select WHICH services we want quoted like the UPS and USPS modules?![]()
If you look in the files them selves just comment out what you dont want displayed
Well! I figured it out... SORT OF!
I am getting correct rates back now. But it still needs work. Unless I raise the maximum shipping weight, the Estimator want to break down the shipment into multiple packages... that doesn't work for podiums!Code:$n = sizeof($products); for ($i=0; $i<$n; $i++) { $products_id = $products[$i]['id']; $prod_query = $db->Execute("select products_fxf_class, products_fxf_desc, products_fxf_nmfc, products_fxf_haz, products_fxf_freezable FROM " . TABLE_PRODUCTS . " WHERE products_id = '".$products[$i]['id']."'"); while (!$prod_query->EOF) { // was trying to use this, but it didn't work ...??? // $prod_info[] = $pro_query->fields['products_id']; $prod_query->MoveNext(); } //class, weight, pcs, descr, nmfc, haz, freezable $url_attr .= '&as_class' . $x . '=' . $prod_query->fields['products_fxf_class']; $url_attr .= '&as_weight' . $x . '=' . $products[$i]['quantity'] * (int)$products[$i]['weight']; $url_attr .= '&as_pcs' . $x . '=' . $products[$i]['quantity']; if (trim($prod_info['products_fxf_desc']) != '') { $url_attr .= '&as_descr' . $x . '=' . urlencode($prod_query->fields['products_fxf_desc']); } if (trim($prod_info['products_fxf_nmfc']) != '') { $url_attr .= '&as_nmfc' . $x . '=' . urlencode($prod_query->fields['products_fxf_nmfc']); } if (trim($prod_info['products_fxf_haz']) != '') { $url_attr .= '&as_haz' . $x . '=' . $prod_query->fields['products_fxf_haz']; } if (trim($prod_info['products_fxf_freezable']) != '') { $url_attr .= '&as_freezable' . $x . '=' . $prod_query->fields['products_fxf_freezable']; } //Six is the maximum number of products that FedEx will take at a time. if ($x >= 6) { $fxf_urls[] = array('pcs' => '6', 'url' => $base_URL . $url_attr); $x = 1; $url_attr = ''; } else { $x++; } }
And I need to figure this part out:
How do I fix this section of code so I can reference withCode:while (!$prod_query->EOF) { // was trying to use this, but it didn't work ...??? // $prod_info[] = $pro_query->fields['products_id']; $prod_query->MoveNext(); }
$prod_info['products_fxf_class']
Thanks for the help!
Nothing in that code breaks the package down by shipping weight, the module as written creates a pallet for each type of item, so if you have the follow order
100 Widgets
200 Fidgets
the module would get a price to ship 1 Pallet of 100 Widgets and 1 Pallet of 200 Fidgets (which is one of the problems I have with it, as I ship mixed pallets. so I would have 1 pallet of 300 pcs)
If you using the "Shipping Estimator" Page shown at the bottom of the check out, you will need to edit the shipping estimator not the shipping module
Does anyone have a working FedEx Freight module?
I looked everywhere in the forum and can't find anything on it yet.
My client has a Fedex account and shippes by FedEx Freight only and my PHP skill isn;t good enough to tackle it.