24/7 Support - 800.608.6482

Miva Merchant Community Forums

Thread: Different Product Page Templates in Miva?

  1. #1
    Join Date
    Apr 2006
    Location
    Marin County, California
    Posts
    3,294

    Default 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
    ~~~~~~~~

  2. #2
    Join Date
    Aug 2007
    Posts
    7,534

    Default 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
    President
    Miva Merchant
    rwilson@mivamerchant.com
    http://www.mivamerchant.com

  3. #3
    Join Date
    Apr 2006
    Location
    Marin County, California
    Posts
    3,294

    Default Re: Different Product Page Templates in Miva?

    Thanks!!!

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

  4. #4
    Join Date
    Apr 2006
    Location
    Marin County, California
    Posts
    3,294

    Default 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
    ~~~~~~~~

  5. #5
    Join Date
    Aug 2007
    Posts
    7,534

    Default Re: Different Product Page Templates in Miva?

    Thanks,

    Rick Wilson
    President
    Miva Merchant
    rwilson@mivamerchant.com
    http://www.mivamerchant.com

  6. #6
    Join Date
    Apr 2006
    Location
    Marin County, California
    Posts
    3,294

    Default 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
    ~~~~~~~~

  7. #7
    Join Date
    Nov 2006
    Location
    Groton Vermont
    Posts
    1,909

    Default Re: Different Product Page Templates in Miva?

    Quote 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 at 04:31 AM.

  8. #8
    Join Date
    Mar 2006
    Posts
    11,189

    Default 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 at 05:22 AM.

  9. #9
    Join Date
    Apr 2006
    Location
    Marin County, California
    Posts
    3,294

    Default 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
    ~~~~~~~~

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •