Some of our shipping rules have a flat rate of "0" for certain cart content criteria so the discount rule, in order to display "Free Shipping", will also be a "0" value which means that, like the Shipping, it's hidden from display on the page. What's the best way around this?
Also, I've replicated the shipping rules criteria as discount rules with titles such as "FREE STANDARD SHIPPING" etc, but these titles aren't displayed on the cart page.
We corrected this for the Shipping Rules, with Jason's help, by changing the shipping display section to be...
<?php
//WA eCart Merchandizing Show Start
//ecart="LEDCart"
if ($LEDCart->GetShipping() > 0) {
?>
<tr>
<td class="eC_SummaryLabel">Packaging & Delivery</td>
<td> </td>
</tr>
<?php
if (!$LEDCart->Rules_EOF("Shipping")) {
while (!$LEDCart->Rules_EOF("Shipping")) {
if ($LEDCart->RuleLooperValue("Shipping") > 0) {
?>
<tr valign="top">
<td class="eC_IndividualCharge"> <?php echo $LEDCart->RuleLooperName("Shipping"); ?><br>
<span class="sm"> You can change your delivery preferences at checkout.</span></td>
<td id="LEDCart_JSON_Display_Shipping_<?php echo($LEDCart->ShippingDisplayIndex); ?>"><?php echo WA_eCart_DisplayMoney($LEDCart, $LEDCart->RuleLooperValue("Shipping")); ?></td>
</tr>
<?php
}
$LEDCart->Rules_MoveNext("Shipping");
}
$LEDCart->Rules_MoveFirst("Shipping");
}
?>
<?php
//WA eCart Merchandizing Show End
//ecart="LEDCart"
}
?>
...is there a similar fix that will allow display of the discount rule title?
Thank you
NJ