ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Make shipemail not required during checkout
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Make shipemail not required during checkout

 Post Reply Post Reply
Author
Message
roknrod12 View Drop Down
Newbie
Newbie


Joined: 31-July-2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote roknrod12 Quote  Post ReplyReply Direct Link To This Post Topic: Make shipemail not required during checkout
    Posted: 27-April-2011 at 11:47am
Can anyone tell me how to make the input field under Shipping Information for shipemail not a required field?

Thanks,
rh
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 29-April-2011 at 5:13pm
onepagecheckout.js contains the following logic which must be removed or commented out.  In this case we used ASP logic to hide it.
 
 
<% if "gbdghide" <> "gbdghide" then %>
   shipemail: {
    required: function(element)
    { return (($("input[name='ShipArrOpts']:checked").val()!="-1") && ($("input[name='ShipArrOpts']:checked").val()!="-2"))},
    email: true
   }
<% end if %> 
Back to Top
roknrod12 View Drop Down
Newbie
Newbie


Joined: 31-July-2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote roknrod12 Quote  Post ReplyReply Direct Link To This Post Posted: 29-April-2011 at 5:20pm
Thanks, Greg.  I meant to post back here that I actually found it, with the help of EI tech support.  I changed mine to:


shipemail: {
    required: false,
    email: true
   }


Let me know if you see any problems or security flaws with doing it this way, and thank you for the post.

Thanks,
rh
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.059 seconds.