ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Gift Certificates and Discount Codes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Gift Certificates and Discount Codes

 Post Reply Post Reply
Author
Message
whizzinpc View Drop Down
Newbie
Newbie
Avatar

Joined: 17-January-2006
Location: California
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote whizzinpc Quote  Post ReplyReply Direct Link To This Post Topic: Gift Certificates and Discount Codes
    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.
Back to Top
whizzinpc View Drop Down
Newbie
Newbie
Avatar

Joined: 17-January-2006
Location: California
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote whizzinpc Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.