Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Changing gift certificate details

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-27-2013, 09:41 PM
 
nhicks nhicks is offline
 

Newbie
  
Join Date: Mar 2012
Posts: 4
 

Default 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
__________________
---

X-Cart Gold, 4.4.3
Reply With Quote
  #2  
Old 10-28-2013, 10:49 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default 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.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020