Post by kgkaraoke » Tue Aug 21, 2012 10:27 am

Daniel wrote:Finaly after 2 months opencart 1.5.4 is released with some important new features.

You can download it here:
https://github.com/downloads/opencart/o ... .5.4.1.zip

REQUIRES NEW VERSION OF VQMOD!
http://forum.opencart.com/viewtopic.php ... 37#p332037


ADDED
Fedex
Auspost
PayMate
View Customers Online
Searchable fields like isbn, upc, eam, etc..
Updated the doctype to html5
Update Authorize.net (AIM) for Shipping information
Added salt columns for better security
Using mCrypt for better encryption security (now requires PHP mcrypt extension).
better image re-sizing. if an images is the correct size it won;t be re-sized.

FIXED
Show stock warning only if enabled for individuals products.
Sending mail to customers fails when SSL enabled
Delete address from address book fix
customer_blacklist IPv6 fix
Use default PNG compression level of 6

A full list fo fixes you can be found here:

https://github.com/opencart/opencart/is ... ate=closed

A full list of changes can be found here:

https://github.com/opencart/opencart/commits/master

BNe Reporting here:

http://forum.opencart.com/viewtopic.php?f=161&t=81219
Unfortunately the FEDEX module is totally DEAD and doesn't even appear as a shipping option on Checkout. We've been up for two days straight with this, and we are CERTAIN that it is absolutely DOA.

New member

Posts

Joined
Fri Oct 29, 2010 9:06 am

Post by Johnathan » Tue Aug 21, 2012 10:09 pm

There's always the commercial version: http://www.opencart.com/index.php?route ... on_id=2055

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by Daniel » Thu Aug 23, 2012 7:51 pm

worked for me!

this is an email i'm assuming is from you


Hello Daniel,

CORRECTION:

I HAD THE UPS MODULE TURNED ON.
FEDEX IS NOT WORKING AT ALL AND DOESN'T EVEN APPESR
AS A SHIPPING METHOD.

We had neglected to use the script to update from 3.5.3.1, and have
since determined trhat your Fedex module is working, but it doesn;t
retain the "your packaging" setting, snapping back toenvelope when the
setup is reentered.

Anyway, your updating instructions are incorrect.
They should simply be www.mystore.com/install , and OpenCart
will detect that this is an update request. There's no such path
as the one you show in the instructions, and there's not even an
update.php file in the install directory.

I di note that I get the same rates regardless of the packaging,
though.

OpenCart 1.5.4.1 is working fine.

REMEMBER THOUGH, THAT THE LATEST VERSION OF VQMOD MUST BE INSTALLED,
AS OLDER VERSIONS WILL NOT RUN ON 1.5.4.X

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by sakra00 » Tue Aug 28, 2012 2:51 am

Hello,

how did you guys get the FEDEX to display on the shipping page?

I upgraded to the 1.5.4 version using the upgrade script. Everything works fine except the Fedex does not show as an option on the checkout page.

I configured installed the module and configured it. Nothing on the checkout page - no errors.

Any assistance will be appreciated.

Newbie

Posts

Joined
Tue Aug 28, 2012 2:48 am

Post by kgkaraoke » Tue Aug 28, 2012 4:30 pm

sakra00 wrote:Hello,

how did you guys get the FEDEX to display on the shipping page?

I upgraded to the 1.5.4 version using the upgrade script. Everything works fine except the Fedex does not show as an option on the checkout page.

I configured installed the module and configured it. Nothing on the checkout page - no errors.

Any assistance will be appreciated.
It is NOT displaying, as it was stillborn.

New member

Posts

Joined
Fri Oct 29, 2010 9:06 am

Post by sakra00 » Tue Aug 28, 2012 4:55 pm

Thanks for your reply,

so it is NOT working in this version as it is not finished, yet. Need to wait for the next update? Do I understand that correctly?

Thanks a lot.

Newbie

Posts

Joined
Tue Aug 28, 2012 2:48 am

Post by Daniel » Tue Aug 28, 2012 5:45 pm

its works. i found bugs with it but have managed to get it working fine during testing and it still works now.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by sakra00 » Wed Aug 29, 2012 4:10 pm

Well, it still does not show on my checkout page after using the upgrade script. What else can I try to get it working?

Newbie

Posts

Joined
Tue Aug 28, 2012 2:48 am

Post by texomapoolguy » Wed Aug 29, 2012 11:39 pm

I cant get the fedex extension to show up as a shipping option any advice or help?

Newbie

Posts

Joined
Wed Aug 29, 2012 11:37 pm

Post by HarryFCC » Sat Sep 01, 2012 7:50 pm

Hello Daniel,

I have enabled the Fedex option (in test mode) in Open Cart 1.54 but it does not appear in the cart. How can I get the Fedex shipping rates to appear. Please provide a clear and simple answer as I am not a programmer. How can I solve the problem from the admin interface? Tx

H

Newbie

Posts

Joined
Sat Sep 01, 2012 7:43 pm

Post by Daniel » Sat Sep 01, 2012 9:28 pm

i'm not looking into this at the moment. you should looking at the fixes i have done on github.

one of the probems was some of the packages where not working,

try the different types of packages.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by santoshm » Fri Sep 14, 2012 3:49 am

It works. Do the following.

Download latest OC from github.

Replace all these files from the github download to your server:

admin/controller/shipping/fedex.php
admin/language/english/shipping/fedex.php
admin/view/template/shipping/fedex.tpl
catalog/language/english/shipping/fedex.php
catalog/model/shipping/fedex.php

It worked for me.

New member

Posts

Joined
Thu Sep 22, 2011 10:56 pm

Post by loop » Thu Sep 20, 2012 3:22 am

Daniel wrote:i'm not looking into this at the moment. you should looking at the fixes i have done on github.

one of the probems was some of the packages where not working,

try the different types of packages.

well after updating with the new files from github

it still doesnt show up. and it give this error in the php console
2012-09-19 19:16:36 - PHP Notice: Trying to get property of non-object in *******/catalog/model/shipping/fedex.php on line 158


line 158 is
if ($dom->getElementsByTagName('HighestSeverity')->item(0)->nodeValue == 'FAILURE' || $dom->getElementsByTagName('HighestSeverity')->item(0)->nodeValue == 'ERROR') {


.. any ideas ?

Newbie

Posts

Joined
Thu Sep 13, 2012 4:45 pm

Post by loop » Thu Sep 20, 2012 4:05 am

After changing the weigh from OZ to Pound
the php error now is gone but still:
Fedex (Weight: 0.04lb)
ERROR

Image

???

Newbie

Posts

Joined
Thu Sep 13, 2012 4:45 pm

Post by kgkaraoke » Wed Oct 03, 2012 4:04 pm

santoshm wrote:It works. Do the following.

Download latest OC from github.

Replace all these files from the github download to your server:

admin/controller/shipping/fedex.php
admin/language/english/shipping/fedex.php
admin/view/template/shipping/fedex.tpl
catalog/language/english/shipping/fedex.php
catalog/model/shipping/fedex.php

It worked for me.
YOU ARE DRUNK!
IT'S DEAD AS A DOORNAIL, AND "YOUR PACKAGING" KEEPS RESEETING TO "FEDEX ENVELOPE"

New member

Posts

Joined
Fri Oct 29, 2010 9:06 am

Post by trinkaljuneja » Fri Oct 05, 2012 3:48 am

any one able to make it work

after updating file from github

show
FEDEX : error (in red color)

A coder by Hobby and Developer by Profession

Images in Manufacture
http://www.opencart.com/index.php?route ... on_id=6943
Description and images in Manufacture
http://www.opencart.com/index.php?route ... on_id=6978

http://codertj.com


New member

Posts

Joined
Tue Aug 23, 2011 9:08 pm

Post by HoodLaces » Fri Oct 05, 2012 8:39 am

I was able to get mine to work after updating from this single GITHUB file, not the entire 1.5.4.1 release... perhaps this is what you are looking for.

From GITHUB Sep 18, 2012
https://github.com/opencart/opencart/bl ... /fedex.php

ADDCreative 17 days ago
Fix Fedex not showing error

Code: Select all

<?php
class ModelShippingFedex extends Model {
function getQuote($address) {
$this->load->language('shipping/fedex');

$query = $this->db->query("SELECT * FROM " . DB_PREFIX . "zone_to_geo_zone WHERE geo_zone_id = '" . (int)$this->config->get('fedex_geo_zone_id') . "' AND country_id = '" . (int)$address['country_id'] . "' AND (zone_id = '" . (int)$address['zone_id'] . "' OR zone_id = '0')");

if (!$this->config->get('fedex_geo_zone_id')) {
$status = true;
} elseif ($query->num_rows) {
$status = true;
} else {
$status = false;
}    

$error = '';

$quote_data = array();

if ($status) {
$weight = $this->weight->convert($this->cart->getWeight(), $this->config->get('config_weight_class_id'), $this->config->get('fedex_weight_class_id'));
$weight_code = strtoupper($this->weight->getUnit($this->config->get('fedex_weight_class_id')));

$date = time();

$day = date('l', $date);

if ($day == 'Saturday') {
$date += 172800;
} elseif ($day == 'Sunday') {
$date += 86400;
}

$this->load->model('localisation/country');

$country_info = $this->model_localisation_country->getCountry($this->config->get('config_country_id'));

$this->load->model('localisation/zone');

$zone_info = $this->model_localisation_zone->getZone($this->config->get('config_zone_id'));

if (!$this->config->get('fedex_test')) {
$url = 'https://gateway.fedex.com/web-services/';
} else {
$url = 'https://gatewaybeta.fedex.com/web-services/';
}

// Whoever introduced xml to shipping companies should be flogged
$xml = '<?xml version="1.0"?>';
$xml .= '<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://fedex.com/ws/rate/v10">';
$xml .= ' <SOAP-ENV:Body>';
$xml .= ' <ns1:RateRequest>';
$xml .= ' <ns1:WebAuthenticationDetail>';
$xml .= ' <ns1:UserCredential>';
$xml .= ' <ns1:Key>' . $this->config->get('fedex_key') . '</ns1:Key>';
$xml .= ' <ns1:Password>' . $this->config->get('fedex_password') . '</ns1:Password>';
$xml .= ' </ns1:UserCredential>';
$xml .= ' </ns1:WebAuthenticationDetail>';
$xml .= ' <ns1:ClientDetail>';
$xml .= ' <ns1:AccountNumber>' . $this->config->get('fedex_account') . '</ns1:AccountNumber>';
$xml .= ' <ns1:MeterNumber>' . $this->config->get('fedex_meter') . '</ns1:MeterNumber>';
$xml .= ' </ns1:ClientDetail>';
$xml .= ' <ns1:Version>';
$xml .= ' <ns1:ServiceId>crs</ns1:ServiceId>';
$xml .= ' <ns1:Major>10</ns1:Major>';
$xml .= ' <ns1:Intermediate>0</ns1:Intermediate>';
$xml .= ' <ns1:Minor>0</ns1:Minor>';
$xml .= ' </ns1:Version>';
$xml .= ' <ns1:ReturnTransitAndCommit>true</ns1:ReturnTransitAndCommit>';
$xml .= ' <ns1:RequestedShipment>';
$xml .= ' <ns1:ShipTimestamp>' . date('c', $date) . '</ns1:ShipTimestamp>';
$xml .= ' <ns1:DropoffType>' . $this->config->get('fedex_dropoff_type') . '</ns1:DropoffType>';    
$xml .= ' <ns1:PackagingType>' . $this->config->get('fedex_packaging_type') . '</ns1:PackagingType>';    
$xml .= ' <ns1:Shipper>';
$xml .= ' <ns1:Contact>';
            $xml .= ' <ns1:PersonName>' . $this->config->get('config_owner') . '</ns1:PersonName>';
            $xml .= ' <ns1:CompanyName>' . $this->config->get('config_name') . '</ns1:CompanyName>';
            $xml .= ' <ns1:PhoneNumber>' . $this->config->get('config_telephone') . '</ns1:PhoneNumber>';
           $xml .= ' </ns1:Contact>';
$xml .= ' <ns1:Address>';

if ($country_info['iso_code_2'] == 'US') {
$xml .= ' <ns1:StateOrProvinceCode>' . ($zone_info ? $zone_info['code'] : '') . '</ns1:StateOrProvinceCode>';
} else {
$xml .= ' <ns1:StateOrProvinceCode>' . ($zone_info ? $zone_info['name'] : '') . '</ns1:StateOrProvinceCode>';
}

$xml .= ' <ns1:PostalCode>' . $this->config->get('fedex_postcode') . '</ns1:PostalCode>';
$xml .= ' <ns1:CountryCode>' . $country_info['iso_code_2'] . '</ns1:CountryCode>';
$xml .= ' </ns1:Address>';
$xml .= ' </ns1:Shipper>';

$xml .= ' <ns1:Recipient>';
$xml .= ' <ns1:Contact>';
$xml .= ' <ns1:PersonName>' . $address['firstname'] . ' ' . $address['lastname'] . '</ns1:PersonName>';
$xml .= ' <ns1:CompanyName>' . $address['company'] . '</ns1:CompanyName>';
$xml .= ' <ns1:PhoneNumber>' . $this->customer->getTelephone() . '</ns1:PhoneNumber>';
$xml .= ' </ns1:Contact>';
$xml .= ' <ns1:Address>';
$xml .= ' <ns1:StreetLines>' . $address['address_1'] . '</ns1:StreetLines>';
$xml .= ' <ns1:City>' . $address['city'] . '</ns1:City>';

if ($address['iso_code_2'] == 'US') {
$xml .= ' <ns1:StateOrProvinceCode>' . $address['zone_code'] . '</ns1:StateOrProvinceCode>';
} else {
$xml .= ' <ns1:StateOrProvinceCode>' . $address['zone'] . '</ns1:StateOrProvinceCode>';
}

$xml .= ' <ns1:PostalCode>' . $address['postcode'] . '</ns1:PostalCode>';
$xml .= ' <ns1:CountryCode>' . $address['iso_code_2'] . '</ns1:CountryCode>';
$xml .= ' <ns1:Residential>' . ($address['company'] ? 'true' : 'false') . '</ns1:Residential>';
$xml .= ' </ns1:Address>';
$xml .= ' </ns1:Recipient>';
$xml .= ' <ns1:ShippingChargesPayment>';
$xml .= ' <ns1:PaymentType>SENDER</ns1:PaymentType>';
$xml .= ' <ns1:Payor>';
            $xml .= ' <ns1:AccountNumber>' . $this->config->get('fedex_account') . '</ns1:AccountNumber>';
            $xml .= ' <ns1:CountryCode>' . $country_info['iso_code_2'] . '</ns1:CountryCode>';
           $xml .= ' </ns1:Payor>';
$xml .= ' </ns1:ShippingChargesPayment>';
$xml .= ' <ns1:RateRequestTypes>' . $this->config->get('fedex_rate_type') . '</ns1:RateRequestTypes>';
$xml .= ' <ns1:PackageCount>1</ns1:PackageCount>';
$xml .= ' <ns1:RequestedPackageLineItems>';
$xml .= ' <ns1:SequenceNumber>1</ns1:SequenceNumber>';
         $xml .= ' <ns1:GroupPackageCount>1</ns1:GroupPackageCount>';
$xml .= ' <ns1:Weight>';
$xml .= ' <ns1:Units>' . $weight_code . '</ns1:Units>';
$xml .= ' <ns1:Value>' . $weight . '</ns1:Value>';
$xml .= ' </ns1:Weight>';
$xml .= ' <ns1:Dimensions>';
$xml .= ' <ns1:Length>20</ns1:Length>';
$xml .= ' <ns1:Width>20</ns1:Width>';
$xml .= ' <ns1:Height>10</ns1:Height>';
$xml .= ' <ns1:Units>IN</ns1:Units>';
$xml .= ' </ns1:Dimensions>';
$xml .= ' </ns1:RequestedPackageLineItems>';
$xml .= ' </ns1:RequestedShipment>';
$xml .= ' </ns1:RateRequest>';
$xml .= ' </SOAP-ENV:Body>';
$xml .= '</SOAP-ENV:Envelope>';    

$curl = curl_init($url);

curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $xml);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_TIMEOUT, 30);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

$response = curl_exec($curl);

curl_close($curl);

$dom = new DOMDocument('1.0', 'UTF-8');
$dom->loadXml($response);    

if ($dom->getElementsByTagName('HighestSeverity')->item(0)->nodeValue == 'FAILURE' || $dom->getElementsByTagName('HighestSeverity')->item(0)->nodeValue == 'ERROR') {
$error = $dom->getElementsByTagName('HighestSeverity')->item(0)->nodeValue;
} else {
$rate_reply_details = $dom->getElementsByTagName('RateReplyDetails');

foreach ($rate_reply_details as $rate_reply_detail) {
$code = strtolower($rate_reply_detail->getElementsByTagName('ServiceType')->item(0)->nodeValue);

if (in_array(strtoupper($code), $this->config->get('fedex_service'))) {
$title = $this->language->get('text_' . $code);

if ($this->config->get('fedex_display_time')) {
$title .= ' (' . $this->language->get('text_eta') . ' ' . date($this->language->get('date_format_short') . ' ' . $this->language->get('time_format'), strtotime($rate_reply_detail->getElementsByTagName('DeliveryTimestamp')->item(0)->nodeValue)) . ')';
}

$total_net_charge = $rate_reply_detail->getElementsByTagName('RatedShipmentDetails')->item(0)->getElementsByTagName('ShipmentRateDetail')->item(0)->getElementsByTagName('TotalNetCharge')->item(0);

$cost = $total_net_charge->getElementsByTagName('Amount')->item(0)->nodeValue;

$currency = $total_net_charge->getElementsByTagName('Currency')->item(0)->nodeValue;

$quote_data[$code] = array(
'code' => 'fedex.' . $code,
'title' => $title,
'cost' => $this->currency->convert($cost, $currency, $this->config->get('config_currency')),
'tax_class_id' => $this->config->get('fedex_tax_class_id'),
'text' => $this->currency->format($this->tax->calculate($this->currency->convert($cost, $currency, $this->currency->getCode()), $this->config->get('fedex_tax_class_id'), $this->config->get('config_tax')), $this->currency->getCode(), 1.0000000)
);
}
}
}
}

$method_data = array();

if ($quote_data || $error) {
$title = $this->language->get('text_title');

if ($this->config->get('fedex_display_weight')) {
$title .= ' (' . $this->language->get('text_weight') . ' ' . $this->weight->format($weight, $this->config->get('fedex_weight_class_id')) . ')';
}

$method_data = array(
'code' => 'fedex',
'title' => $title,
'quote' => $quote_data,
'sort_order' => $this->config->get('fedex_sort_order'),
'error' => $error
);
}

return $method_data;
}
}    
?>
Last edited by Johnathan on Fri Oct 05, 2012 7:50 pm, edited 1 time in total.
Reason: Added [code] tags for readability

User avatar
Newbie

Posts

Joined
Fri Jul 13, 2012 1:45 am

Post by kombi » Sun Oct 07, 2012 1:08 am

Hi... I want to thank everyone for looking into the Fedex issue... I have uploaded the new files and FexEd appears in the Checkout, BUT the weight are wrong so the shipping cost end up being to low from what I pay even with our discount. Any hints in where to look for this in the code? Is anyone else seeing this?

New member

Posts

Joined
Thu Sep 06, 2012 5:03 am

Post by trinkaljuneja » Fri Oct 12, 2012 8:49 pm

i tried all this

replacing new files

tried developer login details and live login detail

setup different packages, currency, weight

but nothing works

can anybody help me

A coder by Hobby and Developer by Profession

Images in Manufacture
http://www.opencart.com/index.php?route ... on_id=6943
Description and images in Manufacture
http://www.opencart.com/index.php?route ... on_id=6978

http://codertj.com


New member

Posts

Joined
Tue Aug 23, 2011 9:08 pm

Post by trinkaljuneja » Fri Oct 12, 2012 11:08 pm

i buy commercial module and problem solved

A coder by Hobby and Developer by Profession

Images in Manufacture
http://www.opencart.com/index.php?route ... on_id=6943
Description and images in Manufacture
http://www.opencart.com/index.php?route ... on_id=6978

http://codertj.com


New member

Posts

Joined
Tue Aug 23, 2011 9:08 pm
Who is online

Users browsing this forum: No registered users and 5 guests