Announcement

Collapse
No announcement yet.

More than one instance of the Addendum

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

    More than one instance of the Addendum

    Wouldn't you know it, I come up with a question for Bill right after he starts his vacation. I'm needing what might be two instances of the Addendum - with one only displaying when certain products are ordered and one displays all the time. It looks like the Addendum is all or nothing. In other words all questions are displayed or hidden using the "Display ONLY with these Product Codes: feature in the module. Or if the Secondary Questions Set could be controlled by the Product Codes - that would be awesome!!!

    Maybe when Bill gets back he could add another function that would enable selecting which questions are controlled by the products. Or unless I'm doing something wrong

    Leslie
    Leslie Kirk
    Miva Certified Developer
    Miva Merchant Specialist since 1997
    Previously of Webs Your Way
    (aka Leslie Nord leslienord)

    Email me: [email protected]
    www.lesliekirk.com

    Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

    #2
    Re: More than one instance of the Addendum

    AFAIK, you could use standard conditionals to determine which questions you want to show, while hidding the others with hidden.

    so if you have three:

    <input type="text" name="q1" value="">
    <input type="text" name="q2" value="">
    <input type="text" name="q3" value="">

    But product foo needed only 1 and 2, and product bar needed 2 and 3 and product foobar need only 3

    <mvt:if expr="g.product_code EQ 'foo'">
    <input type="text" name="q1" value="">
    <input type="text" name="q2" value="">
    <input type="hidden" name="q3" value="">
    <mvt:elseif expr="g.product_code EQ 'bar'">
    <input type="hidden" name="q1" value="">
    <input type="text" name="q2" value="">
    <input type="text" name="q3" value="">
    <mvt:elseif expr="g.product_code EQ 'foobar'">
    <input type="hidden" name="q1" value="">
    <input type="hidden" name="q2" value="">
    <input type="text" name="q3" value="">
    </mvt:if>


    Of course use a custom field for the IF statement if there are a large number of products. Also, if there are a large number of variables.
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      Re: More than one instance of the Addendum

      So the <mvt:if expr="g.product_code EQ 'foo'"> would actually become custom field conditional since there would be hundreds of products this would be used for.
      Leslie Kirk
      Miva Certified Developer
      Miva Merchant Specialist since 1997
      Previously of Webs Your Way
      (aka Leslie Nord leslienord)

      Email me: [email protected]
      www.lesliekirk.com

      Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

      Comment


        #4
        Re: More than one instance of the Addendum

        Probably, but the keu question is how many 'sets' of questions are they. For example, if you have five questions, and any one of the thousand of products would have either Q1,2,3, or Q2, 3, 4, 5, then you'd want to have a custom field called AddQuest, which a value of Set1, Set2, etc.

        If there are dozens of sets, you might want to actually put the questions in a custom field for each product. (Code efficiency).
        Bruce Golub
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          Re: More than one instance of the Addendum

          All I want to know is, who gave Bill permission to go on vacation at this time of year?!?!?!?!
          Mark Romero
          ~~~~~~~~

          Comment


            #6
            Re: More than one instance of the Addendum

            Who would make changes to a live site this time of year?<g>
            Bruce Golub
            Phosphor Media - "Your Success is our Business"

            Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
            phosphormedia.com

            Comment


              #7
              Re: More than one instance of the Addendum

              Who would make changes to a live site this time of year?<g>
              I know. That would be as crazy as if Miva were to release an update to PR 8 during the month of December. ;)

              Seriously though, stores do all sorts of promotions during the holidays, and so seldom used (as in annually implemented) features do get implemented around the big holiday push.

              Also, the increase in traffic at this time of year does tend to expose "weaknesses" in a web site, so sometimes problems aren't really discovered until after Thanksgiving. For instance, I didn't know that a particular free shipping conditional I had implemented wasn't working until yesterday, and the only reason I found out was that the increased traffic meant more people were qualifying for this (rather limited) free shipping condition.

              Further, some sites might try out various analytics programs and such that have a free month trial, since they figure if they are getting charged by the month, why not use it during the month when traffic is highest to get the most accurate figures?
              Mark Romero
              ~~~~~~~~

              Comment


                #8
                Re: More than one instance of the Addendum

                That would be as crazy as if Miva were to release an update to PR 8 during the month of December. ;)
                Technically we launched it on November 29th ;)
                Thanks,

                Rick Wilson
                CEO
                Miva, Inc.
                [email protected]
                https://www.miva.com

                Comment


                  #9
                  Re: More than one instance of the Addendum

                  Technically we launched it on November 29th ;)
                  Sorry about that, Chief.

                  When you are working 80 hours a week, the months just seem to kind of blur together... ;)
                  Mark Romero
                  ~~~~~~~~

                  Comment


                    #10
                    Re: More than one instance of the Addendum

                    IMO: Merchant launched PR4 in Late Nov to help insure that it would be a SLOW rollout<g>.

                    Mark,

                    Not to harp on you, but this is a very valid and serious point of owning and operating a business. DO WHATEVER IT TAKES TO NOT BE "TRYING" THINGS AFTER Oct. 30th.

                    This mean get your "infrequently used features" tested and readied. Try to enlist as many folks as you can to "test the site". (That being said, yea, its hard to duplicate the holiday madness...and not a good time for a developer to leave--that's why i've been getting about 4 hours of sleep a night since mid-nov...and why i am beginning to REALLY hate christmas...but an actual module should not be "breaking"
                    Bruce Golub
                    Phosphor Media - "Your Success is our Business"

                    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                    phosphormedia.com

                    Comment


                      #11
                      Re: More than one instance of the Addendum

                      Mark,

                      Not to harp on you, but this is a very valid and serious point of owning and operating a business. DO WHATEVER IT TAKES TO NOT BE "TRYING" THINGS AFTER Oct. 30th.
                      Understood and appreciated. :)
                      Mark Romero
                      ~~~~~~~~

                      Comment


                        #12
                        Re: More than one instance of the Addendum

                        Having some issues with the usage of a custom product field to conditionally display questions - so I've contacted Bill, now that he's back.

                        Leslie
                        Leslie Kirk
                        Miva Certified Developer
                        Miva Merchant Specialist since 1997
                        Previously of Webs Your Way
                        (aka Leslie Nord leslienord)

                        Email me: [email protected]
                        www.lesliekirk.com

                        Follow me: Twitter | Facebook | FourSquare | Pinterest | Flickr

                        Comment


                          #13
                          Re: More than one instance of the Addendum

                          Just found this thread that discusses my exact problem, but have an additional question.

                          If I set up say Question 1 and 2 to display for all products and be required, and I set up Question 3 to display only for certain products (about 10) but also be required, how will setting all 3 questions as required work if only 1 and 2 are displayed?
                          Will it create an error if question 3 is hidden because the product that triggers it is not in the basket, but it is on the required list in Addendum?

                          Thanks,
                          Shannon

                          Comment


                            #14
                            Re: More than one instance of the Addendum

                            Simply, in the logic to create the hidden field, use:
                            <input type="hidden" name="Q3" value="NA">

                            (or use ANY value you want for the 'value' parameters. Now, Q3 = NA.)
                            Bruce Golub
                            Phosphor Media - "Your Success is our Business"

                            Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                            phosphormedia.com

                            Comment


                              #15
                              Re: More than one instance of the Addendum

                              Thanks Bruce! I'm working on trying it out right now.

                              Shannon

                              Comment

                              Working...
                              X