Announcement

Collapse
No announcement yet.

Different Product Page Templates in Miva?

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

  • Different Product Page Templates in Miva?

    Hi there, Everyone:

    I might be losing my mind, but I thought that there was a way to create and assign different product page templates (and different category templates) in Miva Merchant without having to use a thrid-party module.

    Is that right? Or am I just having a brain cramp?

    I am running PR 8 Update 5 on an MMUI store.

    Thanks in advance.
    Mark Romero
    ~~~~~~~~

  • Re: Different Product Page Templates in Miva?

    Yes it's built in for PROD and CTGY pages. Look for the Alternate Product Page box or the Alternate Category Page box on the respective screens. It's covered in the reference guide too.
    Thanks,

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

    Comment


    • Re: Different Product Page Templates in Miva?

      Thanks!!!

      Starting to worry I was losing it.
      Mark Romero
      ~~~~~~~~

      Comment


      • Re: Different Product Page Templates in Miva?

        Ok, I am lost again:
        It's covered in the reference guide too.
        Where is the reference guide again?

        Thanks in advance.
        Mark Romero
        ~~~~~~~~

        Comment


        • Re: Different Product Page Templates in Miva?

          http://www.mivamerchant.com/support/docs

          Third link down.
          Thanks,

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

          Comment


          • Re: Different Product Page Templates in Miva?

            Hi there, Rick:

            I can't seem to get this to work. Maybe I am missing a step?

            I sent an email to tech support, but maybe someone can figure out why the alternate product template is not showing.

            1) I created a new template called PROD_KYST, wich was copied from the PROD page.

            2) I removed the category tree and changed the test inside the h1 tag of the PROD_KYST

            3) I went to a product in the admin and in the Alternate Display Page: field I have PROD_KYST, then I hit update.

            Then when I visited the storefront for that page, it still showed the OLD template (i.e., without my changes to the category tree and h1 showing).

            Thanks in advance for passing along any ideas.
            Mark Romero
            ~~~~~~~~

            Comment


            • Re: Different Product Page Templates in Miva?

              Originally posted by Siamese-Dream.Com View Post
              Hi there, Rick:

              I can't seem to get this to work. Maybe I am missing a step?

              I sent an email to tech support, but maybe someone can figure out why the alternate product template is not showing.

              1) I created a new template called PROD_KYST, wich was copied from the PROD page.

              2) I removed the category tree and changed the test inside the h1 tag of the PROD_KYST

              3) I went to a product in the admin and in the Alternate Display Page: field I have PROD_KYST, then I hit update.

              Then when I visited the storefront for that page, it still showed the OLD template (i.e., without my changes to the category tree and h1 showing).

              Thanks in advance for passing along any ideas.
              This might have something to do with using the toolkit TKSL if you are using it?
              http://www.emporiumplus.com/v5/tksl.txt
              Last edited by Mark Hood; 05-03-12, 04:31 AM.
              Mark Hood
              Vermont Gear

              Comment


              • Re: Different Product Page Templates in Miva?

                If you are using TKSL and have Tool Kit version 5.222 or newer you can simply add some code to the TKSL page template. This code first tests to see if the alternate page code is used. If it is, it uses that. If it is not, it tries the screencode custom field. If it finds it there, it uses that one. So that fallback makes it backward compatible. This code goes just before <mvt:item name="toolkit" param="vrender|g.Screen" /> Also, if you have alternate pages due to your Facebook store, they will need to be worked into this code.

                Code:
                <mvt:comment>beginning of alternate page assignment</mvt:comment>
                <mvt:if expr="g.altpageid GT 0">
                <mvt:item name="toolkit" param="altpagecode|newcode|g.altpageid" />
                <mvt:if expr="g.newcode">
                <mvt:item name="toolkit" param="vassign|Screen|g.newcode" />
                </mvt:if>
                <mvt:else>
                <mvt:if expr="g.Screen EQ 'PROD'">
                	<mvt:item name="toolkit" param="customc|newscreen|g.Product_Code|screencode" />
                	<mvt:if expr="g.newscreen">
                		<mvt:item name="toolkit" param="vassign|Screen|g.newscreen" />
                	</mvt:if>
                <mvt:else>
                	<mvt:if expr="g.Screen EQ 'CTGY'">
                		<mvt:item name="toolkit" param="customcategoryc|newscreen|g.Category_Code|screencode" />
                		<mvt:if expr="g.newscreen">
                			<mvt:item name="toolkit" param="vassign|Screen|g.newscreen" />
                		</mvt:if>
                	</mvt:if>
                </mvt:if>
                </mvt:if>
                <mvt:comment>end of alternate page assignment</mvt:comment>
                Last edited by wcw; 05-03-12, 05:22 AM.
                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


                • Re: Different Product Page Templates in Miva?

                  Thanks, Mark and Bill, for pointing that out to me.

                  I just ordered an updated version of toolkit, so hopefully I can get everything up and running today.

                  Thanks again.
                  Mark Romero
                  ~~~~~~~~

                  Comment

                  Working...
                  X