osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Cant Create a Customer

This is a discussion on Cant Create a Customer within the osCMax v2 Installation issues forums, part of the osCMax v2.0 Forums category; Hi all, Im having issues with creating a new customer. First off in the admin tool when trying to create ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Installation issues

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack (1) Thread Tools
  1 links from elsewhere to this Post. Click to view. #1  
Old 02-26-2008, 01:50 PM
rkah's Avatar
New Member
 
Join Date: Feb 2008
Location: Midwest
Posts: 21
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 0
rkah is on a distinguished road
Default Cant Create a Customer

Hi all,
Im having issues with creating a new customer. First off in the admin tool when trying to create an account i get this error:

Parse error: syntax error, unexpected $end in C:\domains\com-oscmax\catalog\admin\includes\modules\account_deta ils.php on line 485

Then if I try to add a customer through the regular website I get this error:
1364 - Field 'customers_payment_allowed' doesn't have a default value
insert into customers (customers_firstname, customers_lastname, customers_email_address, customers_telephone, customers_fax, customers_newsletter, customers_password) values ('rj', 'kelly', 'nowher@none.com', '913-915-9253', '', '1', 'd481cef4afa64c6ad3e824f84c250b4d:b5')
So I fire up the MySQL Browser and look at the fields and immeadiately notice a vast difference in the above query and what is required to populate a row. MySQL says that there are numerous fields that are required that are missing from my statement above. I feel I may have an outdated copy of the one of the files. Could someone please provide some direction in whats missing here.

Everything on the site is working correctly. The basket will add products, I can browse categories, do searches, modify site settings in admin panel. However checkout bombs for much of the same reasons, no matter if I create an account, or do "guest" checkout.

Here is my platform:

Database: MySQL 5.0.51a-community-nt
HTTP Server: Microsoft-IIS/6.0
PHP Version: 5.2.5 (Zend: 2.2.0)

Last edited by rkah; 02-26-2008 at 01:52 PM. Reason: removed email address
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-26-2008, 02:56 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,246
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Cant Create a Customer

Ahhh, running on windows IIS. That is probably why I have never seen these errors before. I have not ever run RC3 on IIS, and I do not have access to an IIS server. Perhaps another windows user will see this and have some answers for you...

Have you tried setting a default value in the database for the fields that are throwing the errors?
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-27-2008, 05:23 AM
rkah's Avatar
New Member
 
Join Date: Feb 2008
Location: Midwest
Posts: 21
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 0
rkah is on a distinguished road
Default Re: Cant Create a Customer

I can let it slide on the admin panel (the first error). However on the customer side, I have looked around and there is not any full documentation on the table relationships. Im saying, I dont know where to look for the data this field requires. Can I just put anything in here? Its not readily apparent what data goes in here? Customer_payment_allowed? I can see the first error being maybe a platform issue, but this error is more of a programming one, in that the fields that are marked required, are not also included in the insert statement. It appears the statement is still configured for osCommerce and not osCmax style database. Would you agree with me on that? What version of this do you run mostly Linux or Windows? Im just afraid that populating it with junk is not a real fix, more like a bandaid. I can fix code that is not a problem for me....its more like there are more fields (approx 5-6) that require info, that do not appear in the insert statement.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 02-27-2008, 05:23 AM
rkah's Avatar
New Member
 
Join Date: Feb 2008
Location: Midwest
Posts: 21
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 0
rkah is on a distinguished road
Default Re: Cant Create a Customer

Customer_payment_allowed, Customer_Shipment_Allowed, Customer_group_id, customer_group_name, Customer_group_ra, and gender are all required fields but are not included in the insert statement. I set the gender that was easy, and setting customer_group_id & customer_group_name are straightforward as well, but the customer_group_ra, customer_payment_allowed, and customer_shipment_allowed are not so intuitive. They are variable lenght fields so this goes beyond a true/false, 1/0 issue. Are these populated by some trigger maybe that is not included in the windows package?

Last edited by rkah; 02-27-2008 at 05:29 AM. Reason: duplicate, more info...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 02-27-2008, 05:49 AM
rkah's Avatar
New Member
 
Join Date: Feb 2008
Location: Midwest
Posts: 21
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 0
rkah is on a distinguished road
Default Re: Cant Create a Customer

OK, I've resolved that issue.... I will start a new thread to ask a new set of questions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 02-27-2008, 08:23 AM
New Member
 
Join Date: Feb 2008
Posts: 20
Thanks: 4
Thanked 0 Times in 0 Posts
Rep Power: 0
chowhan is on a distinguished road
Default Re: Cant Create a Customer

Hi rkah , please if have solved the problem know the solve of this error, please do share here with all , as these forums are runing only with our share.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 02-27-2008, 08:55 AM
rkah's Avatar
New Member
 
Join Date: Feb 2008
Location: Midwest
Posts: 21
Thanks: 2
Thanked 2 Times in 2 Posts
Rep Power: 0
rkah is on a distinguished road
Default Re: Cant Create a Customer

First off I will only say this worked in my situation, but it was a BASE install of oscmax, running PHP 5, MySql 5 and IIS 6. Those shouldnt matter for this scenario, but I provide no warranty of this working in your case, as every system is different.

Now, you need to know what methods you have set for payment and shipping (the default ones) IE Authorize.Net/Flat Rate Shipping.

After you have this data you need to EDIT the TABLE STRUCTURE for customers. The Customer_Payment_Allowed default value should be set to whatever payment module you have as the default. The values for this field can be obtained intuitively by knowing your default pay method, and matching that to the files in /Catalog/Includes/modules/payment. So if you use Authorize.NEt then you would make the default for the field authorizenet.php
Follow the same principal for shipping except look in the shipping folder.
HTH
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.oscmax.com/forums/oscmax-v2-installation-issues/12827-cant-create-customer.html

Posted By For Type Date
Cant Create a Customer - RSSMicro Search This thread Refback 03-14-2008 02:39 AM

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Unable to create a customer 2source osCMax v2 Installation issues 10 02-27-2008 08:52 PM
create new customer account email joanstead osCMax v2 Customization/Mods 7 02-16-2006 09:42 PM
Create Customer Account Address Questions joanstead osCMax v2 Features Discussion 0 02-16-2006 07:31 AM
How to remove the phone # section when a customer create ac blum osCMax v1.7 Discussion 1 07-06-2005 01:25 PM
Create an Order for New Customer For FREE access to "Fi In-Overtime osCMax v1.7 Discussion 1 05-14-2004 09:33 PM


All times are GMT -8. The time now is 08:52 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax