If you have products on specials and you want to prevent coupons from being applied to them; here is code snippet you can add to checkout_payment.tpl.php. The code looks for products under specials and prevent the vouchers/coupons textbox from being displayed. If there are products that are not in specials in shopping cart, vouchers/coupons textbox will be displayed.
<?php
$products_array = $cart->get_products();
$xc_count=0;
for($ii=0; $ii<count($products_array); $ii++)
{
if(strlen(tep_get_products_special_price( $products_array[$ii]['id']))<=0 )
$xc_count=$xc_count+1;
}
if($xc_count>0)echo $order_total_modules->credit_selection();
?>

Recent Comments