====== Hiding the Discount Code (only display the Discount Description) ======
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.
* Download the file //saveOrd.asp// from the //pc// folder
* Create a back-up
* Open it in Notepad or your favorite HTML editor
* Locate the following section:
if intDiscountArryCnt=0 then
pDiscountDetails=pDiscountDetails&pDiscountDesc & " ("&pTempDiscCode&") - || "& pTempDiscAmount
intDiscountArryCnt=intDiscountArryCnt+1
else
pDiscountDetails=pDiscountDetails&","&pDiscountDesc & " ("&pTempDiscCode&") - || "& pTempDiscAmount
intDiscountArryCnt=intDiscountArryCnt+1
end if
* You will need to remove the following section of the code:
("&pTempDiscCode&")
* So the code becomes:
if intDiscountArryCnt=0 then
pDiscountDetails=pDiscountDetails&pDiscountDesc & " - || "& pTempDiscAmount
intDiscountArryCnt=intDiscountArryCnt+1
else
pDiscountDetails=pDiscountDetails&","&pDiscountDesc & " - || "& pTempDiscAmount
intDiscountArryCnt=intDiscountArryCnt+1
end if
* Save the file and re-upload it to your storefront
* Place a test order using a discount code to confirm that the code change was successful