Skip to content

Instantly share code, notes, and snippets.

@bougsid
Created March 2, 2024 13:04
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 bougsid/1e2778d9757aaf01fb1dd1fcce7fa602 to your computer and use it in GitHub Desktop.
Save bougsid/1e2778d9757aaf01fb1dd1fcce7fa602 to your computer and use it in GitHub Desktop.
Add address to some products
<script>
window.ES_CONFIG_PARTIAL_OVERWRITE = {
"fields": [
{
"size": "18",
"type": "title",
"style": {
"color": "#000000",
"fontSize": "18",
"textAlign": "center",
"fontWeight": "600"
},
"title": "სწრაფი შეკვეთა",
"value": "header",
"weight": "600",
"alignment": "center",
"hideLabel": false,
"enableIcon": true
},
{
"type": "cart_content",
"label": "Cart content",
"title": "Cart content",
"value": "cart_content",
"hideLabel": false,
"enableIcon": true,
"placeholder": "Cart content"
},
{
"type": "title",
"image": "title",
"label": "Text / HTML",
"style": {
"color": "#dc4040",
"fontSize": 21,
"textAlign": "center",
"fontWeight": 500
},
"title": "<div class=\"ultimate-countdown\"></div>",
"value": "title45",
"hideLabel": false,
"enableIcon": true
},
{
"type": "checkbox",
"error": null,
"image": "checkbox",
"label": "Multiple Choices",
"title": null,
"value": "checkbox23",
"options": [
"გადახდა კურიერთან",
"მომენტალური განვადება"
],
"required": false,
"hideLabel": false,
"enableIcon": true,
"placeholder": "Multiple Choices",
"model": []
},
{
"icon": "bi-person-circle",
"type": "text",
"error": null,
"label": "First Name",
"title": null,
"value": "first_name",
"prefix": null,
"required": true,
"hideLabel": false,
"enableIcon": true,
"placeholder": "სახელი, გვარი"
},
{
"icon": "bi-telephone-fill",
"type": "text",
"error": "გთხოვთ, სწორად შეიყვანოთ ტელეფონის ნომერი",
"label": "Phone",
"title": null,
"value": "phone",
"required": true,
"hideLabel": false,
"maxLength": "9",
"minLength": "9",
"enableIcon": true,
"onlyDigits": true,
"placeholder": "5** *** ***"
},
{
"icon": "bi-geo-alt-fill",
"type": "text",
"error": "გთხოვთ შეიყვანოთ სწორი მისამართი",
"label": "Address",
"title": null,
"value": "address",
"prefix": null,
"required": true,
"hideLabel": false,
"enableIcon": true,
"placeholder": "მისამართი"
},
{
"type": "button",
"color": "#ffffff",
"style": {
"color": "#ffffff",
"fontSize": 16,
"background": "#00d084",
"fontWeight": "700",
"borderColor": "#ffffff",
"borderStyle": "solid",
"borderWidth": 0,
"borderRadius": 9,
"boxShadowOpacity": 0,
"display": "flex"
},
"title": "შეკვეთა",
"value": "cta",
"radius": 3,
"subtitle": null,
"animation": "shakeUpDown",
"hideLabel": false,
"enableIcon": true,
"backgroundColor": "#008014",
"loading": false
},
{
"type": "title",
"image": "title",
"label": "Text / HTML",
"style": {
"color": "#000000",
"fontSize": 16,
"textAlign": "center",
"fontWeight": 500
},
"title": "- ან -",
"value": "title6",
"hideLabel": false,
"enableIcon": true
},
{
"type": "title",
"image": "title",
"label": "Text / HTML",
"style": {
"color": "#000000",
"fontSize": 17,
"textAlign": "center",
"fontWeight": 500
},
"title": "📞 დაგვირეკეთ <a href=\"tel:577263224\">577 263 224</a>",
"value": "title20",
"hideLabel": false,
"enableIcon": true
},
{
"type": "title",
"image": "title",
"label": "Text / HTML",
"style": {
"color": "#000000",
"fontSize": 16,
"textAlign": "center",
"fontWeight": 500
},
"title": "🚚 სწრაფი მიწოდება ყველა სოფელში და ქალაქში",
"value": "title36",
"hideLabel": false,
"enableIcon": true
}
]
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment