On yur cart page, the code to display the shipping will look like:
<?php
if (!$eCart1->Rules_EOF("Shipping")) {
while (!$eCart1->Rules_EOF("Shipping")) {
if ($eCart1->RuleLooperValue("Shipping") > 0) {
?>
<tr>
<td class="eC_IndividualCharge"><?php echo $eCart1->RuleLooperName("Shipping"); ?></td>
<td><?php echo WA_eCart_DisplayMoney($eCart1, $eCart1->RuleLooperValue("Shipping")); ?></td>
</tr>
<?php
}
$eCart1->Rules_MoveNext("Shipping");
}
$eCart1->Rules_MoveFirst("Shipping");
}
?>
You can add an if statement to this :
<?php if($eCart1->RuleLooperName("Shipping") != "RuleName") {; ?>
so the charge will only display if the name does not equal a certain value:
<?php
if (!$eCart1->Rules_EOF("Shipping")) {
while (!$eCart1->Rules_EOF("Shipping")) {
if ($eCart1->RuleLooperValue("Shipping") > 0) {
?>
<?php if($eCart1->RuleLooperName("Shipping") != "RuleName") {; ?><tr>
<td class="eC_IndividualCharge"><?php echo $eCart1->RuleLooperName("Shipping"); ?></td>
<td><?php echo WA_eCart_DisplayMoney($eCart1, $eCart1->RuleLooperValue("Shipping")); ?></td>
</tr><?php } ?>
<?php
}
$eCart1->Rules_MoveNext("Shipping");
}
$eCart1->Rules_MoveFirst("Shipping");
}
?>
We do get some spam in the forums from time to time, we remove it as soon as possible.