Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Can You Require Name, Address, Phone Number For Subscribers? Rate Topic   - - - - -


Posted 18 November 2019 - 05:12 AM #1

Is there a way to make subscribers fill in the first name, last name, phone number, etc.?

  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11424 posts

Posted 18 November 2019 - 10:59 PM #2

You will probably need to provide an override for "newsletters:email_subscription_block" given the file newsletters:email_subscription_block/subscribe.tpl doesn't allow for adding more fields before the "submit" button is displayed.  The code should look similar to:

{hook name="newsletters:email_subscription_block"}
        <div class="ty-footer-form-block__form-container">
            <div class="ty-footer-form-block__form ty-control-group ty-input-append cm-block-add-subscribe">
                <label class="cm-required cm-email hidden" for="subscr_email{$block.block_id}">{__("email")}</label>
                <input type="text" name="subscribe_email" id="subscr_email{$block.block_id}" size="20" value="{__("enter_email")}" class="cm-hint ty-input-text" />
{* you would add additonal 'label's and 'input's here.  There should be a hook surrounding the above 2 elements *}
                {include file="buttons/go.tpl" but_name="newsletters.add_subscriber" alt=__("go")}

Copy the contents within the hook named "newsletters:email_subscription_block" to a new file named:


and modify to suit your needs.  Note if you add the class 'cm-required' to the label tag(s), then that field will become required.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


Posted 19 November 2019 - 03:07 AM #3

Thanks.  I'll look in to that.