+1-888-365-2779
Try Now
More in this section

Forums / Ecommerce / Display Related Product in Product Details view

Display Related Product in Product Details view

6 posts, 0 answered
  1. Nilesh Thakkar
    Nilesh Thakkar avatar
    19 posts
    Registered:
    28 Sep 2012
    28 Sep 2012
    Link to this post

    Hello,

    I'm using SiteFinity latest (trial) version.

    I followed every step mentioned here to show related products in product details view. It doesn't throw any error, but it doesn't display single product detail and related products. It seems nothing renders.

    In custom control it displays green underline below following code:

         <sfCommerce:ProductDynamicFields id="productDynamicFieldsControl" ProductItem='<%# Page.GetDataItem() %>' runat="server" />
      <sfCommerce:ProductOptionsControl id="productOptionsControl" ProductItem='<%# Page.GetDataItem() %>' runat="server" />
    <sfOrders:AddToCartWidget ID="addToCartWidget" ProductId='<%# Eval("Id") %>' runat="server" />
    When I build the solution, it works just fine. But when I hover mouse over code mentioned   above, it displays following message:

    This name contains uppercase characters which is not allowed. 

    Also it doesn't show element Tags in VS intellisense. Am I missing something?

    If I undo changes and let it have the default product detail view, it works and displays product detail. Any help would be appreciated.

  2. Patrick Dunn
    Patrick Dunn avatar
    237 posts
    Registered:
    03 Nov 2014
    29 Sep 2012
    Link to this post
    Hi,

     Which browser are you using to test this in? We recently came a cross a bug in the RadRotator when users follow the blog post using IE. The li element in the ItemTemplate of the rotator causes it not to display properly under IE. For your convenience here is a video detailing the problem and solution: http://screencast.com/t/bNMvUDldHo.

    All the best,
    Patrick Dunn
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Nilesh Thakkar
    Nilesh Thakkar avatar
    19 posts
    Registered:
    28 Sep 2012
    01 Oct 2012
    Link to this post

    Thanks Patrick for replying. It's not working in any browser.

    Actually after investigating a little bit, I found that it is throwing below error when checked in FF Developer Toolbar error console:

    Timestamp: 10/1/2012 10:53:21 AM
    Error: TypeError: $("a[rel=fancybox]").fancybox is not a function
    Source File: http://localhost/SiteFinityTest/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl12_TSM&compress=0&_TSM_CombinedScripts_=%3b%3bTelerik.Sitefinity.Ecommerce%2c+Version%3d5.1.3450.0%2c+Culture%3dneutral%2c+PublicKeyToken%3db28c218413bdf563%3aen%3a1d3cca8e-6a0b-4bf5-b27a-18a92a446128%3ad300eba2
    Line: 3

    On clicking that it revealed following code which causes the error:

    /* START Telerik.Sitefinity.Modules.Ecommerce.Catalog.Web.Scripts.ProductsDetailView.js */
    $(function () {
        $("a[rel=fancybox]").fancybox({ titleShow: false });
    });
      
    /* END Telerik.Sitefinity.Modules.Ecommerce.Catalog.Web.Scripts.ProductsDetailView.js */
    if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
    (function() {
        function loadHandler() {
            var hf = $get('ctl12_TSM');
            if (!hf) return;
            if (!hf._RSM_init) { hf._RSM_init = true; hf.value = ''; }
            hf.value += ';;Telerik.Sitefinity.Ecommerce, Version=5.1.3450.0, Culture=neutral, PublicKeyToken=b28c218413bdf563:en-US:1d3cca8e-6a0b-4bf5-b27a-18a92a446128:d300eba2';                                    
            Sys.Application.remove_load(loadHandler);
        };
        Sys.Application.add_load(loadHandler);
    })();

    As an alternative I just copied the code of ProductDetailView widget and pasted in my user control, still it throws the same error when I assign path of my usercontrol to templatepath property. Any help would be appreciated. 

  4. Nilesh Thakkar
    Nilesh Thakkar avatar
    19 posts
    Registered:
    28 Sep 2012
    01 Oct 2012
    Link to this post
    It is working if I put custom control in any directory in root. But it doesn't work and throws error as mentioned in above post if I put it inside theme. In my test project, I downloaded theme from SiteFinity Marketplace and created WidgetTemplate folder inside theme as mentioned in documentation.
  5. Praneeth
    Praneeth avatar
    26 posts
    Registered:
    22 Jun 2012
    26 Jul 2014
    Link to this post

    Hi, 

    Is there any way to display Recently viewed products in sitefinity 7.0.

    Thanks

    Praneeth

  6. Nikola Zagorchev
    Nikola Zagorchev avatar
    424 posts
    Registered:
    08 Dec 2016
    30 Jul 2014
    Link to this post
    Hi Praneeth,

    Currently, we do not track this kind of statistic, so by default you cannot execute a logic that could get the recently viewed products. You can get the last published or modified but you should add some custom implementation and logic in order to track and show the recently viewed products.

    Regards,
    Nikola Zagorchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
6 posts, 0 answered