Announcement

Collapse
No announcement yet.

Recently viewed - doesn't work online

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

    Recently viewed - doesn't work online

    Hi,

    I'm testing a new design here:

    http://www.fastnet.biz/acatalog/BABY...ET_-_BOYS.html

    Recently Viewed works locally in IE8 and Firefox and also on Actinic preview but not online.

    If I view on IE7 online I get a Javascript error.

    Can anyone help?
    Regards,

    Les


    Abc Baby Gifts
    Snuggle Feet
    Baby Casting From My Perfect Impression

    #2
    The javascript generated by Actinic

    Code:
    	<script type="text/javascript">
    		SaveRecentProduct('1!SN3810-pink', 'BABY&#39;S FIRST BEAR &#45; PINK', '
    Parse error: parse error in main on line 1
    ', 'baby1stbear-pink-300.jpg');
    	</script>
    Has a "Parse Error" in it. This looks like it's being generated by Actinic into the HTML before it's uploaded.
    I'd check where this script code is created in Actinic to see what could be causing the parse error.
    Fergus Weir - teclan ltd
    Ecommerce Digital Marketing

    SellerDeck Responsive Web Design

    SellerDeck Hosting
    SellerDeck Digital Marketing

    Comment


      #3
      Thanks for your reply.

      I think it comes from the 'Save recent' layout. I haven't changed it so I'm not sure what I'm looking for.

      Why does it all work locally viewed and not online?
      Regards,

      Les


      Abc Baby Gifts
      Snuggle Feet
      Baby Casting From My Perfect Impression

      Comment


        #4
        Les,

        Compare the contents of your "Save Recent Product Details - Product Image" layout with the following:

        Code:
        <actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductVisible%22%20%2f%3e%20%26%26%20%28%3cactinic%3avariable%20name%3d%22ProductImageFileName%22%20%2f%3e%20%21%3d%20%22%22%29" >
            <script type="text/javascript">
                SaveRecentProduct('<actinic:variable name="ProductID" encoding="perl" selectable="false" />', '<actinic:variable name="ProductName" selectable="false" />', '<actinic:block php="true" >echo trim('<actinic:block type="PriceList"><actinic:block if="%3cactinic%3avariable%20name%3d%22ListIndex%22%20%2f%3e%20%3d%3d%201"><actinic:block if="%3cactinic%3avariable%20name%3d%22RecentProductsShowIncTax%22%20%2f%3e"><actinic:variable name="PreFormattedPrice" value="Product Price Including Tax" /></actinic:block><actinic:block if="%21%20%3cactinic%3avariable%20name%3d%22RecentProductsShowIncTax%22%20%2f%3e" ><actinic:variable name="PreFormattedPrice" value="Product Price Excluding Tax" /></actinic:block></actinic:block></actinic:block>');</actinic:block>', '<actinic:block php="true" encoding="perl" selectable="false">echo str_replace('\\', '/', '<actinic:variable encoding="perl" name="ProductImageFileName" selectable="false" />');</actinic:block>');
            </script>
        </actinic:block>
        It's definitely a PHP error on the 3rd parameter in the SaveRecentProduct method. This is where the price is added to the methods parameter list. Perhaps there is something not quite right there. A revert ot factory default may work on this layout - if not then there may be some other buglet in play here.
        As to why it's working offline but not online? Does it show "inside" Actinic's preview AND when you do a separate offline preview? I think the issue is when Actinic is generating your product pages at that point.....
        Fergus Weir - teclan ltd
        Ecommerce Digital Marketing

        SellerDeck Responsive Web Design

        SellerDeck Hosting
        SellerDeck Digital Marketing

        Comment


          #5
          Hi Fergus,

          Thanks for your help. It was the 'product price layout' where the problem was. I did a revert and it's fixed.
          Regards,

          Les


          Abc Baby Gifts
          Snuggle Feet
          Baby Casting From My Perfect Impression

          Comment

          Working...
          X