Display Related Product in Product Details view
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" />
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.
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.
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: localhost/.../Telerik.Web.UI.WebResource.axd
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.
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.
Hi,
Is there any way to display Recently viewed products in sitefinity 7.0.
Thanks
Praneeth
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