View Cart|Wish List|Login|Register | Saturday, February 04, 2012
 
 Search   ..:: Support &
    Service
  Forum
::..
 
    Minimize
www.catalooksupport.com ::: another place for CATALooK.netStore support

    Minimize
SearchForum Home
     
  DotNetNuke  CATALooK.netStore  Problems with F...
 Problems with FeedBack
 
 9/23/2007 4:39:06 AM
jlperez
25 posts


Problems with FeedBack

The FeedBack has the following problem, when a vendor goes to the FeedBack tab, he see a list of his feedbacks, but he does not see the feedback details.
This is due to the control UserProfileControl, this control calcs the total of feedbacks if a property named ShowProfile is true, but this property is set to false in the method BindData() of the FeedBack tab...so the variable RatingsTotal will be 0 and the control shows - in the FeedbackDetails
In order to solve that you must change the source code, simply take the line

RatingsTotal = DataProvider.Instance.FeedBackGetCount(PortalId, -1, ProfileUserID, "AND CAT_Feedbacks.Approved = 1")

in the method Page_Load of the UserProfileControl

to out of the "If ShowProfile Then" section

 9/26/2007 7:52:21 PM
host
1831 posts
1st


Re: Problems with FeedBack
Thanks for this detailed explanation!
 10/8/2007 10:12:02 PM
host
1831 posts
1st


Re: Problems with FeedBack
 Modified By host  on 10/8/2007 10:12:22 PM)

Fixed in the v05.04.01, thanks!
Code is a little bit different from yours:

Dim objUser As UserInfo

objUser = UserController.GetUser(PortalId, ProfileUserID, False)

If Not objUser Is Nothing Then

Dim strTemplate As String

Dim RatingsTotal As Integer

Dim positivescore As Double = 0

Dim PositiveRatings As Integer = 0

If ShowProfile OrElse ShowFeedbackDetails Then

RatingsTotal = DataProvider.Instance.FeedBackGetCount(PortalId, -1, ProfileUserID, "AND CAT_Feedbacks.Approved = 1")

If RatingsTotal > 0 Then

PositiveRatings = DataProvider.Instance.FeedBackGetCount(PortalId, -1, ProfileUserID, "AND CAT_Feedbacks.Approved = 1 AND CAT_Feedbacks.Rating = 2")

If RatingsTotal > 0 AndAlso PositiveRatings > 0 Then

positivescore = PositiveRatings / RatingsTotal * 100

End If

End If

End If

'move to forms

If ShowProfile Then

...

  DotNetNuke  CATALooK.netStore  Problems with F...

    Minimize
www.excommerce.com ::: eXcommerce are a dedicated reseller of Catalook. If you want the features of catalook without the hassle of setup and maintenance and want some extra support options please check our services.
      

References / Live Stores | Forum | Trial Downloads | Resource Directory | Release History | Support Requests | Referral Program | Contact
CATALooK |  Terms Of Use |  Privacy Statement
Copyright 2002-2010 CATALooK