Print Page | Close Window

Make shipemail not required during checkout

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=4440
Printed Date: 13-July-2025 at 12:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Make shipemail not required during checkout
Posted By: roknrod12
Subject: Make shipemail not required during checkout
Date 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



Replies:
Posted By: Greg Dinger
Date 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 %> 


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: roknrod12
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net