Hello,
Thanks for the tips. I think this is what I need to make sure the tax does not show up in my cart until a shipping address is provided:
<?php if (empty($this->cart->BT)){ ?> What you put here will be shown when NO billing address is completed<?php }?>
I have already setup a template override, but where in default_pricelist.php does this code go?
if you are not familiar with php.
You should do the 2nd suggestion
all you have to do is add this
<?php if (empty($this->cart->BT)){ $rule=Null;}?>
after this
<?php foreach($this->cart->cartData['taxRulesBill'] as $rule){ ?>
See example below
<?php foreach($this->cart->cartData['taxRulesBill'] as $rule){ ?>
<?php if (empty($this->cart->BT)){ $rule=Null;}?>
<tr class="sectiontableentry<?php $i ?>">
<td colspan="4" align="right"><?php echo $rule['calc_name'] ?> </td>
<?php if ( VmConfig::get('show_tax')) { ?>
<td align="right"><?php echo $this->currencyDisplay->createPriceDiv($rule['virtuemart_calc_id'].'Diff','', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'].'Diff'],false); ?> </td>
<?php } ?>
<td align="right"><?php ?> </td>
<td align="right"><?php echo $this->currencyDisplay->createPriceDiv($rule['virtuemart_calc_id'].'Diff','', $this->cart->pricesUnformatted[$rule['virtuemart_calc_id'].'Diff'],false); ?> </td>
</tr>
<?php
if($i) $i=1; else $i=0;
}
?>
This code <?php if (empty($this->cart->BT)){ $rule=Null;}?> sets the rule to Null if the billing is not filled in