Announcement

Collapse
No announcement yet.

More than one instance of the Addendum

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

    #16
    Re: More than one instance of the Addendum

    Leslie, I can't seem to get the custom field to work either. Doesn't look like it's an available variable on the OCST page where my Addendum questions are. Any update on getting this to work?

    Thanks,
    Shannon
    Last edited by srmb; 12-16-11, 01:36 PM.

    Comment


      #17
      Re: More than one instance of the Addendum

      You would use the Emporium Plus Tool Kit to pull custom field data from the products in the basket. The function to use is called "custom".
      Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
      Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
      Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
      Facebook http://www.facebook.com/EmporiumPlus
      Twitter http://twitter.com/emporiumplus

      Comment


        #18
        Re: More than one instance of the Addendum

        no, it would not be because product custom fields only work (by default) when you are on a page that has a product_list item assigned (i.e., category, search product). The OCST screen is looking at Basket data, not product. So, you either need to use something that looks up the product information from the Basket data (i.e., toolkit) or another approach.
        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


          #19
          Re: More than one instance of the Addendum

          Bill, thanks for your help. So I'm trying to use the toolkit "custom" function on the OCST page (to check for a custom field to display an alternate Addendum question), but I'm not getting it to work. According to Bruce, I need to somehow get this info from the BASK first. Using the toolkit custom function code with my custom field code doesn't work. It just displays the &mvt code. I have turned on toolkit on the OCST page, and turned on the custom field on the PROD page. And have placed some test code in the custom field of one of my products.

          <mvt:item name="toolkit" param="custom|studio|l.all_settings:item:product_i d|mycustomfieldcode" />
          <mvt:if expr="g.studio">
          &mvte:global:studio;

          Do I need to change l.all_settings:item:product_id to basket_id? Or do I need to do something on the BASK page to pass the info on?

          Thanks for your help,
          Shannon

          Comment


            #20
            Re: More than one instance of the Addendum

            Click the basket contents tab on the ocst page template. Then put that example code inside the foreach loop. That is where the code goes. It does not go inside the addendum admin screen. That is not a page template with store morph.
            Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
            Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
            Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
            Facebook http://www.facebook.com/EmporiumPlus
            Twitter http://twitter.com/emporiumplus

            Comment


              #21
              Re: More than one instance of the Addendum

              So I've reread through all the posts again on the this topic and still don't know if I can accomplish what I need to do.

              I need two sets of Addendum questions, version 1 that shows no matter what, and version 2 only if a certain item is in the basket. These need to be Addendum questions that I display on the OCST page and will output the responses on the INVC page. I understand that I need to use Toolkit to check the basket for the custom field for the products needing question set 2. But if I can't have any kind of IF / ELSE statement in the Addendum module screen field, how can I switch between question sets??

              Thanks,
              Shannon

              Comment


                #22
                Re: More than one instance of the Addendum

                You would use the tool kit to see if that item was in the basket. If it was, wrap the addendum token with a conditional.
                Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                Facebook http://www.facebook.com/EmporiumPlus
                Twitter http://twitter.com/emporiumplus

                Comment


                  #23
                  Re: More than one instance of the Addendum

                  So I would put the alternate question set "outside" of the Addendum token?

                  IF BASK contains this CUSTOM FIELD, then display this question set:
                  <input type="checkbox" name="question1" value="I agree." %checked1%>
                  <input type="checkbox" name="question2" value="I agree." %checked2%>
                  <input type="checkbox" name="question3" value="I agree." %checked3%>
                  <input type="hidden" name="maxquestions" value="3" />
                  <input type="hidden" name="AddendumRequired" value="1|2|3">

                  ELSE display regular Addendum question set:
                  <mvt:item name="addendum" param="ocst" />

                  I get the feeling this isn't right. I need to make sure the answers to either question set are able to be displayed on the INVC using Addendum. I already have this set up and working great for the original question set we use. Now need to include the alternate version.

                  Thanks,
                  Shannon

                  Comment


                    #24
                    Re: More than one instance of the Addendum

                    ...or, as i mentioned before, use a product attribute. Probably better to ask them to agree BEFORE they add the product to the basket.
                    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


                      #25
                      Re: More than one instance of the Addendum

                      Can I put the Addendum questions "outside" of the Addendum token call on my OCST page??
                      I thought the questions had to be set up on the Addenum module page as the module creates it's own form field.


                      Shannon

                      Comment


                        #26
                        Re: More than one instance of the Addendum

                        You can duplicate the question set in the OCST directly and leave off the token. Then on the OSEL and OPAY you would use the token.
                        Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                        Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                        Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                        Facebook http://www.facebook.com/EmporiumPlus
                        Twitter http://twitter.com/emporiumplus

                        Comment


                          #27
                          Re: More than one instance of the Addendum

                          Thanks Bill. I set up some test questions on the OCST page and removed the addendum render token on that page, but found that the required questions didn't work then - I could continue to the next step without the page refreshing with the error message that fields were unchecked. With the addendum token on the page it recognizes the required fields.

                          But setting up the questions "outside" of addendum (with and without the addendum render token) then breaks this feature: f. You have the ability to use tokens to save and retrieve Addendum responses when a screen is refreshed due to missing data, e.g. the customer does not choose a shipping or payment method.


                          Thanks,
                          Shannon

                          Comment


                            #28
                            Re: More than one instance of the Addendum

                            You need to view the source on the page during checkout when the token is used. You will see inputs other than the questions, e.g. for which questions are required. When you remove the token, you need to supply that line too.
                            Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                            Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                            Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                            Facebook http://www.facebook.com/EmporiumPlus
                            Twitter http://twitter.com/emporiumplus

                            Comment


                              #29
                              Re: More than one instance of the Addendum

                              Thanks, I'm getting closer to understanding how this would work.

                              I added <input type="hidden" name="AddendumRequired" value="1|2"> and then the OCST page would refresh if required fields were unchecked, but would give no error message to explain. I found out that I had to call in the g.AddendumErrorMessage (&mvt:global:addendumerrormessage;), so now that works again!

                              But the tokens for saving previous responses still don't work. Is this something I won't be able to use if the questions are set up "outside" of the Addendum module?

                              Thanks and have a great holiday,
                              Shannon

                              Comment


                                #30
                                Re: More than one instance of the Addendum

                                You can. Change the value in the text input from value="" to value="&mvte:global:question1;"> Change the number as appropriate for the questions you have. Be sure to use &mvte to prevent cross scripting hacks.
                                Bill Weiland - Emporium Plus http://www.emporiumplus.com/store.mvc
                                Online Documentation http://www.emporiumplus.com/tk3/v3/doc.htm
                                Question http://www.emporiumplus.com/mivamodu...vc?Screen=SPTS
                                Facebook http://www.facebook.com/EmporiumPlus
                                Twitter http://twitter.com/emporiumplus

                                Comment

                                Working...
                                X