View Full Version : Search Results with Price inc VAT??
Goders
20-Apr-2006, 03:38 PM
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.
karthik
24-Apr-2006, 03:55 PM
Hi there,
I am checking this whether this is possible and will keep you posted.
Goders
24-Apr-2006, 06:06 PM
Thank you Karthik!
karthik
25-Apr-2006, 12:51 PM
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.
Goders
25-Apr-2006, 06:20 PM
Hi karthik
Many thanks that has worked a treat.
Thank you very much!!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.