Print Page | Close Window

Gift Certificates and Discount Codes

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=4407
Printed Date: 07-July-2024 at 7:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Gift Certificates and Discount Codes
Posted By: whizzinpc
Subject: Gift Certificates and Discount Codes
Date Posted: 07-April-2011 at 6:45pm
I found that In ProductCart v4 and above, customers can use an electronic coupon (discount code) and a Gift Certificate at the same time.
Is there a way to disable this? We don't want the customer the ability to use both. We don't sell gift certificates normally. This is a one time deal.



Replies:
Posted By: whizzinpc
Date Posted: 08-April-2011 at 4:38pm
I think I figured it out. Correct me if i'm wrong.
Line 1741 in opc_orderverify I changed the following.
BEFORE
if (clng(intPcSeparate)=0 and clng(intCodeCnt)>0 and clng(intPcAuto)=0) or (pDiscountShowCode<>"" and clng(intPcSeparate)=0 and clng(intPcAuto)=1) or (clng(pcv_HaveSeparateCode)=0 and pDiscountShowCode<>"") then

AFTER
if (clng(intPcSeparate)=0 and clng(intCodeCnt)>0 and clng(intPcAuto)=0) or (pDiscountShowCode<>"" and clng(intPcSeparate)=0 and clng(intPcAuto)=1) or (clng(pcv_HaveSeparateCode)=0 and pDiscountShowCode<>"") or (pTempGC<>"") then

I basically added or (pTempGC<>"")
It seems to be working fine.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net