Announcement

Collapse
No announcement yet.

New Contact Form Questions

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

    New Contact Form Questions

    Github says "
    <mvt:comment> <!-- By default, this form is designed to send to the store email address. You can change this by replacing g.store:email with 'my_email@my_domain.com' -->"

    1. Regarding the above: Should I replace every instance of g.store:email with [email protected] within my new CTFMnewpagename page template?

    2. I make no changes to contact.js, correct?

    3. Within CTFMnewpagename, if I want a custom subject, not located in the form, I edit <mvt:assign name="l.mail:subject" value="'[' $ g.store:name $ ' Edit this to insert custom subject line? ' $ g.contactSubject" /> only, correct?
    Last edited by jsdva; 06-10-22, 08:04 AM. Reason: make clear a question
    Jamie Donaldson
    JSDVS Web Design / Development
    Web Design | Web Development | E-commerce Design & Integration

    #2
    1. Only edit that one instance in <mvt:assign name="l.mail:to" value="g.store:email" />
    2. Correct
    3. Correct
    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
      Poop. Updated #1 to
      <mvt:assign name="l.mail:to" value="[email protected]" /> and got the following error:

      Error compiling template: Line 33: Expression compilation failed: Found additional argument '@' while looking for operator
      Jamie Donaldson
      JSDVS Web Design / Development
      Web Design | Web Development | E-commerce Design & Integration

      Comment


        #4
        Try:
        Code:
        <mvt:assign name="l.mail:to" value="'[email protected]'" />
        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


          #5
          Okay, that fixed my error, but I cannot click the submit button on the page where the form exists
          Jamie Donaldson
          JSDVS Web Design / Development
          Web Design | Web Development | E-commerce Design & Integration

          Comment


            #6
            Hi Jamie,

            Make sure you assign the "contact" JavaScript Resource to your new page.
            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


              #7
              I must be getting bleary-eyed. On CTFMnewpagename, the form in the Content Section of Readytheme Components, or the actual page template the form will display on?
              Jamie Donaldson
              JSDVS Web Design / Development
              Web Design | Web Development | E-commerce Design & Integration

              Comment


                #8
                Hi Jamie,

                The JavaScript Resource will need to be assigned to the new contact page like it is to CTUS.
                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


                  #9
                  I still haven't figured out how I am "assigning" the "contact" JavaScript Resource to my new page.

                  I feel like I am taking you down a rabbit hole with me Matt. I'm so sorry.

                  Won't let me add the code to the forum, so I'm going to private message you. I hope that is okay
                  Jamie Donaldson
                  JSDVS Web Design / Development
                  Web Design | Web Development | E-commerce Design & Integration

                  Comment


                    #10
                    Hi Jamie,

                    To assign the resource to the new page:
                    • Navigate to User Interface -> CSS/JavaScript Resources -> JavaScript Resources
                    • Select the "contact" resource
                    • Click the three dots next to In-Line Edit and select Pages
                    • Scroll to the new page, click assign, and then close
                    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


                      #11
                      Bless you Matt!! And, thank you for holding my hand. That was simply too easy and I should have known that!

                      You are indeed the best and most patient!
                      Jamie Donaldson
                      JSDVS Web Design / Development
                      Web Design | Web Development | E-commerce Design & Integration

                      Comment


                        #12
                        You're welcome Jamie :-)
                        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


                          #13
                          I followed Matt's instructions above to add a bit of custom css for category and product pages (thank you Matt - those 3 dots are easy to overlook.)

                          Is there possibly something I missed? Or a cache that's causing me grief? I even changed my css file to one simple and visually obvious rule (yellow background for one div's id) - saved then reloaded category and product page - no yellow. Used devtools to see if something was overriding it - it's not even in there.

                          Comment


                            #14
                            ksechrist Can you post a link to the page in question? If you are using a service like ClourFlare, you may need to clear your cache there.
                            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


                              #15
                              Thank you Matt - I was already suspecting caching but didn't think this site was using cloudflare. Your reply made me dig deeper and realize it is!

                              Comment

                              Working...
                              X