X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Changing gift certificate details (https://forum.x-cart.com/showthread.php?t=68031)

nhicks 10-27-2013 09:41 PM

Changing gift certificate details
 
Heya everyone.

I have the Special Offers enabled so customers can accumulate points and convert them to a gift certificate. However, our program is set up so that everyone will be converting gift certificates for themselves, so I don't want the "to," "from," or "message" details on the conversion page; all I want is the "choose an amount" and "email address."

I tried to go the most direct route and I commented out the table rows for those sections on bonuses_points2gc.tpl, and I also commented out the recipient.value section on bonuses_points2gc.js. So now the page shows exactly what I want (amount and email), but unfortunately, when I do a test run with it, all I get is the error, "Please fill in all the required fields."

Does anyone know where I can go to edit the required gift certificate details? I looked at the gift certificate module and didn't see an area where I can un-require them, and it doesn't seem like giftcert.tpl has anything to do with this particular module.

Thanks,
Nicole

totaltec 10-28-2013 10:49 AM

Re: Changing gift certificate details
 
Look in skin/common_files/modules/Gift_Certificates/func.js I looked in a different version of XC than yours, hopefully you have the same file. I don't see input being validated in PHP, but I do see a function checking for input in the JavaScript.


All times are GMT -8. The time now is 11:37 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.