AddressDisplay

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 12 años
Hello, I am new to this forum and I started working on this wonderful project.
my question is:
I want to see the VAT in your billing address how? I added AddressDisplay.ascx.cs
if (String.IsNullOrEmpty (address.VatNumber))
                         this.lVatNumber.Text = Server.HTMLEncode (address.VatNumber);
                     else
                         this.lVatNumber.Visible = false;

and AddressDisplay.aspx
<asp:Panel ID="pnlCompany" runat="server">
                                     <asp:Literal ID="lCompany" runat="server"> </ asp: Literal>
                                     <asp:Literal ID="lVatNumber" runat="server"> </ asp: Literal> </ asp: Panel>
                                 <div>

but does not work not display company panel
Hace 12 años
problem solved but  not save vatnumber in detail Order after ceckout

thanks for the help
Hace 12 años
orbitando wrote:
problem solved but  not save vatnumber in detail Order after ceckout

thanks for the help


I changed in orderservice.cs and now it works

           
var customer = NopContext.Current.User;
            
order.VatNumber = CommonHelper.EnsureNotNull(customer.VatNumber);


is not elegant but it works
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.