AddressDisplay

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 12 ans
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
Il y a 12 ans
problem solved but  not save vatnumber in detail Order after ceckout

thanks for the help
Il y a 12 ans
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.