Customer can't add address to account

Solved
Highlighted
Pathfinder
85 3 11

Hi everyone, I really need help. Here is my Shopify website.

I created a customer account so I can test everything and here's the problem: I get logged out every few seconds when I click something. When I try to add an address to the account, after I click Submit, it just redirects me to the login page every single time.

Here is the code for customers/account.liquid:

<div class="module-wrapper">
  <div class="module module-account">
    <div class="module-header">
      <h1 class="module-title">{{ 'general.general.account' | t }}</h1>
      <div class="module-subtitle">
        <div class="logged-in-as">
          {% capture user_email %}
            <a href="/account">{{ customer.email }}</a>
          {% endcapture %}
          {{ 'customer.account.logged_in_as_html' | t: user_email: user_email }} (<a href="/account/logout">{{ 'general.general.logout' | t }}</a>)
        </div>
      </div>
    </div>
    <div class="module-body">
      <div class="module-content">
        <div class="account-info">
          {% if customer.default_address != nil %}
            <p class="customer-address">
              {% assign address = customer.default_address %}
              <span class="customer-address-name">{{ address.first_name }} {{ address.last_name }}</span><br>
              {% if address.company.size > 0 %}
                <span>{{ address.company }}</span><br>
              {% endif %}
              {% if address.street.size > 0 %}
                <span>{{ address.street }}</span><br>
              {% endif %}
              {% if address.city.size > 0 or address.province_code.size > 0 %}
                <span>{{ address.city }}{% if address.province_code %}, {{ address.province_code }}{% endif %}</span><br>
              {% endif %}
              {% if address.country.size > 0 or address.zip.size > 0 %}
                <span>{{ address.country }} {{ address.zip }}</span><br>
              {% endif %}
              {% if address.phone.size > 0 %}
                <span>{{ address.phone }}</span><br>
              {% endif %}
            </p>
          {% endif %}
          {% if customer.addresses_count == 0 %}
            {% capture new_address %}
              <a href="/account/addresses">{{ 'customer.addresses.new_address_link' | t }}</a>
            {% endcapture %}
            <p>{{ 'customer.addresses.no_address_html' | t: new_address: new_address }}</p>
          {% else %}
            <p class="view-addresses-link"><a href="/account/addresses">{{ 'customer.account.view_addresses' | t }} ({{ customer.addresses_count }})</a></p>
          {% endif %}
        </div>
        <div class="order-history">
          {% paginate customer.orders by 6 %}
            <table class="orders">
              <thead>
                <tr>
                  <th class="first">{{ 'customer.orders.order' | t }}</th>
                  <th>{{ 'customer.orders.payment_status' | t }}</th>
                  <th>{{ 'customer.orders.fulfillment_status' | t }}</th>
                  <th class="last">{{ 'general.general.total' | t }}</th>
                </tr>
              </thead>
              <tbody>
                {% if customer.orders.size == 0 %}
                  <tr class="first last">
                    <td colspan="4">{{ 'customer.orders.no_orders' | t }}</td>
                  </tr>
                {% endif %}
                {% for order in customer.orders %}
                  <tr class="{% include 'for-looper' %} {% if order.cancelled %}cancelled_order{% endif %}">
                    <td class="order-number first">{{ order.name | link_to: order.customer_url }} <span class="date">- {{ order.created_at | date: format: 'short_month' }}</span></td>
                    <td class="payment-status {{ order.financial_status }}">{{ order.financial_status_label | capitalize }}</td>
                    <td class="fulfillment-status {{ order.fulfillment_status }}">{{ order.fulfillment_status_label | capitalize }}</td>
                    <td class="total last"><span class="money">{{ order.total_price | money }}</span></td>
                  </tr>
                {% endfor %}
              </tbody>
            </table>
            {% if paginate.previous or paginate.next %}
              {% include 'pagination' %}
            {% endif %}
          {% endpaginate %}
          
          
          
          
          <div id='kca-embed'></div>


        </div>
      </div>
    </div>
  </div>
</div>

 

Here is the code for customers/activate_account.liquid:

<div class="module-wrapper">
  <div class="module module-activate-account">
    <div class="module-header">
      <h1 class="module-title page-title">{{ 'customer.activate_account.header' | t }}</h1>
      <div class="module-subtitle">
        {{ 'customer.activate_account.subtext' | t }}
      </div>
    </div>
    <div class="module-body">
      <div class="module-content">
        {% form 'activate_customer_password' %}
          {% if form.errors %}
            <div class="error-message">{{ form.errors | default_errors }}</div>
          {% endif %}
          <div class="input-wrapper">
            <label for="customer_password">{{ 'general.general.password' | t }}</label>
            <input type="password" name="customer[password]" id="customer_password" />
          </div>
          <div class="input-wrapper">
            <label for="customer_password_confirmation">{{ 'customer.general.password_confirmation' | t }}</label>
            <input type="password" name="customer[password_confirmation]" id="customer_password_confirmation" />
          </div>
          <div class="input-wrapper cta-container">
            <input class="button" type="submit" value="{{ 'general.general.submit' | t }}">
            <a class="decline-activation" href="/">{{ 'customer.activate_account.decline_html' | t }}</a>
          </div>
        {% endform %}
      </div>
    </div>
  </div>
</div>

 

And lastly, here is the code for account-address-form.liquid:

{% assign formID = "" %}
{% if formInfo.id %}
  {% assign formID = formInfo.id | prepend: "_"%}
{% endif %}

{% form 'customer_address', formInfo %}
  <div class="input-wrapper">
    <label for="customer_addresses_first_name{{ formID }}">{{ 'customer.addresses.first_name' | t }}</label>
    <input type="text" name="address[first_name]" value="{{form.first_name}}" id="customer_addresses_first_name{{ formID }}" />
  </div>
  <div class="input-wrapper">
    <label for="customer_addresses_last_name{{ formID }}">{{ 'customer.addresses.last_name' | t }}</label>
    <input type="text" name="address[last_name]" value="{{form.last_name}}" id="customer_addresses_last_name{{ formID }}" />
  </div>
  <div class="input-wrapper">
    <label for="customer_addresses_company{{ formID }}">{{ 'customer.addresses.company' | t }}</label>
    <input type="text" name="address[company]" value="{{form.company}}" id="customer_addresses_company{{ formID }}" />
  </div>
  <div class="input-wrapper">
    <label for="customer_addresses_address1{{ formID }}">{{ 'customer.addresses.address1' | t }}</label>
    <input type="text" name="address[address1]" value="{{form.address1}}" id="customer_addresses_address1{{ formID }}" />
  </div>
  <div class="input-wrapper">
    <label for="customer_addresses_address2{{ formID }}">{{ 'customer.addresses.address2' | t }}</label>
    <input type="text" name="address[address2]" value="{{form.address2}}" id="customer_addresses_address2{{ formID }}" />
  </div>
  <div class="input-wrapper">
    <label for="customer_addresses_city{{ formID }}">{{ 'customer.addresses.city' | t }}</label>
    <input type="text" name="address[city]" value="{{form.city}}" id="customer_addresses_city{{ formID }}" />
  </div>
  {% if isNew %}
    <div class="input-wrapper">
      <label for="address-country">{{ 'customer.addresses.country' | t }}</label>
      <div class="select-wrapper">
        <div class="selected-text"></div>
        <select id="address-country" name="address[country]" data-default="{{form.country}}">{{ country_option_tags }}</select>
      </div>
    </div>
    <div class="input-wrapper" id="address-province-container" style="display:none">
      <label for="address-province">{{ 'customer.addresses.province' | t }}</label>
      <div class="select-wrapper">
        <div class="selected-text"></div>
        <select id="address-province" class="new-address-province" name="address[province]" data-default="{{form.province}}"></select>
      </div>
    </div>
  {% else %}
    <div class="input-wrapper">
      <label for="address-country-{{form.id}}">{{ 'customer.addresses.country' | t }}</label>
      <div class="select-wrapper">
        <div class="selected-text"></div>
        <select id="address-country-{{form.id}}" name="address[country]" data-default="{{form.country}}">{{ country_option_tags }}</select>
      </div>
    </div>
    <div class="input-wrapper" id="address-province-container-{{ address.id }}" style="display:none">
      <label for="address-province-{{ address.id }}">{{ 'customer.addresses.province' | t }}</label>
      <div class="select-wrapper">
        <div class="selected-text"></div>
        <select id="address-province-{{ address.id }}" name="address[province]" data-default="{{form.province}}"></select>
      </div>
    </div>
  {% endif %}
  <div class="input-wrapper">
    <label for="customer_addresses_zip{{ formID }}">{{ 'customer.addresses.zip' | t }}</label>
    <input type="text" name="address[zip]" value="{{form.zip}}" id="customer_addresses_zip{{ formID }}" />
  </div>
  <div class="input-wrapper">
    <label for="customer_addresses_phone{{ formID }}">{{ 'customer.addresses.phone' | t }}</label>
    <input type="text" name="address[phone]" value="{{form.phone}}" id="customer_addresses_phone{{ formID }}" />
  </div>
  <div class="inline-input-wrapper">
    {% capture defaultAddressID %}
      {% if isNew %}
        address_default_address_new
      {% else %}
        address_default_address{{ formID }}
      {% endif %}
    {% endcapture %}
    <label for="{{ defaultAddressID | strip_newlines | strip}}">
      {{ form.set_as_default_checkbox }}
      <span class="inline-label">
        {{ 'customer.addresses.set_as_default' | t }}
      </span>
    </label>
  </div>
  <div class="input-wrapper cta-container">
    <input class="button" type="submit" id="submit{{ formID }}" value="{{ 'general.general.submit' | t }}">
    {% unless isNew %}
      <button class="cancel-edit button secondary">{{ 'customer.general.cancel' | t }}</button>
    {% endunless %}
    {% if customer.addresses.size > 0 and isNew %}
      <button class="toggle-new-address button secondary">{{ 'customer.general.cancel' | t }}</button>
    {% endif %}
  </div>
{% endform %}

 

Please help! Thanks. @KetanKumar @oscprofessional 

Highlighted
Shopify Partner
9489 1197 3338

@TechSolver 

Thanks for post 

how can i check this?

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
Pathfinder
85 3 11

@KetanKumar Create an account here and try to add an address to the account. It won't work.

Also, it keeps logging out every minute or so, I think.

0 Likes
Highlighted
Shopify Partner
9489 1197 3338

opss, sorry

can you please give user login details so i will check

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
Pathfinder
85 3 11

E: test@techeroo.com

P: test123

0 Likes
Highlighted
Shopify Partner
9489 1197 3338

@TechSolver 

Thanks 

i have login after 3 second automatic log out 

so can not check this issue sorry 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
Pathfinder
85 3 11

@KetanKumar I don't understand. What do you mean?

0 Likes
Highlighted
Shopify Partner
9489 1197 3338

@TechSolver 

sorry i mean we are not able to log in 

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes
Highlighted
Pathfinder
85 3 11

@KetanKumar Can you please try again? Sometimes you need to log in twice in a row for it to work.

0 Likes
Highlighted
Shopify Partner
9489 1197 3338

@TechSolver 

yes, i have try but doesn't have any response

If helpful then please Like and Accept Solution.
Want to modify or custom changes on store Hire me.
- Feel free to contact me on bamaniyaketan.sky@gmail.com regarding any help
Shopify Expert | Skype : bamaniya.sky
PSD to Shopify | Shopify Design Changes | Shopify Custom Theme Development and Desing | Custom Modifications In to Shopify Theme | SEO & Digital Marketing
0 Likes