So Im trying to add a drop down list to either a product page buyer can choose one of the predetermined selections and the tutorial says to find type=“submit” to add the code. There is NO type=“submit” in the code? SO If I wanted to collect a required entry from a drop down box on my product page so that it shows up in the backend of my orders - where do I put the code?
I want the information that is selected from the drop down to appear in the backend so that we can see it on eac
- {{ 'products.general.previous_product_html' | t | link_to: prev_url }} {% endif %}
- {{ 'products.general.next_product_html' | t | link_to: next_url }} {% endif %}
{% if collection.previous_product %}
{% capture prev_url %}{{ collection.previous_product}}#content{% endcapture %}
{% if collection.next_product %}
{% capture next_url %}{{ collection.next_product}}#content{% endcapture %}
{%- comment -%}
Create thumbnails if there is more than one product image
{%- endcomment -%}
{%- unless product.images.size == 1 or section.settings.thumbnails_placement == ‘hide’ -%}
{%- if section.settings.thumbnails_placement contains ‘side’ -%}
{% include ‘product-thumbnails’ %}
{%- endif -%}
{% include ‘product-thumbnails-slider’ %}
{%- endunless -%}
{%- if description_parts.size > 1 -%}
{%- comment -%}
Optional place to add product reviews snippets from Shopify Apps
- Shopify Product Reviews
- YOTPO
- Judge.me
{%- endcomment -%}
{% comment %}
Related products
{% endcomment %}
{% for block in section.blocks %}
{% when ‘product_collection’}
{%- assign product_collection_count = ‘4’ -%}
{%- assign collection_count = ‘4’ -%}
{{ block.settings.title | escape }}
{% endif %} {% if block.settings.button_link != blank and block.settings.button_label != blank %} {{ block.settings.button_label | escape }} {% endif %}{%- if section.settings.size_guide_page != blank -%}
{% schema %}
{
“name”: “Product pages”,
“settings”: [
{
“type”: “header”,
“content”: “Product form settings”
},
{
“type”: “checkbox”,
“id”: “show_vendors”,
“label”: “Show vendor”,
“default”: false
},
{
“type”: “select”,
“id”: “variant_style”,
“label”: “Product variant style”,
“options”: [
{
“value”: “dropdowns”,
“label”: “Dropdowns”
},
{
“value”: “buttons”,
“label”: “Buttons”
},
{
“value”: “swatches”,
“label”: “Swatches”
}
],
“default”: “dropdowns”
},
{
“type”: “checkbox”,
“id”: “variant_swatch_images”,
“label”: “Show swatch images”,
“info”: “Upload custom swatch images. Learn more”,
“default”: false
},
{
“type”: “select”,
“id”: “variant_swatch_shape”,
“label”: “Swatch shape”,
“options”: [
{
“value”: “circle”,
“label”: “Circle”
},
{
“value”: “square”,
“label”: “Square”
}
],
“default”: “circle”
},
{
“type”: “page”,
“id”: “size_guide_page”,
“label”: “Size guide content”
},
{
“type”: “checkbox”,
“id”: “product_quantity_enable”,
“label”: “Show quantity selector”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_payment_button”,
“label”: “Show dynamic checkout button”,
“info”: “Lets customers check out directly using a familiar payment method. Learn more”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “product_box_padding”,
“label”: “Show product details background”,
“default”: true
},
{
“type”: “header”,
“content”: “Image settings”
},
{
“type”: “checkbox”,
“id”: “enable_image_slider”,
“label”: “Enable image slider”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “show_dots”,
“label”: “Show slider dots”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “show_arrows”,
“label”: “Show previous and next arrows”,
“default”: false
},
{
“type”: “select”,
“id”: “thumbnails_placement”,
“label”: “Thumbnails placement”,
“options”: [
{
“value”: “side–left”,
“label”: “Left”
},
{
“value”: “side”,
“label”: “Right”
},
{
“value”: “below”,
“label”: “Below”
},
{
“value”: “hide”,
“label”: “Hide”
}
],
“default”: “side”
},
{
“type”: “checkbox”,
“id”: “enable_thumb_slider”,
“label”: “Group thumbnails”,
“default”: true
},
{
“type”: “checkbox”,
“id”: “product_featured_zoom_enable”,
“label”: “Enable zoom”,
“default”: false
},
{
“type”: “checkbox”,
“id”: “product_featured_lightbox_enable”,
“label”: “Enable lightbox”,
“default”: true
},
{
“type”: “header”,
“content”: “Additional options”
},
{
“type”: “checkbox”,
“id”: “show_product_jump”,
“label”: “Show previous and next links”,
“default”: false
},
{
“type”: “image_picker”,
“id”: “trust_badge”,
“label”: “Checkout badge image”
},
{
“type”: “checkbox”,
“id”: “show_share_buttons”,
“label”: “Show social sharing buttons”,
“default”: true
}
],
“blocks”: [
{
“type”: “related_products”,
“name”: “Related products”,
“limit”: 1,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Related Products”
},
{
“type”: “text”,
“id”: “button_label”,
“label”: “Button label”,
“default”: “View more”
}
]
},
{
“type”: “product_collection”,
“name”: “Product Collection”,
“limit”: 1,
“settings”: [
{
“type”: “text”,
“id”: “title”,
“label”: “Heading”,
“default”: “Simple collection”
},
{
“type”: “text”,
“id”: “button_label”,
“label”: “Button label”,
“default”: “View more”
},
{
“type”: “url”,
“id”: “button_link”,
“label”: “Button link”
},
{
“id”: “collection”,
“type”: “collection”,
“label”: “Collection”
}
]
}
]
}
{% endschema %}