
Originally Posted by
mtechie501
While running test transactions I came across an anomaly that I believe I isolated to the Gift Wrapping module. I am using Zen Cart 139h and Gift Wrapping version 2.8_139. An error occurs when a customer uses gift certificate funds as part of the payment for a purchase. At the confirm payment step, the cart is not recognizing the gift wrap cost (including its tax) when specifically assessing the unpaid balance remaining after applying the gift certificate funds.
Example 1: I purchase an item for $10.00 and add gift wrapping for $5 for a total of $15. I will apply $12.00 from my gift certificate account funds toward this purchase, At the confirm payment step, ZenCart evaluates the purchase and appears to conclude that my payment is paid in full and sends me to the "Thank You" for your purchase page and records the completed purchase as paid by "Gift Certificate/Coupon." It does not pass the $3.00 unpaid balance on to my payment processor for billing purposes. The information ZenCart records in my customer account and in the Admin order record correctly shows there is an unpaid balance of $3.00 for this transaction and correctly deducted $12 from gift certificate account available balance - all of the details are accurate, however, I, the customer, did not get charged.
Example 2: Now if were to instead apply $9.99 of gift certificate funds to this same purchase thereby not covering $.01 of the item's $10.00 cost; when I confirm the purchase, ZenCart recognizes there is an unpaid balance and accurately passes $5.01 ($.01 product + $5 gift wrap) on to my payment processor (in my case PayPal) to be paid. This is why I conclude that ZenCart compares the gift funds to the item cost only and does not recognize gift wrapping costs in its evaluation.
(My examples here simplistic, I ran many test transactions with shipping costs, taxes, multiple products and so on before being able to determine this is where the problem appears to be.)
If I am correct, wherever this decision point occurs in ZenCart, the code needed to tell the program to include gift wrapping costs may have been overlooked in the module's programming. This is a minor issue for this excellent module. This type of transaction will likely occur very, very infrequently and the consequence is minor, i.e., all or part of the gift wrapping charge may not be recovered. We make heavy use of gift certificate awards to our customers and that is why I was testing and ran into the problem. Assuming I am correct, I thought it helpful to make the community aware of the potential problem and have it noted as something to fix with a future upgrade/release.
If I'm wrong, I'm back to square one and completely befuddled.