Would like some (probably advanced) help on this one .
Would really like to have correct price showing on the facebook updates (where price does not include VAT).
My previous attempt to fix this works okay if and when the price does include VAT. see two posts up.
Have been looking through other mods I have implemented and found this calc for colloecting Info on price it's form /admin/includes/modules/product/collect_info.php
Code:
<script language="javascript" type="text/javascript"><!--
var tax_rates = new Array();
<?php
for ($i=0, $n=sizeof($tax_class_array); $i<$n; $i++) {
if ($tax_class_array[$i]['id'] > 0) {
echo 'tax_rates["' . $tax_class_array[$i]['id'] . '"] = ' . zen_get_tax_rate_value($tax_class_array[$i]['id']) . ';' . "\n";
}
}
?>
function doRound(x, places) {
return Math.round(x * Math.pow(10, places)) / Math.pow(10, places);
}
function getTaxRate() {
var selected_value = document.forms["new_product"].products_tax_class_id.selectedIndex;
var parameterVal = document.forms["new_product"].products_tax_class_id[selected_value].value;
if ( (parameterVal > 0) && (tax_rates[parameterVal] > 0) ) {
return tax_rates[parameterVal];
} else {
return 0;
}
}
function updateGross() {
var taxRate = getTaxRate();
var grossValue = document.forms["new_product"].products_price.value;
if (taxRate > 0) {
grossValue = grossValue * ((taxRate / 100) + 1);
}
document.forms["new_product"].products_price_gross.value = doRound(grossValue, 4);
}
function updateNet() {
var taxRate = getTaxRate();
var netValue = document.forms["new_product"].products_price_gross.value;
if (taxRate > 0) {
netValue = netValue / ((taxRate / 100) + 1);
}
document.forms["new_product"].products_price.value = doRound(netValue, 4);
}
//--></script>
It would I think (truth is I don't really know a lot about coding) solve the issue of tax/vat showing or not showing as required.
Are there any proper coders reading this thread any more?
Is there a way to transfer tis to the Autofacebook module?
Would it need converted into a php function and can someone do this?
Am I asking to much? 
Please Jamie I need your input.