Settings
Retrieve preferences set in the store admin
Account
Method
ZapietEats.getSettings()
Example response
{
"pickup_enabled": true,
"delivery_enabled": true,
"logo": {
"src": "",
"width": 180,
"position": "center"
},
"animation": {
"enabled": true
},
"advanced": {
"show_closed_restaurants": true,
"show_restaurant_address": false,
"address_format": ""
},
"google": {
"enable_suggestion": false,
"enable_status_map": false
},
"company_name": "Company",
"language": "en",
"currency_code": "EUR",
"translations": {
"en": {...},
"config": []
}
}
Widget
Method
ZapietEats.getConfig()
Example Response
{
"products": {
"enable_tag_section_name": false
},
"custom_styles": {
"enabled": false,
"value": ""
},
"selectors": {
"product_quantity": "[name=\"quantity\"]",
"product_add_to_cart": "[name=\"add\"]",
"product_add_to_cart_text": "[data-add-to-cart-text]",
"product_buy_now_button": "[class*=\"payment-button\"]",
"cart_checkout_button": "[name*=\"checkout\"]",
"cart_form": "form[action*=\"/cart\"]",
"cart_update_button": "[name=\"update\"]",
"cart_express_checkout": "[class*=\"payment-button\"]",
"product_plus_button": "[class*=\"js-qty__adjust--plus\"]",
"product_variant_select": "[name=id]",
"cart_quantity_select": "input[name*=\"updates\"]"
},
"google": {
"api_key": "",
"enable_suggestion": false,
"enable_status_map": false
}
}
Last updated