-
-
Notifications
You must be signed in to change notification settings - Fork 124
/
magento.js
44 lines (43 loc) · 1.4 KB
/
magento.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* Magento Settings for the app,
* Follow instructions: https://github.com/alexakasanjeev/magento_react_native/wiki/Setup
*
* url : Base url of the magento website
* home_cms_block_id : Block id which conatin json data,
* which will be shown in Home screen
* store : store code // Stores > All Stores > Store View > Code
* password_reset_template : Email template name in magento backend,
* use for sending password reset e-mail
* access_token : Token to access magento API, without it
* app won't work
*/
export const magentoOptions = {
url: 'http://10.0.2.2/magento2/index.php/', // make sure you have trail slash in the end
home_cms_block_id: 19, // required int
store: 'default',
password_reset_template: 'email_reset', // This is required in order to reset password link to work
authentication: {
integration: {
access_token: 'j9gyfvge3b9cam4w8ckri2jlm8f1a8j5',
}
}
};
/**
* Magento 2 REST API doesn't return currency symbol,
* so manually specify all currency symbol(that your store support)
* along side their currency code.
*/
export const currencySymbols = Object.freeze({
USD: '$',
EUR: '€',
AUD: 'A$',
GBP: '£',
CAD: 'CA$',
CNY: 'CN¥',
JPY: '¥',
SEK: 'SEK',
CHF: 'CHF',
INR: '₹',
KWD: 'د.ك',
RON: 'RON',
});