hotcakes-commerce-core icon indicating copy to clipboard operation
hotcakes-commerce-core copied to clipboard

+ Add Order unable to Find Customers

Open james7342 opened this issue 3 years ago • 2 comments

Describe the bug

Dashboard/Order/ +Add Order. Unable to lookup customers. Using _default viewset with no customizations.

Software Versions

  • DNN: 9.11.2
  • Hotcakes: 3.6.0

To Reproduce

Steps to reproduce the behavior:

  1. Dashboard/Orders
    • Add Order
  2. On the Add Order page Click the option to Find Customer, Provide a Keyword, and press "Find Customers"
  3. Search for Customers will say "Found X Matching Customers"
  4. Even though it found customers nothing is displayed.

Expected behavior

Able to find Customers as noted in documentation https://hotcakescommerce.zendesk.com/hc/en-us/articles/210897423-Add-Order

Actual behavior

No customers are displayed.

Screenshots

screenshot_805

Error log

Note: Debug DLL's N/A

Paste the error log that is related to this issue.

Additional context

N/A

james7342 avatar Apr 11 '23 22:04 james7342

Thank you for reporting this issue. We'll attempt to reproduce the issue and respond here once we're done.

WillStrohl avatar Jul 12 '23 20:07 WillStrohl

@james7342 I was able to confirm the bug using the steps to reproduce posted in the issue description.

CC: @WillStrohl

ismaelTartola avatar Aug 11 '23 13:08 ismaelTartola

Hello @james7342 ... This may or may not have been fixed since this issue was originally reported. We are not able to reproduce this today. Do you have a specific example of user details that you were searching for and didn't find? This way, we can troubleshoot it again and find the root cause.

WillStrohl avatar Dec 09 '24 20:12 WillStrohl

@WillStrohl, I can still produce it. Either I'm miss understanding what the expected results are supposed to be or it's not working properly. What I'm expecting is if I search for a member and there is more then 1 match it should return a list and let me select the customer. If I search and there is only 1 result it will auto select that user and start to populate the order details, IE: First, Last, Email etc. But in this case using my name returned 6 results but there is no list or details provided listing the 6 customers it found.

Tested on Safari 18.1.1 and Chrome 131.0.6778.109. HC 3.8.2 DNN 9.13.6

screenshot_1955

james7342 avatar Dec 09 '24 23:12 james7342

Just looking at the code in /Hotcakes/Core/Admin/Orders/CreateOrder.aspx. It looks like a there is supposed to be a Gridview displayed with the results of the search. It's not displaying for me. <asp:GridView ShowHeader="false" ID="gridSelectUser" runat="server" PageSize="10" AutoGenerateColumns="False" AllowCustomPaging="True" AllowPaging="True" GridLines="None" OnEditCommand="gridSelectUser_RowEditing" DataKeyNames="Bvin" CssClass="hcGrid"> <RowStyle CssClass="hcGridRow" /> <AlternatingRowStyle CssClass="hcGridAltRow" /> <Columns> <asp:TemplateField> <ItemTemplate> <asp:Label ID="lblUsername" runat="server" Text='<%# Bind("Email") %>' /><br /> <span class="smalltext"> <asp:Label ID="lblFirstName" runat="server" Text='<%# Bind("FirstName") %>' /> <asp:Label ID="lblLastName" runat="server" Text='<%# Bind("LastName") %>' /> </span> </ItemTemplate> </asp:TemplateField> <asp:TemplateField> <ItemTemplate> <asp:LinkButton ID="SelectUserButton" runat="server" CausesValidation="false" CommandName="Edit" resourcekey="btnSelectCustomer"/> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView>

james7342 avatar Dec 09 '24 23:12 james7342

Just reviewed the pull request and thank you for this enhancement. Seems like the original issue was user error, but this enhancement will make it much more intuitive.

james7342 avatar Dec 17 '24 16:12 james7342