Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing required fields from create account. Need help disabling call to database.


loosboogie

Recommended Posts

Posted

Background. I am giving away free digital products on my site. I do not want the customers to have to fill in anything but name and e-mail address. And, yes I have thoroughly checked forums for any answers. I don't see where any one has attempted what I am trying to do....

I am trying to remove requirements for address, phone number, country etc. I have removed checking of address in create_account.php. I have commented out the required fields in create_account.php for the billing fields. I have commented out the required functions in the catalog and admin general.php files. I have turned of the required field checking in includes/form_check.js.php. My only problem now is the warning message that shows up in the customer's Order confirmation page billing address box:

 

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /mnt/w0202/d15/s10/b02a14a8/www/mysite.info/store/catalog/includes/functions/general.php on line 42

 

I am looking for help on disabling the call to the database for this information.

 

Otherwise, it is working good for me. I eventually want to put in e-books with a cost. that is why I want to continue using OSC (overkill for what I am doing currently) .

 

Any help or suggestions would be greatly appreciated

Posted

 

Thanks for the reply. I had already done all that. The fields already weren't required, the problem was the customer's error message on the order confirmation page. I did solve the problem though. I removed the "htmlspecialchars" from the function:

return htmlspecialchars ($string) in general.php

(new) return ($string)

 

Error message is gone and billing and shipping box is blank.

Just what I wanted. All tested and working good. Problem solved. Thanks

Archived

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

×
×
  • Create New...