2016-01-07 09:05:18 +01:00
|
|
|
var conversionRate = 0.51;
|
|
|
|
|
|
2015-01-22 06:38:48 +01:00
|
|
|
module.exports = {
|
2015-02-16 21:36:14 +01:00
|
|
|
ApiUrl: '@@apiEndpoint',
|
2015-05-26 15:04:58 +02:00
|
|
|
DefaultPageSize: 24,
|
2015-04-21 06:39:30 +02:00
|
|
|
ItemGroupIdOfStartPage: "1",
|
2015-06-13 06:21:04 +02:00
|
|
|
ItemGroupIdOfEmptyCartPage: "1",
|
2016-01-07 09:05:18 +01:00
|
|
|
BamToEuroConversionRate: conversionRate,
|
2015-02-14 07:53:57 +01:00
|
|
|
FormatCurrency: function(amount_s) {
|
2015-11-28 08:35:42 +01:00
|
|
|
var amount = parseFloat(amount_s);
|
|
|
|
|
return (amount.toFixed(2) + " KM")
|
2015-05-13 16:32:53 +02:00
|
|
|
},
|
2015-06-14 07:11:46 +02:00
|
|
|
FormatPercentage: function(amount_s) {
|
2015-11-28 08:35:42 +01:00
|
|
|
var amount = parseFloat(amount_s);
|
|
|
|
|
return (amount.toFixed(2) + "%")
|
2015-06-14 07:11:46 +02:00
|
|
|
},
|
2016-01-07 09:05:18 +01:00
|
|
|
ConvertToEuro: function(amount_s) {
|
|
|
|
|
amount = amount_s * conversionRate;
|
|
|
|
|
return amount.toFixed(2);
|
|
|
|
|
},
|
2015-11-28 08:35:42 +01:00
|
|
|
MaxNumberOfItemsToBeAdded: 1000,
|
2016-01-07 09:19:25 +01:00
|
|
|
PaypalId: "W7GKS2Q9ZGLGY",
|
2016-01-11 08:53:03 +01:00
|
|
|
PikpayFormUrl: "https://ipgtest.pikpay.ba/form",
|
|
|
|
|
PikpayAuthenticityToken: "1bb1eea16bd6492c01262636897c0c2e3291a1ab",
|
2016-01-13 09:26:28 +01:00
|
|
|
PikpayKey: "Ribica",
|
2015-11-28 08:35:42 +01:00
|
|
|
|
|
|
|
|
Slugify: function(text) {
|
|
|
|
|
return text.toString().toLowerCase()
|
|
|
|
|
.replace(/š/g,'s')
|
|
|
|
|
.replace(/[čć]/g,'c')
|
|
|
|
|
.replace(/[ž]/g,'z')
|
|
|
|
|
.replace(/\s+/g, '-') // Replace spaces with -
|
|
|
|
|
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
|
|
|
|
|
.replace(/\-\-+/g, '-') // Replace multiple - with single -
|
|
|
|
|
.replace(/^-+/, '') // Trim - from start of text
|
|
|
|
|
.replace(/-+$/, ''); // Trim - from end of text
|
|
|
|
|
}
|
2015-01-22 06:38:48 +01:00
|
|
|
};
|