\CountryPrice_Page_Controller_Extension
www.mysite.com/mypage/?ecomlocale=AU if there is a tranlsation page redirects to URL with ?ecomlocale=AU
if you go to a URL with ?ecomlocale=AU and the shop country does not match
the get param then you get redirected to that shop country.
Synopsis
class CountryPrice_Page_Controller_Extension
extends Extension
{
- // members
- private static integer $_redirection_count = 0;
- // methods
- public [type] onAfterInit()
- public void CountryDistributorBestContentValue()
- private string addCountryCodeToUrlIfRequired()
- public ArrayList ChooseNewCountryList()
- public DataList AlternativeHrefLangLinksCachingKey()
- public void UpdateCanonicalLink()
- protected null|SS_HTTPResponse checkForOffsiteRedirects()
Hierarchy
Extends
- Extension
Members
private
- $_redirection_count
—
integer
caching variable
Methods
private
- addCountryCodeToUrlIfRequired() — returns a string for the new url if a locale parameter can be added
protected
- checkForOffsiteRedirects() — redirects visitors to another website if they are listed as such in CountryPrices_ChangeCountryController.off_site_url_redirects
public
- AlternativeHrefLangLinksCachingKey()
- ChooseNewCountryList()
- CountryDistributorBestContentValue() — returns the best fieldname for
- UpdateCanonicalLink()
- onAfterInit() — replaces `Title` and `Content` with translated content where available.