Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneClick TNT module integration (#191) #266

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

rus-daniel
Copy link
Contributor

No description provided.

$formattedAddress = array(
'email' => $this->apiData['user']['email'],
'firstname' => isset($customerAddress['first_name']) ? $customerAddress['first_name'] : '',
'lastname' => isset($customerAddress['last_name']) ? $customerAddress['last_name'] : '',
'telephone' => $this->apiData['user']['phone'],
'street' => $street,
'postcode' => isset($customerAddress['postcode']) ? $customerAddress['postcode'] : '',
'city' => isset($customerAddress['city']) ? $customerAddress['city'] : '',
'city' => $city ? $city : isset($customerAddress['city']) ? $customerAddress['city'] : '',
//'city' => isset($customerAddress['city']) ? $customerAddress['city'] : '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete the comment

@@ -534,4 +540,23 @@ private function clearQuoteItemsCache()
$address->unsetData('cached_items_nonominal');
}
}


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this empty line

$formattedAddress = array(
'email' => $this->apiData['user']['email'],
'firstname' => isset($customerAddress['first_name']) ? $customerAddress['first_name'] : '',
'lastname' => isset($customerAddress['last_name']) ? $customerAddress['last_name'] : '',
'telephone' => $this->apiData['user']['phone'],
'street' => $street,
'postcode' => isset($customerAddress['postcode']) ? $customerAddress['postcode'] : '',
'city' => isset($customerAddress['city']) ? $customerAddress['city'] : '',
'city' => $city ? $city : isset($customerAddress['city']) ? $customerAddress['city'] : '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'city' => $city,



/**
* Get city name from the zipCode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Get city name from the zipCode ; Specific for TNT module

*/
class Oyst_OneClick_Helper_ZipMap
{
const ZIP_MAP = array(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (isset($customerAddress['postcode'])) {
$city = $this->mapCityZipCode($customerAddress['postcode']);

if (is_null($city)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this if block have to be outside of if (isset($customerAddress['postcode'])) {

Copy link

@StefBrito StefBrito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intégration pour le module TNT de GFI

@mehdichaouch mehdichaouch modified the milestones: 1.7.1, 1.8.0 Mar 28, 2018
@mehdichaouch mehdichaouch removed this from the 1.8.0 milestone Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants