Announcement

Collapse
No announcement yet.

Including/Excluding VAT when Loged IN.

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

    Including/Excluding VAT when Loged IN.

    Hi

    I hope there is an easy solution to this

    I can change the site/Product/Price Layout to Standard Tax Exclusive Price or Standard Inclusive Price.

    And all works as expected.

    But if I login. I always get Retail and Your Price Excluding VAT.

    Is there anyway to change this to Including VAT when Loged in.

    I see from a searching the the Forum, that VAT has been stuck on Including VAT on Login.

    I am hoping this is not another bug. But an operator error.

    Using latest version 8.5.1 HERA Multisite

    regards
    Sean

    PS anyone else had problems with Best seller/New product snippets mucking up display layout, when a login fails (ie bounce page script error)

    #2
    Sean,

    The price issue is set to be fixed in the next maintenance release.

    You can fix this however...

    Open 'ActinicOrder.pm' with an editor like notepad and search for the following line
    if ($::g_pSetupBlob->{TAX_INCLUSIVE_PRICES} && !$::g_pSetupBlob->{TAX_EXCLUSIVE_PRICES})
    Comment the line out by placing a '#' in front of it, so it reads
    #if ($::g_pSetupBlob->{TAX_INCLUSIVE_PRICES} && !$::g_pSetupBlob->{TAX_EXCLUSIVE_PRICES})
    Next,

    Look for and change the following bit of code:

    if ($::g_pSetupBlob->{TAX_INCLUSIVE_PRICES})
    {
    $sFormat = ACTINIC::GetPhrase(-1, 219); #
    'Including: %s'
    }
    else
    {
    $sFormat = ACTINIC::GetPhrase(-1, 67); #
    'Excluding: %s'
    }
    to:
    #if ($::g_pSetupBlob->{TAX_INCLUSIVE_PRICES})
    #{
    $sFormat = ACTINIC::GetPhrase(-1, 219); #
    'Including: %s'
    # }
    # else
    # {
    $sFormat = ACTINIC::GetPhrase(-1, 67); #
    'Excluding: %s'
    # }
    This means you have commented out the IF clause.

    Save the file and update the site. let us know how it goes. Please make adequate backup's before embarking on any changes.

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Cheers Bruce

      Worked, but I commented out else part as well. As GetPhrase(-1,67) is the Excluding VAT prompt.

      Sean

      Code:
      #if ($::g_pSetupBlob->{TAX_INCLUSIVE_PRICES})
       {
       $sFormat = ACTINIC::GetPhrase(-1, 219); # 'Including: %s'
       }
      # else
      # {
      # $sFormat = ACTINIC::GetPhrase(-1, 67); # 'Excluding: %s'
      # }
      I take it that Actinic runs Perl on client computer? to generate the required scripts/fils/cats.

      I assume that is why, a rewritten Perl file 'mf0000x.cgi' gets overwritten, if I have to refresh the website. see register for account on Login page. (www.greenpc.org) All most a checkout page in one for registering, unfortunately only a form using Actinic Checkout Perl Variables plus some extras.

      Is there anywhere to share Actinic Perl code or Actinic Layer code. I have not seen anywhere on Actinic sites for open code.

      Comment

      Working...
      X