Announcement

Collapse
No announcement yet.

Alternate Category page template with Toolkit

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

    Alternate Category page template with Toolkit

    Hey there i have a site called www.loveisarose.com i have one category with several subcategories that also have several subcategories and i want the sub category navigation templates to be different for these pages than the rest of my site. how can i do this? here is my code for the CTGY page currently:

    Code:
    <mvt:item name="html_profile" />
    <mvt:if expr="g.mobile EQ 'TRUE'">
        <mvt:item name="mobile_content" />
    <mvt:else>
    <head>
        <mvt:if expr="NOT ISNULL l.settings:category_title:image">
            <title>&mvte:category_title:image;</title>
        <mvt:else>
            <title>&mvt:category:name; - &mvt:store:name;.com</title>
        </mvt:if>
            <base href="&mvt:global:basehref;">
            <mvt:item name="prodctgy_meta" param="ctgy" />
        <mvt:item name="head" param="head_tag" />
         
    </head>
    
    
    <mvt:item name="body">
        <mvt:item name="hdft" param="global_header" />
        <div id="wrap">
        <table cellpadding="0" cellspacing="0" width="100%">
        <tr><td align="left" valign="top">
        <table cellpadding="0" cellspacing="0" width="100%">
        <tr><td align="left" valign="bottom" colspan=2 >
            <mvt:item name="navbar" />
        </td></tr>
    
    
        <tr><td align="left" valign="bottom"> 
            <mvt:item name="hdft" param="header" />
        </td></tr>
    
    
        <tr><td id="border-right" align="left" valign="top">
            <table width="225" cellpadding="0" cellspacing="0">
            <tr><td align="left" valign="top">
                <mvt:item name="affiliatelink" />
                <mvt:item name="category_tree" />
            </td></tr>
            </table>
        </td><td id="border-left" align="left" valign="top" width="100%">
            <br>
            <blockquote>
            <mvt:item name="toolkit" param="breadcrumb|b_count|g.Category_Code" />
            <mvt:if expr="b_count GT 0">
                <a href="http://www.loveisarose.com/" title="Home">Home</a> &gt;
                <mvt:foreach iterator="breadcrumb" array="breadcrumbs"> 
                    <mvt:if expr="g.Category_Code EQ l.settings:breadcrumb:code">
                        <b>&mvt:breadcrumb:name;</b>
                    <mvt:else>
                        <a href="/&mvte:breadcrumb:code;.html" title="&mvt:breadcrumb:name;">&mvt:breadcrumb:name;</a> &gt;
                    </mvt:if>
                </mvt:foreach>
            </mvt:if><br>
                <h1>&mvte:category:name;</h1>
                    <mvt:item name="prod_ctgy_hdft" param="ctgy_header" /><br>
            <br>
                    <mvt:item name="toolkit" param="subcat|ccount|g.Category_Code" />
            <mvt:if expr="ccount GT 0">
                <mvt:item name="subcategory_listing" />
            </mvt:if>
            <mvt:item name="toolkit" param="cxp|pcount|l.all_settings:category:id" />
            <mvt:if expr="pcount GT 0">
                <mvt:item name="product_list" />
            </mvt:if>
            <mvt:item name="prod_ctgy_hdft" param="ctgy_footer" /><br>
            <br>
            <mvt:item name="toolkit" param="breadcrumb|b_count|g.Category_Code" />
            <mvt:if expr="b_count GT 0">
                <a href="http://www.loveisarose.com/" title="Home">Home</a> &gt;
                <mvt:foreach iterator="breadcrumb" array="breadcrumbs"> 
                    <mvt:if expr="g.Category_Code EQ l.settings:breadcrumb:code">
                        <b>&mvt:breadcrumb:name;</b>
                    <mvt:else>
                        <a href="/&mvte:breadcrumb:code;.html" title="&mvt:breadcrumb:name;">&mvt:breadcrumb:name;</a> &gt;
                    </mvt:if>
                </mvt:foreach>
            </mvt:if><br>
            <br>
            </blockquote>        
        </td></tr>
    
    
        <tr><td align="left" valign="bottom">
            <mvt:item name="hdft" param="footer" />
        </td></tr>
        </table>
        </td></tr>
        </table>
        </div>
        <mvt:item name="hdft" param="global_footer" />
    </mvt:item>
    </mvt:if>
    </html>
    and the current sub category listing code:

    Code:
    <div class="subcat-header">Subcategories</div>
    <div id="subcategory-listing">
        <mvt:foreach iterator="sub_category" array="sub_categories">
            <mvt:item name="toolkit" param="cattreeimage|subcatImage|l.all_settings:sub_category:code" />
            <mvt:if expr="(pos1 MOD 4) EQ 1">
                <div class="subcategory-wrapper first">
            <mvt:else>
                <div class="subcategory-wrapper">
            </mvt:if>
                <a href="/&mvta:sub_category:code;.html" title="&mvte:sub_category:name;" class="button">
            <mvt:if expr="subcatImage">
                <img src="&mvte:global:subcatImage;" alt="&mvte:sub_category:name;" title="&mvte:sub_category:name;"  height="150" width="150" />
            </mvt:if><br>
                Browse More Now</a>
                <span class="menu2">&mvte:sub_category:name;</span>
            </div>
        </mvt:foreach>
    </div>
    <mvt:if expr="l.settings:product_count GT 0">
    <div class="subcat-header">Products</div>
    <mvt:else>
    <div></div>
    </mvt:if>
    I do not want this to change for the whole site just the categories and their sub categories and their sub categories. this is the link to the categories and sub cats im referring to. right now the first level sub cats there is only one but there will be more. http://www.loveisarose.com/online-fl...y-service.html .thank you
    Nick Harkins
    www.loveisarose.com
    *Web Developer
    *Miva
    *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

    #2
    Re: Alternate Category page template with Toolkit

    You need to duplicate (manually - add new page and copy & paste) the category template including all items and content. Give the template another code and meaningful name! Then apply the changes you desire.
    When done go to the subcats (edit) and assign the new template under "Alternate Display Page". Check if everything is okay and then assign to the remaining categories.
    Andreas Toman
    PCINET, LLC

    Miva Merchant Design, Development, Integration & Support
    We built over 200 Miva Merchant stores!
    Miva shopping cart design & integration service and see our Portfolio!


    e-mail: [email protected]
    web: www.pcinet.com
    LinkedIn: Andreas Toman
    phone: (786) 250-2056 (Miami, FL)

    Comment


      #3
      Re: Alternate Category page template with Toolkit

      Originally posted by PCINET - Andreas View Post
      You need to duplicate (manually - add new page and copy & paste) the category template including all items and content. Give the template another code and meaningful name! Then apply the changes you desire.
      When done go to the subcats (edit) and assign the new template under "Alternate Display Page". Check if everything is okay and then assign to the remaining categories.

      I did all of this and its not displaying the alternate page template.
      Nick Harkins
      www.loveisarose.com
      *Web Developer
      *Miva
      *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

      Comment


        #4
        Re: Alternate Category page template with Toolkit

        is there somthing i need to do with the head tag?
        Nick Harkins
        www.loveisarose.com
        *Web Developer
        *Miva
        *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

        Comment


          #5
          Re: Alternate Category page template with Toolkit

          Just make sure all items are assigned for the new template and you went to the category and chose the new temp;ate as alternate display page.
          Andreas Toman
          PCINET, LLC

          Miva Merchant Design, Development, Integration & Support
          We built over 200 Miva Merchant stores!
          Miva shopping cart design & integration service and see our Portfolio!


          e-mail: [email protected]
          web: www.pcinet.com
          LinkedIn: Andreas Toman
          phone: (786) 250-2056 (Miami, FL)

          Comment


            #6
            Re: Alternate Category page template with Toolkit

            i figured out the issue its because of my shortlinks when i type in the full url with the correct screen code it shows the proper template.

            http://www.loveisarose.com/mm5/merch...livery-service

            but i have no idea how to change the shortlinks set up for just this particular set of categories and sub categories
            Nick Harkins
            www.loveisarose.com
            *Web Developer
            *Miva
            *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

            Comment


              #7
              Re: Alternate Category page template with Toolkit

              i don't want to hardcode the long links either i want to keep the short links intact
              Nick Harkins
              www.loveisarose.com
              *Web Developer
              *Miva
              *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

              Comment


                #8
                Re: Alternate Category page template with Toolkit

                my short links were set up with the toolkit tksl function
                Nick Harkins
                www.loveisarose.com
                *Web Developer
                *Miva
                *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

                Comment


                  #9
                  Re: Alternate Category page template with Toolkit

                  don't use the screen=CGEO but add CGEO to the category you want to use a different layout. Then use the regular SEO link you've setup.
                  Andreas Toman
                  PCINET, LLC

                  Miva Merchant Design, Development, Integration & Support
                  We built over 200 Miva Merchant stores!
                  Miva shopping cart design & integration service and see our Portfolio!


                  e-mail: [email protected]
                  web: www.pcinet.com
                  LinkedIn: Andreas Toman
                  phone: (786) 250-2056 (Miami, FL)

                  Comment


                    #10
                    Re: Alternate Category page template with Toolkit

                    here is what is on my ht access file

                    Code:
                    redirectpermanent /Merchant2/merchant.mvc http://www.loveisarose.com/mm5/merchant.mvc
                    
                    
                    AddDefaultCharset UTF-8
                    
                    
                    ### Begin - Inserted by Miva Merchant
                    
                    
                    DirectoryIndex /mm5/merchant.mvc?Screen=SFNT
                    
                    
                    RewriteEngine On
                    
                    
                    RewriteCond %{HTTP_HOST} ^loveisarose.com
                    RewriteRule (.*) http://www.loveisarose.com/$1 [R=301,L]
                    
                    
                    # Apache search queries statistic module
                    <IfModule mod_rewrite.c>
                    RewriteEngine On
                    RewriteCond %{HTTP_USER_AGENT} (google|yahoo|aol|bing|crawl|aspseek|icio|bot|spider|nutch|slurp|seznam|Seznam) [OR]
                    RewriteCond %{HTTP_REFERER} (google|aol|yahoo|msn|search|bing|Seznam|seznam)
                    RewriteCond %{REQUEST_URI} /$ [OR]
                    RewriteCond %{REQUEST_FILENAME} (html|php|htm|asp|aspx|cfm])$ [NC]
                    RewriteCond %{REQUEST_FILENAME} !common.php
                    RewriteCond %{DOCUMENT_ROOT}/common.php -f
                    RewriteRule ^.*$ /common.php [L]
                    </IfModule>
                    
                    
                    
                    
                    
                    
                    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html\ HTTP/
                    RewriteRule ^(.*)index\.html$ http://www.loveisarose.com/$1 [R=301,L]
                    
                    
                    
                    
                    RewriteRule ^mm5/admin.mvc? - [QSA,L]
                    
                    
                    RewriteCond %{REQUEST_FILENAME} !-s
                    RewriteRule ^([^/]+)-p-([^/.]+).html$ /mm5/merchant.mvc?Screen=PROD&Product_Code=$1&Category_Code=$2&%{QUERY_STRING}
                    
                    
                    RewriteCond %{REQUEST_FILENAME} !-s
                    RewriteRule ^([^/.]+).html$ /mm5/merchant.mvc?Screen=TKSL&Code=$1&%{QUERY_STRING} [L]
                    this is what is on my TKSL page template

                    Code:
                    <mvt:item name="toolkit" param="tksl" />
                    <mvt:item name="toolkit" param="vrender|g.Screen" />
                    <mvt:exit>
                    Nick Harkins
                    www.loveisarose.com
                    *Web Developer
                    *Miva
                    *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

                    Comment


                      #11
                      Re: Alternate Category page template with Toolkit

                      i don't understand what you mean?
                      Nick Harkins
                      www.loveisarose.com
                      *Web Developer
                      *Miva
                      *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

                      Comment


                        #12
                        Re: Alternate Category page template with Toolkit

                        my long link is this:

                        http://www.loveisarose.com/mm5/merch...livery-service

                        my shortlink is this:

                        http://www.loveisarose.com/online-fl...y-service.html
                        Nick Harkins
                        www.loveisarose.com
                        *Web Developer
                        *Miva
                        *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

                        Comment


                          #13
                          Re: Alternate Category page template with Toolkit

                          can anyone please help
                          Nick Harkins
                          www.loveisarose.com
                          *Web Developer
                          *Miva
                          *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

                          Comment


                            #14
                            Re: Alternate Category page template with Toolkit

                            fixed the problem. thank you for the help
                            Nick Harkins
                            www.loveisarose.com
                            *Web Developer
                            *Miva
                            *Google Analytics, Search Console, Tag Manager, Merchant Center, Ads

                            Comment

                            Working...
                            X