Why is the selected item from my product page drop down list not added to the cart?

I want to add a line item properties, drop down list on one of my product pages. The problem I am having is that the item selected from the list does NOT get submitted to the cart. Any ideas what I’m doing wrong? Here’s the product page: https://www.palmettowoodshop.com/products/tf606ws

Since I am having trouble getting this to work, I don’t have the drop down list on the live page, but here are the relevant code sections:

{%- when 'custom_properties' -%}
        
          
          
          
          

          {% if block.settings.prop_label != blank %}{% endif %}
          {% if block.settings.prop_name != blank %}
          {% if block.settings.multiline %}
             
          {% if block.settings.showcharacters %}
          

           {% endif %}
          {% else %}
              
          	{% if block.settings.showcharacters %}
          

            {% endif %}
          {% endif %}
          {% endif %}
        

{%- form 'product', product, id: product_form_id, class: 'form', data-type: 'add-to-cart-form' -%}
              

              {% assign block_show = false %}
              {% for block in section.blocks %}
              {% if block.type == "custom_properties" %}
              {% assign block_show = true %}
              
              
                {% endif %}
              {% endfor %}

Hi @PWS1 ,

Please follow the steps below:

  • Step 1: Add ‘form=“{{ product_form_id }}”’ to your custom_properties’ properties code in step 1.

Refer code:


  • Step 2: Remove properties in form product, because when you directly add ‘form=“{{ product_form_id }}”’, it will automatically understand the properties.

Hope it helps!

Thanks, that worked!