Hello, experts.
I assigned global variables on settings_schema.json like it.
{
“name”: “Shipping Cost Global Variables”,
“settings”: [
{
“type”: “header”,
“content”: “shipping cost starting price value and interval value.”
},
{
“type”: “text”,
“id”: “global_shipping_start_cost”,
“label”: “Global variable - Shipping Start Cost based on weight”,
“default”: “20”
},
{
“type”: “text”,
“id”: “global_shipping_interval_cost”,
“label”: “Global variable - Shipping Start Cost based on weight”,
“default”: “10”
},
{
“type”: “text”,
“id”: “global_turkey_currency_rate”,
“label”: “Global variable - Turkey currency conversion rate”,
“default”: “7.31”
}
]
}
I would like to use those static variables on js file.
Such as in theme.js
How can I call those variables in theme.js file?
Looking forward to getting solution.
Many thanks.