Announcement

Collapse
No announcement yet.

Contact Form Template

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Contact Form Template

    Can anyone Send a good contact form template from their Content Black. I deleted the original one on accident and do not want to redo the theme on our dev site. I just want to see how it is created now.

    Thanks,
    Marshall
    http://www.hmcdisplay.com
    http://www.churchonwheels.com

    #2
    Here is the contact us content block from the Storyteller ReadyTheme:
    HTML Code:
    <div class="column whole medium-one-third medium-offset-one-twelfth">
        <p><strong>We're Here To Help</strong><br />Your satisfaction is important to us! Use the form to email us your questions about products, online orders, store experiences and more.</p>
        <p><strong>Order Questions:</strong><br />If you need help or have any other questions concerning your orders, please call customer support at: <a href="tel:+1<mvt:eval expr="glosub(g.store:phone, '.', '')" />">&mvt:global:store:phone;</a>.</p>
        <address itemscope itemtype="http://schema.org/LocalBusiness">
            <strong itemprop="name">&mvt:global:store:company;</strong><br>
            &mvt:global:store:address;<br>
            &mvt:global:store:city;, &mvt:global:store:state; &mvt:global:store:zip; &mvt:global:store:country;<br>
            Customer Service: <span itemprop="telephone"><a href="tel:+1<mvt:eval expr="glosub(g.store:phone, '.', '')" />">&mvt:global:store:phone;</a></span>
        </address>
    </div>
    <div class="column whole medium-one-third medium-offset-one-sixth">
        <p class="message message--error" data-hook="contact-us__warning">You must javascript enabled to use this form.</p>
        <form class="contact-us__form" data-hook="contact-us__form" method="post" action="&mvte:global:theme_path;/forms/contactForm.php">
            <div class="cmp-product-purchase__processing bg--white" data-hook="cmp-product-purchase__processing">
                <span class="cmp-processing-indicator color--green"></span>
            </div>
            <div class="message message--warning cmp-product-purchase__message" data-hook="cmp-product-purchase__message"></div>
            <fieldset>
                <legend>
                    <small>All fields are required.</small>
                </legend>
                <div class="form-row">
                    <label for="l-contact-us__form__name">Your Name:</label>
                    <input id="l-contact-us__form__name" class="input--medium border--gray" type="text" name="contactName" value="" required />
                </div>
                <div class="form-row">
                    <label for="l-contact-us__form__email">Your Email Address:</label>
                    <input id="l-contact-us__form__email" class="input--medium border--gray" type="email" name="contactEmail" value="" required />
                </divborder--grayform-row">
                    <label for="l-contact-us__form__comment">Comments or Questions:</label>
                    <textarea id="l-contact-us__form__comment" class="border--gray" name="contactComment" required></textarea>
                </div>
                <div class="form-row h-align-right">
                    <input class="button button--medium bg--primary font--uppercase" data-hook="submit-form" type="submit" value="Send" title="Send Us Your Information">
                </div>
            </fieldset>
            <input type="hidden" name="storeName" value="&mvte:global:store:name;" />
            <mvt:assign name="g.storeEmailB64" value="crypto_base64_encode(g.store:email)" />
            <input type="hidden" name="storeEmail" value="&mvte:global:storeEmailB64;" />
        </form>
    </div>
    Matt Zimmermann

    Miva Web Developer
    Alchemy Web Development
    https://www.alchemywebdev.com
    Site Development - Maintenance - Consultation

    Miva Certified Developer
    Miva Professional Developer

    https://www.dev4web.net | Twitter

    Comment


      #3
      Thanks Matt, thats perfect.
      Marshall
      http://www.hmcdisplay.com
      http://www.churchonwheels.com

      Comment


        #4
        OK, I have customize my form and I like it. However, it only emails me a few of these basic lines. Where is the email template created? Can I edit that? I would like to change the subject line and have a few if then statements on it.

        Thanks,

        Marshall
        http://www.hmcdisplay.com
        http://www.churchonwheels.com

        Comment


          #5
          To update the form processor to include the new fields, as well as any other changes, you will need to update the contactForm.php file located in the 'mm5/themes/THEMENAME/forms/' directory.
          Matt Zimmermann

          Miva Web Developer
          Alchemy Web Development
          https://www.alchemywebdev.com
          Site Development - Maintenance - Consultation

          Miva Certified Developer
          Miva Professional Developer

          https://www.dev4web.net | Twitter

          Comment

          Working...
          X