Hi there, my store is https://sophiaandpilar.com and I am wondering if anyone has a piece of code that I can input that would enable me to request first name and last name here?
Thanks!
Appreciate the help.
Hi there, my store is https://sophiaandpilar.com and I am wondering if anyone has a piece of code that I can input that would enable me to request first name and last name here?
Thanks!
Appreciate the help.
yes please share your footer code so i will check and let you know
Hi there @KetanKumar ! See below:
{%- liquid
assign show_selectors = false
assign currency_selector = false
assign locale_selector = false
if section.settings.show_currency_selector and shop.enabled_currencies.size > 1
assign currency_selector = true
endif
if section.settings.show_locale_selector and shop.enabled_locales.size > 1
assign locale_selector = true
endif
if currency_selector or locale_selector
assign show_selectors = true
endif
-%}
{%- if settings.color_footer == settings.color_body_bg -%}
{%- style -%}
.site-footer {
border-top: 1px solid {{ settings.color_borders }};
}
{%- endstyle -%}
{%- endif -%}
{% schema %}
{
"name": "Footer",
"max_blocks": 12,
"settings": [
{
"type": "header",
"content": "Language selector",
"info": "To add a language, go to your [language settings.](/admin/settings/languages)"
},
{
"type": "checkbox",
"id": "show_locale_selector",
"label": "Show language selector",
"default": true
},
{
"type": "header",
"content": "Currency selector",
"info": "To add a currency, go to your [currency settings.](/admin/settings/payments)"
},
{
"type": "checkbox",
"id": "show_currency_selector",
"label": "Show currency selector",
"default": true
},
{
"type": "checkbox",
"id": "show_currency_flags",
"label": "Show currency flags",
"default": true
},
{
"type": "header",
"content": "Additional footer content"
},
{
"type": "checkbox",
"id": "show_payment_icons",
"label": "Show payment icons",
"default": false
},
{
"type": "checkbox",
"id": "show_copyright",
"label": "Show copyright"
},
{
"type": "text",
"id": "copyright_text",
"label": "Additional copyright text"
}
],
"blocks": [
{
"type": "logo_social",
"name": "Logo",
"limit": 1,
"settings": [
{
"type": "image_picker",
"id": "logo",
"label": "Logo image"
},
{
"type": "range",
"id": "desktop_logo_height",
"label": "Logo height",
"default": 50,
"min": 20,
"max": 120,
"unit": "px"
},
{
"type": "range",
"id": "container_width",
"label": "Column width",
"default": 25,
"min": 15,
"max": 95,
"unit": "%"
}
]
},
{
"type": "menu",
"name": "Navigation",
"settings": [
{
"type": "checkbox",
"id": "show_footer_title",
"label": "Show heading"
},
{
"type": "link_list",
"id": "menu",
"label": "Choose a menu",
"default": "footer",
"info": "This menu won't show dropdown items"
},
{
"type": "range",
"id": "container_width",
"label": "Column width",
"default": 25,
"min": 15,
"max": 95,
"unit": "%"
}
]
},
{
"type": "newsletter",
"name": "Newsletter and social",
"limit": 1,
"settings": [
{
"type": "checkbox",
"id": "show_footer_title",
"label": "Show heading",
"default": true
},
{
"type": "paragraph",
"content": "Any customers who sign up will have an account created for them in Shopify. [View customers](/admin/customers)."
},
{
"type": "text",
"id": "title",
"label": "Heading",
"default": "Sign up and save"
},
{
"type": "richtext",
"id": "text",
"label": "Text",
"info": "Optional",
"default": "
Subscribe to get special offers, free giveaways, and once-in-a-lifetime deals.
"
},
{
"type": "range",
"id": "container_width",
"label": "Column width",
"default": 25,
"min": 15,
"max": 95,
"unit": "%"
}
]
},
{
"type": "custom",
"name": "Custom text",
"settings": [
{
"type": "checkbox",
"id": "show_footer_title",
"label": "Show heading",
"default": true
},
{
"type": "text",
"id": "title",
"label": "Heading",
"default": "Custom text"
},
{
"type": "image_picker",
"id": "image",
"label": "Image"
},
{
"type": "richtext",
"id": "text",
"label": "Text",
"default": "
Add your own custom text here.
"
},
{
"type": "range",
"id": "container_width",
"label": "Column width",
"default": 25,
"min": 15,
"max": 95,
"unit": "%"
}
]
}
],
"default": {
"settings": {},
"blocks": [
{
"type": "menu",
"settings": {}
},
{
"type": "logo_social",
"settings": {}
}
]
}
}
{% endschema %}
Hi @KetanKumar I hope this is what you are after:
{%- style -%}
.newsletter-{{ section.id }} {
background-color: {{ section.settings.color_background }};
color: {{ section.settings.color_text }};
}
.newsletter-{{ section.id }} .newsletter__input::-webkit-input-placeholder { color: {{ section.settings.color_text }}; }
.newsletter-{{ section.id }} .newsletter__input::-moz-placeholder { color: {{ section.settings.color_text }}; }
.newsletter-{{ section.id }} .newsletter__input::-ms-input-placeholder { color: {{ section.settings.color_text }}; }
{%- endstyle -%}
{%- if section.settings.title != blank -%}
{{ section.settings.title | escape }}
{%- endif -%}
{%- if section.settings.text != blank -%}
{{ section.settings.text }}
{%- endif -%}
{%- render 'newsletter-form', section_id: section.id, snippet_context: 'section' -%}
{% schema %}
{
"name": "Newsletter",
"settings": [
{
"type": "paragraph",
"content": "Customers who subscribe will have their email address added to the 'accepts marketing' [customer list](/admin/customers?query=&accepts_marketing=1)."
},
{
"type": "text",
"id": "title",
"label": "Heading",
"default": "Sign up and save"
},
{
"type": "richtext",
"id": "text",
"label": "Subheading",
"default": "
Subscribe to get special offers, free giveaways, and once-in-a-lifetime deals.
"
},
{
"type": "color",
"id": "color_background",
"label": "Background",
"default": "#f9f9f9"
},
{
"type": "color",
"id": "color_text",
"label": "Text",
"default": "#1c1d1d"
}
],
"presets": [
{
"name": "Newsletter",
"category": "Promotional"
}
]
}
{% endschema %}
Hi @KetanKumar , I have gone through all my files, and that one is non-existent? Let me know if you think I missed something here?
Appreciate your help!
Hi @KetanKumar , I have this one. Can you let me know if this is what you are looking for?
{%- if section.settings.mode != 'disabled' -%}
{%- if section.settings.popup_title != blank -%}
### {{ section.settings.popup_title }}
{%- endif -%}
{%- if section.settings.popup_image -%}
{%- assign img_url = section.settings.popup_image | img_url: '1x1' | replace: '_1x1.', '_{width}x.' -%}
{%- endif -%}
{%- if section.settings.popup_text != blank -%}
{{ section.settings.popup_text }}
{%- endif -%}
{%- if section.settings.enable_newsletter -%}
{%- render 'newsletter-form', section_id: section.id, snippet_context: 'popup' -%}
{%- endif -%}
{%- if section.settings.enable_button -%}
{{ section.settings.button_label }}
{%- endif -%}
{%- endif -%}
{% schema %}
{
"name": "Popup",
"class": "index-section--hidden",
"settings": [
{
"type": "select",
"id": "mode",
"label": "Display mode",
"default": "disabled",
"options": [
{
"value": "enabled",
"label": "Enabled"
},
{
"value": "testing",
"label": "Test mode"
},
{
"value": "disabled",
"label": "Disabled"
}
],
"info": "Test mode displays your popup each time even after dismissing it. Switch to Enabled once you are happy with how your popup looks."
},
{
"type": "range",
"id": "popup_seconds",
"label": "Delay",
"info": "Delay is disabled in theme editor for visibility",
"default": 5,
"min": 2,
"max": 60,
"step": 1,
"unit": "sec"
},
{
"type": "range",
"id": "popup_days",
"label": "Frequency",
"default": 30,
"info": "Number of days before a dismissed popup reappears",
"min": 2,
"max": 30,
"step": 1,
"unit": "day"
},
{
"type": "header",
"content": "Content"
},
{
"type": "text",
"id": "popup_title",
"label": "Heading",
"default": "Sign up and save"
},
{
"type": "image_picker",
"id": "popup_image",
"label": "Image",
"info": "Does not appear on mobile in order to meet Google's [interstitial guidelines](https://webmasters.googleblog.com/2016/08/helping-users-easily-access-content-on.html) for improved SEO"
},
{
"type": "richtext",
"id": "popup_text",
"label": "Text",
"default": "
Entice customers to sign up for your mailing list with discounts or exclusive offers. Include an image for extra impact.
"
},
{
"type": "text",
"id": "close_text",
"label": "Close button text",
"default": "No thanks"
},
{
"type": "header",
"content": "Newsletter"
},
{
"type": "paragraph",
"content": "Every sign up will create a Customer on your store. [View customers](/admin/customers?query=&accepts_marketing=1)."
},
{
"type": "checkbox",
"id": "enable_newsletter",
"label": "Enable newsletter",
"default": true
},
{
"type": "header",
"content": "Button"
},
{
"type": "text",
"id": "button_label",
"label": "Button label",
"default": "Optional button"
},
{
"type": "url",
"id": "button_link",
"label": "Button link"
},
{
"type": "checkbox",
"id": "enable_button",
"label": "Enable button",
"default": false
}
],
"blocks" : []
}
{% endschema %}
I’ve added the first name field to the newsletter footer (thanks for the code) and now I’m wondering how to get the “first name” field to show up in the new customer’s profile? I’m still only seeing the email for new subscribers.