Announcement

Collapse
No announcement yet.

Breadcrumb trail on duplicate product not correct

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

    Breadcrumb trail on duplicate product not correct

    Hi,

    Is the breadcrumb trail on a duplicate product (SSP set-up) meant to show you the 'section' name where the mater product is?

    If you have a look here http://www.abcbabygifts.co.uk/acatal...fts-girls.html click on the first gift basket and the breadcrumb trail shows 'Baby Gift Baskets & Hampers' in the breadcrumb trail, this is where the master to this product is. Is this correct?

    Les
    Regards,

    Les


    Abc Baby Gifts
    Snuggle Feet
    Baby Casting From My Perfect Impression

    #2
    Lee,
    this was covered in a previous post on here. By default V11 only shows the "<back" link instead of a breadcrumb trail for the Product Page, because of this very issue.
    The post I'm referring to had some code to implement a Breadcrumb trail (as it appears you have done) but it suffers from the problem you have highlighted.
    We did do a kind of work around which can offset the main problem and give your users a slightly better breadcrumb trail, but it's not 100% cast iron fix.
    Fergus Weir - teclan ltd
    Ecommerce Digital Marketing

    SellerDeck Responsive Web Design

    SellerDeck Hosting
    SellerDeck Digital Marketing

    Comment


      #3
      Found it.

      http://community.actinic.com/showthread.php?t=52103
      Fergus Weir - teclan ltd
      Ecommerce Digital Marketing

      SellerDeck Responsive Web Design

      SellerDeck Hosting
      SellerDeck Digital Marketing

      Comment


        #4
        Hi Fergus,

        I did see and read your post a few days ago. Can you let me have the work-around code?
        Regards,

        Les


        Abc Baby Gifts
        Snuggle Feet
        Baby Casting From My Perfect Impression

        Comment


          #5
          Hi Fergus,

          Do you remember what you did for the work-around here:

          http://community.actinic.com/showthread.php?t=52103
          Regards,

          Les


          Abc Baby Gifts
          Snuggle Feet
          Baby Casting From My Perfect Impression

          Comment


            #6
            Lee,
            If I recall, from the demo site, it required an amendment to the ShowBackLink function in the actinicextras.js file:

            Code:
            /*********************************************************************** * 
            * ShowBackLink - Display the back link for SPP pages 
            * 
            ************************************************************************/ 
             
            function ShowBackLink() 
                { 
                var sLastSection = getCookie('LAST_SECTION_URL');    // get last section page URL 
                var sLastSectionName = getCookie('LAST_SECTION_NAME'); //get last section page name 
                if (!sLastSection) 
                    { 
                    return; 
                    } 
             
                 
                var breadcrumb_link = document.getElementById('breadcrumb_path');                 
                if (breadcrumb_link) { 
                         breadcrumb_link.innerHTML = '<a href="' + sLastSection +  '" target="_self" class="link_breadcrumbs">' + sLastSectionName +  '</a>'; 
                    } 
                     
                var elemBackLink = document.getElementById('idSPPBackLink');            // get the back link 
                if (!elemBackLink) 
                    { 
                    return; 
                    } 
                    else { 
                    elemBackLink.href = sLastSection;                        // set the url                         
                    elemBackLink.style.display = ''; 
                    } 
                }
            It also required a change to the header javascript functions as well:

            HTML Code:
                <script type="text/javascript">
                        setCookie('LAST_SECTION_URL', document.location.href);
                        setCookie('LAST_SECTION_NAME','<actinic:variable encoding="actinic" name="SectionName" selectable="false" />');
                    </script>
            Then the breadcrumb layout on the SPP was :

            HTML Code:
            <a href="<actinic:variable name="TopSectionPageURL" />" target="_self"><actinic:variable name="StoreName" /></a>
            &nbsp;|&nbsp;
            <span id="breadcrumb_path">
            <actinic:block type="ParentSectionList" >
                <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self" class="link_breadcrumbs"><actinic:variable name="SectionName"/></a>
            </actinic:block>
            </span>
            You can see the source code of the demo site for more of a reference.
            Fergus Weir - teclan ltd
            Ecommerce Digital Marketing

            SellerDeck Responsive Web Design

            SellerDeck Hosting
            SellerDeck Digital Marketing

            Comment

            Working...
            X