Toolkit Waitlist Setup - Toolkit 'render' not working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cnelson
    Mini Mivite

    • Aug 2011
    • 45

    #1

    Toolkit Waitlist Setup - Toolkit 'render' not working

    I have created the WAITLIST page. And I am calling this item in the PROD page Template:
    Code:
    <mvt:item name="toolkit" param="render|WAITLIST" />
    The token is not wrapped in a conditional, and the contents of the WAITLIST page has text that is not warpped in a conditional. Though I am unable to see anything rendered on the front end. Toolkit is assigned to the PROD, and WAITLIST page.

    Any ideas as to why this might be happening?

    Additional info:
    Toolkit version: 5.2760
    Miva Merchant 9.0004
    MivaScript Engine v5.22
    Database API: mysql
    Calvin Nelson
    Director of Web Development
    2C Development Group
  • Bruce - PhosphorMedia
    Developer Partner











    • Mar 2006
    • 11256

    #2
    Re: Toolkit Waitlist Setup - Toolkit 'render' not working

    First, what happens when you just try to call the screen in the browser (i.e., Screen=WAITLIST)

    Next, try this in place of the toolkit render:

    <mvt:do name="l.doit" file="g.Module_Feature_TUI_MGR" value="TemplateManager_Render_Page( 'WAITLIST' )" />
    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

    • cnelson
      Mini Mivite

      • Aug 2011
      • 45

      #3
      Re: Toolkit Waitlist Setup - Toolkit 'render' not working

      Thanks for the reply Bruce!

      The screen will show my test text if I go directly to it. The MVT:DO work.

      Though I am still unable to get the wait tokens to function. here is my code. I am tracking inventory and I go to a page the has 0 inventory, and nothing shows up.


      Code:
      <mvt:if expr="g.Screen NE 'PROD'">
          <!DOCTYPE HTML>
          <html>
          <head>
              <meta charset="utf-8">
              <title>Wait List</title>
                  <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
                  <meta content="width=device-width, initial-scale=1.0" name="viewport">
                  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
          </head>
          <body>
      </mvt:if>
      <mvt:item name="toolkit" param="waitlist|outcount|g.product_code|1" />
      <mvt:if expr="g.outcount GT 0">
          <mvt:if expr="g.show_wait">
              <br>Out of Stock
              <form action="&mvt:global:sessionurl;" method="POST">
                  <input type="hidden" name="Screen" value="&mvte:global:Screen;">
                  <input type="hidden" name="Product_Code" value="&mvte:global:product_code;">
                  <input type="hidden" name="Store_Code" value="&mvte:global:store:code;">
                  <input type="hidden" name="show_wait" value="1">
                  <mvt:foreach iterator="choice" array="tk_inventory">
                      <mvt:if expr="l.settings:choice:count_onhand LE 0">
                          <mvt:if expr="g.outcount EQ 1">
                              <input type="hidden" name="reserve" value="&mvte:choice:id;">
                          <mvt:else>
                              <input type="radio" name="reserve" value="&mvte:choice:id;">
                          </mvt:if>
                          &mvt:choice:name; 
                          <mvt:if expr="NOT ISNULL l.settings:choice:option">
                              (&mvt:choice:option;)
                          </mvt:if>
                          <br>
                      </mvt:if>
                  </mvt:foreach>
                  Your Email 
                  <input type="text" name="wait_email" value="&mvte:global:customer:bill_email;" size="30">
                  <input type="submit" name="waiting" value="Wait List Me">
              </form>
              <mvt:if expr="g.wait_error EQ 'select'">
                  <br><span class="red">Please select one</span>
              </mvt:if>
              <mvt:if expr="g.wait_error EQ 'already'">
                  <br><span class="red">You are already on the list</span>
              </mvt:if>
              <mvt:if expr="g.wait_length EQ 1">
                  <br>One person is waiting for this item
              </mvt:if>
              <mvt:if expr="g.wait_length GT 1">
                  <br>&mvte:global:wait_length; people are waiting for this item
              </mvt:if>
          <mvt:else>
              <!-- you can only use this option if the screen the wait list is called from is PROD.  It is an in 
              place sign-up form.  Test it out and see what it does.  You may not even use it. //-->
              <mvt:if expr="g.Screen EQ 'PROD'">
                  <a href="&mvt:global:sessionurl;Screen=&mvta:global:Screen;&Product_Code=&mvta:global:Product_code;&Store_Code=&mvta:global:store_code;&show_wait=1" id="js-open-waitlist">Add me to Wait List</a>
              </mvt:if>
          </mvt:if>
      </mvt:if>
      test
      <mvt:if expr="g.Screen NE 'PROD'">
          </body>
          </html>
      </mvt:if>
      Calvin Nelson
      Director of Web Development
      2C Development Group

      Comment

      Working...
      X