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)
-   -   Add required field to checkout (https://forum.x-cart.com/showthread.php?t=8024)

Watersweb 06-09-2004 10:35 PM

Add required field to checkout
 
I want to add a field to the checkout form that would require my customers to tell me what domain they wish to use my products on. How can I do this?

Thank you!

x-cart 3.4.12

BCSE 06-10-2004 04:20 AM

You can do this on a per product basis if that applies better. Use the product options and do a product validation that makes it required to fill in. Something like this may do what you want it to:

Code:

if (product_option('Domain').value == '') {
alert('Domain must be specified before adding to cart.');
return false;
}


HTH!

Carrie


All times are GMT -8. The time now is 11:18 AM.

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