Skip to content

Commit

Permalink
Removed redundant images and functions in Data.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TimD90 committed Jan 7, 2019
1 parent a52f314 commit 47af74b
Show file tree
Hide file tree
Showing 86 changed files with 0 additions and 292 deletions.
70 changes: 0 additions & 70 deletions app/code/community/Wuunder/WuunderConnector/Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,36 +542,6 @@ public function addressSplitter($address, $address2 = null, $address3 = null)
return $result;
}

public function getLatitudeAndLongitude($address)
{
Mage::getSingleton('core/session', array('name' => 'frontend'));
if (!is_null($address)) {
$addressToInsert = $address;
} else {
$addressToInsert = $this->getAddressFromQuote();
}

$url = 'http://maps.googleapis.com/maps/api/geocode/json?address=' . urlencode($addressToInsert) . '&sensor=false&language=nl';
$data = json_decode(file_get_contents($url));

if (count($data->results) < 1) {
$source = file_get_contents($url);
$data = json_decode($source);
}
if (count($data->results) > 0) {
return array(
"lat" => $data->results[0]->geometry->location->lat,
"long" => $data->results[0]->geometry->location->lng,
"formatted_address" => $data->results[0]->formatted_address,
"error" => $url
);
}
return array(
"error" => $url
);

}

public function getAddressFromQuote()
{
$address = Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress();
Expand All @@ -586,29 +556,6 @@ public function getAddressFromQuote()
return $addressToInsert;
}

public function getParcelshops($address)
{
$carrierData = Mage::getStoreConfig('carriers/wuunderparcelshop/parcelshop_carriers');
if (empty($carrierData)) {
return false;
}
$carrierData = unserialize($carrierData);
$carriers = array();

foreach ($carrierData as $carrier) {
array_push($carriers, $carrier['carrier']);
}
$addCarriers = "providers[]=" . implode('&providers[]=', $carriers);

$countryString = "&search_countries[]=" . Mage::getSingleton('checkout/session')->getQuote()->getShippingAddress()->getCountry();

if (!empty($address)) {
return json_decode($this->doParcelshopRequest("parcelshops_by_address?" . $addCarriers . "&address=" . urlencode($address) . "&radius=&hide_closed=true" . $countryString));
}

return false;
}

public function getParcelshopById($id)
{
if (!empty($id)) {
Expand Down Expand Up @@ -790,23 +737,6 @@ public function getParcelshopCarriers()
);
}

/**
* Selects the radiobutton for default selected shipping method.
*
* @param $html
* @param $node
* @return mixed
*/
protected function _selectNode($html, $node)
{
preg_match('(<input[^>]+id="' . $node . '"[^>]+>)s', $html, $matches);
if (isset($matches[0])) {
$checked = str_replace('/>', ' checked="checked" />', $matches[0]);
$html = str_replace($matches[0],
$checked, $html);
}
return $html;
}

/**
* Calculates total weight of a shipment.
Expand Down
126 changes: 0 additions & 126 deletions modman

This file was deleted.

96 changes: 0 additions & 96 deletions skin/frontend/base/default/css/widgets.css

This file was deleted.

Binary file removed skin/frontend/base/default/images/calendar.gif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed skin/frontend/base/default/images/cookies/ie6-1.gif
Binary file not shown.
Binary file not shown.
Binary file removed skin/frontend/base/default/images/cookies/ie7-1.gif
Binary file not shown.
Binary file removed skin/frontend/base/default/images/cookies/ie7-2.gif
Binary file not shown.
Binary file removed skin/frontend/base/default/images/cookies/ie7-3.gif
Binary file not shown.
Binary file removed skin/frontend/base/default/images/cookies/ie7-4.gif
Binary file not shown.
Binary file removed skin/frontend/base/default/images/cookies/ie7-5.gif
Binary file not shown.
Binary file removed skin/frontend/base/default/images/cookies/ie7-6.gif
Binary file not shown.
Binary file removed skin/frontend/base/default/images/cookies/opera.png
Binary file not shown.
Binary file removed skin/frontend/base/default/images/cvv.gif
Binary file not shown.
Binary file removed skin/frontend/base/default/images/fam_book_open.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed skin/frontend/base/default/images/reload.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.

0 comments on commit 47af74b

Please sign in to comment.