Loading...

Hiding the 'Signup for membership' section

We no longer maintain the Knowledge Base since version 4.3.x. All the latest user and developer documentation for 4.3.x and newer versions is now available at docs.cs-cart.com.

  • This article is available only for CS-Cart versions:
  • 1.3.5
To hide the 'Signup for membership' section on the registration form:
  1. Open the profiles_account.tpl file located in the skins/[CUSTOMER_ACTIVE_SKIN]/customer/profiles_pages directory of your CS-Cart installation, where [CUSTOMER_ACTIVE_SKIN] is an active skin of your storefront.
  2. Replace this part of the code:
    {if $memberships}
    <div class="form-field">
        <label for="membership_id">{$lang.signup_for_membership}:</label>
        <span id="status_membership_id" class="required-field-mark">&nbsp;&nbsp;</span>
        <select id="membership_id" name="user_data[membership_id]">
                <option value="0">{$lang.not_a_member}</option>
                {foreach from=$memberships item=membership}
                <option value="{$membership.membership_id}" {if $user_data.membership_id == $membership.membership_id}selected="selected"{/if}>{$membership.membership}</option>
                {/foreach}
        </select>
    
    </div>
    {/if}

    with this one:
    {if $memberships}
    <div class="form-field" style="display:none">
        <label for="membership_id">{$lang.signup_for_membership}:</label>
        <span id="status_membership_id" class="required-field-mark">&nbsp;&nbsp;</span>
        <select id="membership_id" name="user_data[membership_id]">
                <option value="0">{$lang.not_a_member}</option>
                {foreach from=$memberships item=membership}
                <option value="{$membership.membership_id}" {if $user_data.membership_id == $membership.membership_id}selected="selected"{/if}>{$membership.membership}</option>
                {/foreach}
        </select>
    
    </div>
    {/if}
  3. Save the file.
    NOTE: A new customer will have the Not a member status by default.
Home / Knowledge base / Users / Customers / Hiding the 'Signup for membership' section