In order to provide more information on which discount code (electronic coupon) was used in a certain order, ProductCart v3.5 and above by default saves to the database and displays both the discount description (e.g. “Sprint Special”) and discount code used to redeem the discount (e.g. “spring09”).
Some store owners may not like to see the discount code shown on the order details pages displayed to the customer. For example, a ProductCart user has coupons that are only used by store employees to provide special discounts on phone orders. Let's say they have created a coupon/discount code “POF25” with a description of “25% Store Discount”. The order e-mail confirmation and all other order-related pages will display “Discount/Coupon: 25% Store Discount (POF25)”. This will render the discount code visible to the customer. The store may not wish the customer to see or to apply the store discount on their own in future orders.
The fix is easy and Early Impact was nice enough to help us to accomplish this change. Below is the instructions they have given to us.
if intDiscountArryCnt=0 then
pDiscountDetails=pDiscountDetails&pDiscountDesc & " ("&pTempDiscCode&") - || "& pTempDiscAmount
intDiscountArryCnt=intDiscountArryCnt+1
else
pDiscountDetails=pDiscountDetails&","&pDiscountDesc & " ("&pTempDiscCode&") - || "& pTempDiscAmount
intDiscountArryCnt=intDiscountArryCnt+1
end if
("&pTempDiscCode&")
if intDiscountArryCnt=0 then pDiscountDetails=pDiscountDetails&pDiscountDesc & " - || "& pTempDiscAmount intDiscountArryCnt=intDiscountArryCnt+1 else pDiscountDetails=pDiscountDetails&","&pDiscountDesc & " - || "& pTempDiscAmount intDiscountArryCnt=intDiscountArryCnt+1 end if