@@ -225,8 +225,7 @@ |
||
| 225 | 225 | $hasCountrySegment = CountryPrice_Translation::get_country_url_provider()->hasCountrySegment($link); |
| 226 | 226 | if($hasCountrySegment){ |
| 227 | 227 | $link = CountryPrice_Translation::get_country_url_provider()->replaceCountryCodeInUrl($this->EcommerceCountry()->Code, $link); |
| 228 | - } |
|
| 229 | - else { |
|
| 228 | + } else { |
|
| 230 | 229 | $link = CountryPrice_Translation::get_country_url_provider()->addCountryCodeToUrl($this->EcommerceCountry()->Code, $link); |
| 231 | 230 | } |
| 232 | 231 | } |
@@ -99,8 +99,7 @@ |
||
| 99 | 99 | $hasCountrySegment = CountryPrice_Translation::get_country_url_provider()->hasCountrySegment($oldURL); |
| 100 | 100 | if($hasCountrySegment){ |
| 101 | 101 | $newURL = CountryPrice_Translation::get_country_url_provider()->replaceCountryCodeInUrl($countryCode, $oldURL); |
| 102 | - } |
|
| 103 | - else { |
|
| 102 | + } else { |
|
| 104 | 103 | $newURL = CountryPrice_Translation::get_country_url_provider()->addCountryCodeToUrl($countryCode, $oldURL); |
| 105 | 104 | } |
| 106 | 105 | |
@@ -119,8 +119,7 @@ |
||
| 119 | 119 | $hasCountrySegment = CountryPrice_Translation::get_country_url_provider()->hasCountrySegment($url); |
| 120 | 120 | if($hasCountrySegment){ |
| 121 | 121 | $url = CountryPrice_Translation::get_country_url_provider()->replaceCountryCodeInUrl($newCountryCode, $url); |
| 122 | - } |
|
| 123 | - else { |
|
| 122 | + } else { |
|
| 124 | 123 | $url = CountryPrice_Translation::get_country_url_provider()->addCountryCodeToUrl($newCountryCode, $url); |
| 125 | 124 | } |
| 126 | 125 | return $url; |
@@ -123,8 +123,7 @@ |
||
| 123 | 123 | |
| 124 | 124 | //no! |
| 125 | 125 | return false; |
| 126 | - } |
|
| 127 | - elseif ($this->owner->AllCountries) { |
|
| 126 | + } elseif ($this->owner->AllCountries) { |
|
| 128 | 127 | //is there a valid price ??? |
| 129 | 128 | if ($this->debug) {debug::log('All countries applies - updated ... new price = '.floatval($this->owner->updateCalculatedPrice()));} |
| 130 | 129 | $canSell = true; |