Announcement

Collapse
No announcement yet.

Show VAT number in EU customer mail

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Show VAT number in EU customer mail

    I thought this had been covered before, but my searches turned up nothing.

    Can I show the content of (is it EXEMPT1DATA?) the customer input VAT number in the customer email?
    Bill
    www.egyptianwonders.co.uk
    Text directoryWorldwide Actinic(TM) shops
    BC Ness Solutions Support services, custom software
    Registered Microsoft™ Partner (ISV)
    VoIP UK: 0131 208 0605
    Located: Alexandria, EGYPT

    #2
    Hi Bill,

    Glad I can help you for a change ;-)

    Edit Act_CustomerEmail.txt
    Insert the following on it's own line before <Actinic:CART/>

    <Actinic:EXEMPT1/>
    <Actinic:EXEMPT2/>

    Save and Exit.

    Edit OrderScript.pl
    Search for "# Print the company contact"
    Insert the following line before the comments

    if ($::g_TaxInfo{EXEMPT1})
    {
    $ACTINIC::B2B->SetXML('EXEMPT1', "Tax 1 exemption " .
    $::g_TaxInfo{EXEMPT1});
    }
    else
    {
    $ACTINIC::B2B->SetXML('EXEMPT1', "");
    }
    if ($::g_TaxInfo{EXEMPT2})
    {
    $ACTINIC::B2B->SetXML('EXEMPT2', "Tax 2 exemption " .
    $::g_TaxInfo{EXEMPT2});
    }
    else
    {
    $ACTINIC::B2B->SetXML('EXEMPT2', "");
    }

    Save and exit.
    Update site.

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Thanks Bruce,

      functional but not pretty...

      It shows in the email but description is Tax 1 exemption rather than picking up the tax name and printing out as VAT exemption (or TVA or GST).

      Still, it meets the spec

      Thanks again,
      Bill
      www.egyptianwonders.co.uk
      Text directoryWorldwide Actinic(TM) shops
      BC Ness Solutions Support services, custom software
      Registered Microsoft™ Partner (ISV)
      VoIP UK: 0131 208 0605
      Located: Alexandria, EGYPT

      Comment


        #4
        I was wrong - it is not showing - I get Tax 1 Exemption 1 running into the Phone number....

        Just going to run through the changes again.

        Does it make a difference that this is v7.0.4?
        Bill
        www.egyptianwonders.co.uk
        Text directoryWorldwide Actinic(TM) shops
        BC Ness Solutions Support services, custom software
        Registered Microsoft™ Partner (ISV)
        VoIP UK: 0131 208 0605
        Located: Alexandria, EGYPT

        Comment


          #5
          Does it make a difference that this is v7.0.4?
          Should not make a difference.

          Kind regards,
          Bruce King
          SellerDeck

          Comment


            #6
            You can replace "Tax 1 exemption " with the correct Tax Value so that it shows, the display is coming from here.

            Kind regards,
            Bruce King
            SellerDeck

            Comment


              #7
              Just spoke to support. I may not have been clear in my requirements...

              If a buyer in Germany enters DE123456778 in the VAT number here box, we want the email to show

              Name
              Address
              Phone

              VAT exempt
              DE123456778

              support are on it.
              Bill
              www.egyptianwonders.co.uk
              Text directoryWorldwide Actinic(TM) shops
              BC Ness Solutions Support services, custom software
              Registered Microsoft™ Partner (ISV)
              VoIP UK: 0131 208 0605
              Located: Alexandria, EGYPT

              Comment


                #8
                I've almost got it.

                Change the code to
                Code:
                	if ($::g_TaxInfo{EXEMPT1})
                		{
                		$ACTINIC::B2B->SetXML('EXEMPT1', "VAT exempt " . $::g_TaxInfo{EXEMPT1DATA});
                		}
                	else
                		{
                		$ACTINIC::B2B->SetXML('EXEMPT1', "");
                		}
                	if ($::g_TaxInfo{EXEMPT2})
                		{
                		$ACTINIC::B2B->SetXML('EXEMPT2', "Tax 2 exempt " . $::g_TaxInfo{EXEMPT2DATA});
                		}
                	else
                		{
                		$ACTINIC::B2B->SetXML('EXEMPT2', "");
                		}
                and it prints the correct data - just runs the VAT number into the Telephone number - now I just need a line feed - is that \n?
                Bill
                www.egyptianwonders.co.uk
                Text directoryWorldwide Actinic(TM) shops
                BC Ness Solutions Support services, custom software
                Registered Microsoft™ Partner (ISV)
                VoIP UK: 0131 208 0605
                Located: Alexandria, EGYPT

                Comment


                  #9
                  Solved - my hack on the perl combined with moving the <Actinic:EXEMPT1/>
                  <Actinic:EXEMPT2/> into the body of Act_CustomerEmail.txt (between COUNTRY - SEP and PHONE.

                  gives us

                  Belgium
                  VAT exempt BE4466557788
                  0123 456 789

                  Success. Many Thanks to Robert.
                  Bill
                  www.egyptianwonders.co.uk
                  Text directoryWorldwide Actinic(TM) shops
                  BC Ness Solutions Support services, custom software
                  Registered Microsoft™ Partner (ISV)
                  VoIP UK: 0131 208 0605
                  Located: Alexandria, EGYPT

                  Comment

                  Working...
                  X