one year ago
#8 Quote
To prevent custom values (payment transaction data) from appearing in your customer's receipts/invoices, find the Order Details View found in Presentation\Nop.Web\Views\Order\Details.cshtml and comment out the following code block:

                        @if (Model.CustomValues != null)
                        {
                            foreach (var item in Model.CustomValues)
                            {
                                <li class="custom-value">
                                    <span class="label">
                                        @item.Key:
                                    </span>
                                    <span class="value">
                                        @(item.Value != null ? item.Value.ToString() : "")
                                    </span>
                                </li>
                            }
                        }


so it looks like the following:

                        @*@if (Model.CustomValues != null)
                        {
                            foreach (var item in Model.CustomValues)
                            {
                                <li class="custom-value">
                                    <span class="label">
                                        @item.Key:
                                    </span>
                                    <span class="value">
                                        @(item.Value != null ? item.Value.ToString() : "")
                                    </span>
                                </li>
                            }
                        }*@



Save, then reset the cache (if necessary) to see the changes.
0