Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Make "Add Comment...." a required field


Brian-Bear

Recommended Posts

Posted

Can anyone assist in providing the code to make the "add comments about your order" box in checkout a required field

Posted

google for javascript code, edit the checkout files and add the code.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted
Can anyone assist in providing the code to make the "add comments about your order" box in checkout a required field

 

I too want this, I use osCommerce for my flower shop and use the delivery information field to store what customers want to say on the card with the flowers, a lot of customers miss this off so I'm having to call them to find out.

 

Thanks

Posted

All you ned to do is to look at the error code already in the file, then copy it and ammend it to suit your needs, have a go and see if you are able to, as things go its not that hard.

Or look in the create_account.php file there are lots of examples there

Regards

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Posted
All you ned to do is to look at the error code already in the file, then copy it and ammend it to suit your needs, have a go and see if you are able to, as things go its not that hard.

Or look in the create_account.php file there are lots of examples there

Regards

Nic

 

 

I've been looking at the checkout_confirmation.php but I can't figure out how to get an error to pop up if the comments field is empty.

 

 

I can see that the following is present

 

<?php
 if (tep_not_null($order->info['comments'])) {
?>

 

So I think that does something if the field is not empty, I want it to pop up an error if it is empty, I am no coder, I run a flower shop!!!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...