Skip to content

Instantly share code, notes, and snippets.

@frankmullenger
Created March 6, 2012 04:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankmullenger/1983678 to your computer and use it in GitHub Desktop.
Save frankmullenger/1983678 to your computer and use it in GitHub Desktop.
Example _config.php settings for SwipeStripe
<?php
/**
* SwipeStripe settings
* ====================================================
*/
//License key
ShopSettings::set_license_key('');
//Set currency
Payment::set_site_currency('NZD');
Modification::set_currency('NZD');
Product::set_allowed_currency(array('NZD'=>'New Zealand Dollar'));
//Set locale
Geoip::$default_country_code = "NZ";
i18n::set_locale('en_US');
setlocale(LC_TIME, 'en_NZ@dollar', 'en_NZ.UTF-8', 'en_NZ', 'nz', 'nz');
//Shipping
//FlatFeeShipping::enable();
//Tax
//FlatFeeTax::enable();
//Allow product images to be sorted
//SortableDataObject::add_sortable_classes(array('ProductImage'));
//Enable search for products
//FulltextSearchable::enable();
/*
* Payment
* ====================================================
*/
//Order notifications sent to
Email::setAdminEmail('admin@example.com');
Payment::set_supported_methods(array(
'ChequePayment' => 'Cheque Or Pay On Site'
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment