Announcement

Collapse
No announcement yet.

Search Results with Price inc VAT??

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

    Search Results with Price inc VAT??

    At the moment any search on my site shows prices excluding vat. I would like to show something like the following:

    Product 1 £17.01 ex Vat - £19.99 Including Vat
    Is there an easy way of doing this?

    Now I know I have to edit Act_ResultsTemplate.html, but not too sure what value needs to be added. This is what I currently have:

    <Actinic:S_LINK/><B><Actinic:S_PNAME/></B></A> <Actinic:S_SNAME/> <Actinic:S_PRICE/>

    I'm guessing there is another *_PRICE value, where * = somthing other than S. Any help / pointers in the right direction would be great.
    __________________
    Cheers ,
    Goders

    Software-1st
    http://www.software-1st.co.uk

    #2
    Hi there,

    I am checking this whether this is possible and will keep you posted.
    [FONT=Verdana][COLOR=Navy]
    Regards,
    Karthik

    Comment


      #3
      Thank you Karthik!
      __________________
      Cheers ,
      Goders

      Software-1st
      http://www.software-1st.co.uk

      Comment


        #4
        Hi there,

        You may have to edit the 'SearchScript.pl', Please folllow the steps below.

        1) Open 'SearchScript.pl' in your site1 folder.

        2) Search for 'S_PRICE', you will see...

        if ($$::g_pSearchSetup{SEARCH_SHOW_PRICE} &&
        $$::g_pSetupBlob{PRICES_DISPLAYED} &&
        $Product{PRICE} != 0)
        {
        ($status, $sError, $sTemp) =
        ActinicOrder::FormatPrice($Product{PRICE}, $::TRUE, $::g_pCatalogBlob); if
        ($status != $::SUCCESS) {
        ACTINIC::CleanupIndex($rFile);
        return($status, $sError);
        }
        }
        $ACTINIC::B2B->SetXML('S_PRICE', $sTemp);



        3) Replace it with

        if ($$::g_pSearchSetup{SEARCH_SHOW_PRICE} &&
        $$::g_pSetupBlob{PRICES_DISPLAYED} &&
        $Product{PRICE} != 0)
        {
        ($status, $sError, $sTemp) =
        ActinicOrder::FormatPrice($Product{PRICE}, $::TRUE, $::g_pCatalogBlob); if
        ($status != $::SUCCESS) {
        ACTINIC::CleanupIndex($rFile);
        return($status, $sError);
        }
        if ($Product{PRICE})
        {
        my $sTemp1;
        my $nTaxPrice = ActinicOrder::RoundTax($Product{PRICE} *
        1.175, $ActinicOrder::SCIENTIFIC_NORMAL); ($status, $sError,
        $sTemp1) = ActinicOrder::FormatPrice($nTaxPrice, $::TRUE,
        $::g_pCatalogBlob); if ($status == $::SUCCESS)
        {
        $sTemp .= " Excluding VAT (" . $sTemp1 . "
        Including VAT)" }
        }
        }
        $ACTINIC::B2B->SetXML('S_PRICE', $sTemp);

        4) Save and update the website to see the changes.
        [FONT=Verdana][COLOR=Navy]
        Regards,
        Karthik

        Comment


          #5
          Hi karthik

          Many thanks that has worked a treat.

          Thank you very much!!
          __________________
          Cheers ,
          Goders

          Software-1st
          http://www.software-1st.co.uk

          Comment

          Working...
          X