Toolkit - Render "Other Page" into "Basket Content" Tab of the BASK page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MusicMan
    Mivite

    • Feb 2009
    • 101

    #1

    Toolkit - Render "Other Page" into "Basket Content" Tab of the BASK page?

    I am trying to render content and product custom field data from a page I created in Miva (page name = external-data) and conditionally display it on the "PROD" page and in the checkout screens rather than hard coding the data into each screen. The code works fine on the PROD page but for some reason it wont work on the checkout screens. I double checked all the "Items" and still nothing.

    Here is the code I added to the Basket page "Basket Content" tab and the "PROD" page:
    <mvt:item name="toolkit" param="render|external-data" />

    And here is the conditional data in the page "external-data" that should be displayed:
    <mvt:if expr="l.settings:item:customfield_values:customfie lds:Available EQ 1">
    This item ships from our warehouse
    <mvt:if expr="NOT ISNULL l.settings:item:customfield_values:customfields:Tr ansit">
    in &mvt:item:customfield_values:customfields:Trans it; Days.
    </mvt:if>
    </mvt:if>

    <mvt:if expr="l.settings:item:customfield_values:customfie lds:Available EQ 2">
    This item ships from &mvt:item:customfield_values:customfields:MFG;
    <mvt:if expr="NOT ISNULL l.settings:item:customfield_values:customfields:Tr ansit">
    in &mvt:item:customfield_values:customfields:Trans it; Days.
    </mvt:if>
    </mvt:if>

    The code works just fine if I hard code it in the "Basket Content" tab on the BASK page, but for some reason if I try to "render" it, the data will not display.
    Does the "Render" feature not work here?

    Thanks in advance!
    David Limon
    E-Commerce Signal

    [email protected]
    http://www.ecommercesignal.com
    http://www.davidlimon.com
  • nottheusual1
    Mega Mivite


    • Jul 2008
    • 1124

    #2
    Re: Toolkit - Render &quot;Other Page&quot; into &quot;Basket Content&quot; Tab of the BASK page?

    Miva doesn't like pages with dashes in the names - try an underscore and see if it will render.

    Comment

    • ocpxc02
      Mivite


      • Mar 2006
      • 366

      #3
      Re: Toolkit - Render &quot;Other Page&quot; into &quot;Basket Content&quot; Tab of the BASK page?

      Does the render page have the appropriate items assigned? To troubleshoot, put something on the render page outside of the conditionals (just some random text). This will let you know if the page itself is even being called or if you have some other issue to resolve.

      Paul
      Paul

      Comment

      • wcw
        Developer Partner

        • Mar 2006
        • 11329

        #4
        Re: Toolkit - Render &quot;Other Page&quot; into &quot;Basket Content&quot; Tab of the BASK page?

        A variable like l.settings:item:customfield_values:customfields:Av ailable would be in the basket page because the basket and its items are being initialized. They would not be in that other page unless the basket is being initialized. basket item assigned?
        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