In xcart 4 the dscount coupon will discount all products. But in some cases you want to stop it discounting some products and not be part of the offer. This can be done using the following instructions.
//edit the file /include/func/func.cart.php
//in the function look for the multiple lines that contain
if (
!empty($active_modules['Special_Offers'])
&& func_sp_is_discount_unavail($product)
) {
continue;
}
//then add the following before it
if (
!empty($active_modules['Discount_Coupons'])
&& $product['discount_avail'] != 'Y'
) {
continue;
}If you want to display a visual indicator to the customer in the cart and checkout summary you can use the following in the two files
/skin/{skin folder}/customer/main/cart.tpl
/skin/{skin folder}/modules/One_Page_Checkout/summary/cart_contents.tpl
{if $active_modules.Discount_Coupons && $product.discount_avail ne 'Y' && $cart.coupon_discount ne 0}
<span class="label label-info">
Not part of Discount offer
</span>
{/if}