Print detail order issue

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
Hi,

1. nopCommerce version
4.00

2. Expected behavior
The print detail order button from order details should automatically open a print window according to your javascript code. This does not happen.
The code is:


@if (Model.PrintMode)
{
    <script type="text/javascript" asp-location="Footer">
        $(document).ready(function () {
            window.print();
        });
    </script>
}


3. Actual behavior
The print detail order page is displayed but the user has to manually print it. The javascript code is not in the page.

4. Steps to reproduce the problem

5. Any private modifications you made to your nopCommerce
To fix it temporarily, I removed in Presentation/Nop.Web/Views/Order/Details.cshtml asp-location="Footer" line 18.

Best Regards
5 years ago
Thanks a lot for reporting! Fixed
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.