![]() |
Make shipemail not required during checkout |
Post Reply ![]() |
Author | |
roknrod12 ![]() Newbie ![]() Joined: 31-July-2007 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Greg Dinger ![]() Certified ProductCart Developers ![]() ![]() Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
![]() ![]() ![]() ![]() ![]() |
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 %> |
|
![]() |
|
roknrod12 ![]() Newbie ![]() Joined: 31-July-2007 Status: Offline Points: 5 |
![]() ![]() ![]() ![]() ![]() |
Thanks, Greg. I meant to post back here that I actually found it, with the help of EI tech support. I changed mine to:
Let me know if you see any problems or security flaws with doing it this way, and thank you for the post. Thanks, rh |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |