\CountryPrices_ChangeCountryController
Common use: ```php CountryPrices_ChangeCountryController::changeto('XX'); CountryPrices_ChangeCountryController::new_country_link('XX'); ```
Synopsis
class CountryPrices_ChangeCountryController
extends ContentController
{
- // members
- private static string $url_segment = 'shoppingcart-countries';
- private static array $off_site_url_redirects = ;
- private static array $allowed_actions = ;
- // methods
- public static void set_new_country()
- public static void new_country_link()
- public SS_HTTPResponse changeto()
- public void Link()
- public string findNewURL()
- public void confirmredirection()
Hierarchy
Extends
- ContentController
Members
private
- $allowed_actions
- $off_site_url_redirects
—
array
needs to be saved like this: ZA => 'myshop.co.za' - $url_segment
—
string
make sure to match route...
Methods
public
- Link()
- changeto()
- confirmredirection()
- findNewURL() — Remove a query string parameter from an URL.
- new_country_link() — link to change to a new country.
- set_new_country() — only call this function if it is a NEW country we are dealing with!