1
/
of
0
Nouraé Color Changing Foundation Stick
Nouraé Color Changing Foundation Stick
Regular price
Rs.0.00 PKR
Regular price
Sale price
Rs.0.00 PKR
Quantity
Couldn't load pickup availability
{%- comment -%}
Pro Product Page - Shopify section (Online Store 2.0)
Install: Online Store > Themes > ... > Edit code > Sections > Add a new section
Name it "pro-product-page" and paste this whole file. Then in the theme editor,
open a Product template and add the section "Pro product page".
Packs (1 / 2 / 3) = product variants. Cash on delivery = enable it in Settings > Payments.
{%- endcomment -%}
{%- assign cur = product.selected_or_first_available_variant -%}
{%- if section.settings.bar != blank -%}
{%- endif -%}
{%- assign feats = section.blocks | where: 'type', 'feature' -%}
{%- if feats.size > 0 -%}
{%- endif -%}
{%- assign steps = section.blocks | where: 'type', 'step' -%}
{%- if steps.size > 0 -%}
{%- endif -%}
{%- assign faqs = section.blocks | where: 'type', 'faq' -%}
{%- if faqs.size > 0 -%}
{%- endfor -%}
{%- endif -%}
{% schema %}
{
"name": "Pro product page",
"tag": "section",
"settings": [
{ "type": "text", "id": "bar", "label": "Top banner (separate items with |)", "default": "Free delivery all over Pakistan | Cash on delivery | No advance payment | Refuse at the door, pay nothing" },
{ "type": "text", "id": "badge", "label": "Badge above title", "default": "New launch" },
{ "type": "textarea", "id": "points", "label": "Key points (one per line)", "default": "Write your first key benefit here\nWrite your second key benefit here\nWrite your third key benefit here" },
{ "type": "text", "id": "pack_label", "label": "Pack heading", "default": "Choose your pack" },
{ "type": "text", "id": "pack_hint", "label": "Small text under each pack", "default": "Free delivery, pay at your door" },
{ "type": "text", "id": "cta", "label": "Main button text", "default": "Order now - cash on delivery" },
{ "type": "text", "id": "cta_note", "label": "Text under buttons", "default": "No advance payment. Refuse at the door and pay nothing." },
{ "type": "text", "id": "trust_1", "label": "Trust box 1", "default": "Free delivery" },
{ "type": "text", "id": "trust_2", "label": "Trust box 2", "default": "Pay on delivery" },
{ "type": "text", "id": "trust_3", "label": "Trust box 3", "default": "Easy refusal" },
{ "type": "text", "id": "feat_title", "label": "Features heading", "default": "Why customers choose it" },
{ "type": "text", "id": "steps_title", "label": "How-to heading", "default": "How to use it" },
{ "type": "text", "id": "faq_title", "label": "FAQ heading", "default": "Questions before you order" }
],
"blocks": [
{ "type": "feature", "name": "Feature", "settings": [
{ "type": "text", "id": "title", "label": "Title", "default": "Feature title" },
{ "type": "textarea", "id": "text", "label": "Text", "default": "One or two plain sentences about this feature." } ] },
{ "type": "step", "name": "How-to step", "settings": [
{ "type": "text", "id": "title", "label": "Title", "default": "Step title" },
{ "type": "textarea", "id": "text", "label": "Text", "default": "What the customer does in this step." } ] },
{ "type": "faq", "name": "FAQ", "settings": [
{ "type": "text", "id": "q", "label": "Question", "default": "How do I pay?" },
{ "type": "textarea", "id": "a", "label": "Answer", "default": "Cash on delivery. You pay the rider when the parcel arrives." } ] }
],
"presets": [
{ "name": "Pro product page", "blocks": [
{ "type": "feature" }, { "type": "feature" }, { "type": "feature" },
{ "type": "step" }, { "type": "step" }, { "type": "step" },
{ "type": "faq" }, { "type": "faq" } ] }
]
}
{% endschema %}
{%- assign bar_items = section.settings.bar | split: '|' -%}
{%- for i in bar_items -%}{{ i | strip }}{%- endfor -%}
{%- if product.featured_media -%}
{%- if product.media.size > 1 -%}
{%- for m in product.media -%}
{%- endfor -%}
{%- endif -%}
{%- else -%}
{%- endif -%}
{%- if section.settings.badge != blank -%}{{ section.settings.badge }}{%- endif -%}
{{ product.title }}
{{ cur.price | money }}
{%- if cur.compare_at_price > cur.price -%}
{{ cur.compare_at_price | money }}
Save {{ cur.compare_at_price | minus: cur.price | times: 100 | divided_by: cur.compare_at_price }}%
{%- endif -%}
{%- if section.settings.points != blank -%}
-
{%- assign pts = section.settings.points | newline_to_br | split: '
- {{ t }} {%- endif -%}{%- endfor -%}
' -%} {%- for p in pts -%}{%- assign t = p | strip -%}{%- if t != blank -%}
{{ section.settings.cta_note }}
{%- endform -%}{{ section.settings.trust_1 }}
{{ section.settings.trust_2 }}
{{ section.settings.trust_3 }}
{{ section.settings.feat_title }}
{%- for b in feats -%}
{%- endfor -%}
{{ b.settings.title }}
{{ b.settings.text }}
{{ section.settings.steps_title }}
-
{%- for b in steps -%}
-
{{ b.settings.title }}
{{ b.settings.text }}
{%- endfor -%}
{{ section.settings.faq_title }}
{%- for b in faqs -%}{{ b.settings.q }}
{{ b.settings.a }}
{{ cur.price | money }}
{{ section.settings.cta }}