Guest thatblokedan Posted April 16, 2008 Share Posted April 16, 2008 I am in the process of setting up an online store for school photography novelty gifts. Our photos are recognised on a database by using unique 10 digit code. Is there a way of forcing the customer to enter this code in a text field prior to adding a product to their basket? and then sending this information on with each individual order. Iam sorry if this question havs been asked before, I was unable to find the answer by searching Thanks for your help!!! Dan Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted April 16, 2008 Share Posted April 16, 2008 Hello Dan, What version of CubeCart are you using (Usually a good start)? If you're using CubeCart V4.2.x, then there's a textbox as product option, so customers can enter the code into the textbox when ordering a product. For version 3.x, (or earlier version 4's), this requires a modification, and such a modification (for version 3) can be found at cubecartforums.org, a site that deals specifically with modifications for CubeCart. Quote Link to comment Share on other sites More sharing options...
Guest thatblokedan Posted April 17, 2008 Share Posted April 17, 2008 Hello Dan, What version of CubeCart are you using (Usually a good start)? If you're using CubeCart V4.2.x, then there's a textbox as product option, so customers can enter the code into the textbox when ordering a product. For version 3.x, (or earlier version 4's), this requires a modification, and such a modification (for version 3) can be found at cubecartforums.org, a site that deals specifically with modifications for CubeCart. Thanks for your help! Iam using version 4.2.x. Do I have the ability to make this a required option? and can it create an alert if the user has not entered any info? Quote Link to comment Share on other sites More sharing options...
Guest paulabakerparkin Posted April 17, 2008 Share Posted April 17, 2008 Do I have the ability to make this a required option? and can it create an alert if the user has not entered any info? Not with the standard cart set up. However there is a modification available which will give you that functionality... Quote Link to comment Share on other sites More sharing options...
Guest Brivtech Posted April 17, 2008 Share Posted April 17, 2008 Yes, to have an alert, you'd need to place a Javascript alert if the field is empty when the form (product with text box) is submitted. It's outside of the scope of the cubecart core, but if you know some Javascript, it shouldn't be too hard - You may even be able to Google a suitable script to do this. Quote Link to comment Share on other sites More sharing options...
Guest thatblokedan Posted April 23, 2008 Share Posted April 23, 2008 I have found a code that would do what you are suggesting for the alert. But how would I implement this? <script LANGAUGE="JavaScript"> function validate(){ if (document.form1.code.value.length<1||!document.form1.code.value.match(/[^\s]/)){ alert("Please Enter Customer Code"); document.form1.code.focus(); return false; } return true; } //--> </SCRIPT> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.