Custom Checkout filed...required

General ShopSite user discussion

Custom Checkout filed...required

Postby Mitchel » Wed Nov 05, 2008 6:52 pm

Hi:

I followed the example on this page:

Store Policy Checkbox

http://www.shopsite.com/help/9.0/en-US/ ... mples.html

and I made sure the Req. option is checked but it does not seem to be mandatory when I test the page. To test I left all the fields blank and just clicked on the "Submit This Order" button and I expected to see the required field in the popup warning?

Help.

Mitch
Mitchel
 
Posts: 4
Joined: Fri Jul 18, 2008 7:27 am

Postby Jim » Wed Nov 05, 2008 7:24 pm

Works for me.

I copied the exact code from the help page pasted it into the bottom field on Commerce Setup > Order System > Checkout,

Checked the box "Display Custom Checkout Fields"
Entered "Required to checkout" in the "Text Name" field
Checked the "Req"
Saved changes

Went to the store and put an item in the cart and chose COD for the Payment type.
On billing screen I filled in the billing and shipping info and clicked on Finalize this order.

An error box appeared near the top of the screen with "Please specify a valid value for the
Required to checkout "

I wasn't able to proceed without checking the box.

Try it yourself at :
http://eval.shopsite.com/ssdemos/ver100 ... cials.html

Backoffice login for store is:
http://eval.shopsite.com/cgi-bin/ssdemo ... /start.cgi

User name: alsdemo8
Password: jim

Note the store will only be available for a couple of days so if you are reading this post after Nov 12, 2008 the link won't work.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby Mitchel » Thu Nov 06, 2008 7:36 am

Awesome...worked perfectly! I did not realize that the message would popup after all the other fields were filled in and the user clicked on the Submit Order button.

Thanks!!

Mitch
Mitchel
 
Posts: 4
Joined: Fri Jul 18, 2008 7:27 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 118 guests