Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customers extra fields


kit

Recommended Posts

I just upgraded to OSC 2.2.4 and it blew all my extra fields mods. Argh.

 

I had to go in and create a new test account and I found Fatal error: Call to undefined function: tep_get_extra_fields() in /home/u3/mydomain/html/osc/create_account.php on line 495

 

Anyone else have this problem? Can I upload the older local files, or would that be a bad idea?

 

Never mind, I figured it out! :)

Link to comment
Share on other sites

Hi,

 

I have followed all the steps correctly (I think) but when I try to login into the Admin area - it asks for the user ID and password and then gives me the following Error:

 

Parse error: syntax error, unexpected '<' in /home/gourmet/public_html/shop/admin/includes/filenames.php on line 52

 

I am not sure what the problem is? Please help :) I am including the contents of the 'filenames.php' file below:

 

Thank you for your help

 

 

Jan Mares

[email protected]

 

 

<?php

/*

$Id: filenames.php,v 1.1 2003/06/20 00:18:30 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

// define the filenames used in the project

define('FILENAME_BACKUP', 'backup.php');

define('FILENAME_BANNER_MANAGER', 'banner_manager.php');

define('FILENAME_BANNER_STATISTICS', 'banner_statistics.php');

define('FILENAME_CACHE', 'cache.php');

define('FILENAME_CATALOG_ACCOUNT_HISTORY_INFO', 'account_history_info.php');

define('FILENAME_CATEGORIES', 'categories.php');

define('FILENAME_CONFIGURATION', 'configuration.php');

define('FILENAME_COUNTRIES', 'countries.php');

define('FILENAME_CURRENCIES', 'currencies.php');

define('FILENAME_CUSTOMERS', 'customers.php');

define('FILENAME_DEFAULT', 'index.php');

define('FILENAME_DEFINE_LANGUAGE', 'define_language.php');

define('FILENAME_FILE_MANAGER', 'file_manager.php');

define('FILENAME_GEO_ZONES', 'geo_zones.php');

define('FILENAME_LANGUAGES', 'languages.php');

define('FILENAME_MAIL', 'mail.php');

define('FILENAME_MANUFACTURERS', 'manufacturers.php');

define('FILENAME_MODULES', 'modules.php');

define('FILENAME_NEWSLETTERS', 'newsletters.php');

define('FILENAME_ORDERS', 'orders.php');

define('FILENAME_ORDERS_INVOICE', 'invoice.php');

define('FILENAME_ORDERS_PACKINGSLIP', 'packingslip.php');

define('FILENAME_ORDERS_STATUS', 'orders_status.php');

define('FILENAME_POPUP_IMAGE', 'popup_image.php');

define('FILENAME_PRODUCTS_ATTRIBUTES', 'products_attributes.php');

define('FILENAME_PRODUCTS_EXPECTED', 'products_expected.php');

define('FILENAME_REVIEWS', 'reviews.php');

define('FILENAME_SERVER_INFO', 'server_info.php');

define('FILENAME_SHIPPING_MODULES', 'shipping_modules.php');

define('FILENAME_SPECIALS', 'specials.php');

define('FILENAME_STATS_CUSTOMERS', 'stats_customers.php');

define('FILENAME_STATS_PRODUCTS_PURCHASED', 'stats_products_purchased.php');

define('FILENAME_STATS_PRODUCTS_VIEWED', 'stats_products_viewed.php');

define('FILENAME_TAX_CLASSES', 'tax_classes.php');

define('FILENAME_TAX_RATES', 'tax_rates.php');

define('FILENAME_WHOS_ONLINE', 'whos_online.php');

define('FILENAME_ZONES', 'zones.php');

 

define('FILENAME_EXTRA_FIELDS','extra_fields.php');

?>

Link to comment
Share on other sites

Try this:

 

define('FILENAME_ZONES', 'zones.php');

define('FILENAME_EXTRA_FIELDS', 'extra_fields.php');

?>

 

Note I removes the extra line and added a space between FIELDS', 'extra

Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going.

Link to comment
Share on other sites

Hi,

 

 

I'm so sorry to ask this question - I think I finally got rid of all the Error messages but when I look for this after I log in - I can't find it anywhere! Would you please tell me where this suppose to appear?

 

 

Thank you so much,

 

 

 

Jan :rolleyes:

Link to comment
Share on other sites

Admin can add/edit/delete extra fields for customers and set up field name, field type (input field, textarea field) and field required status (true, false). Customers see extra fields when he create or edit own account.

 

If you have any queries, bug reports, praise or derision, don't hesitate.

 

 

I have made everything as mentioned in documentation and now when I try to create new account as new customer I get only blank page (without error message). Does somebody know way?

Thanks a lot.

 

Vlado

Link to comment
Share on other sites

Well the install instructions have some small bugs. So go through and see if you included them, cause you shouldn't:

 

 

At: "5.In admin/includes/filename.php

Add the following lines:

define('FILENAME_EXTRA_FIELDS','extra_fields.php');<br><br>"

 

Reomve the: <br><br>

 

Same goes for step 7: "7. In admin/includes/languages/english/customers.php

Add line: define('CATEGORY_EXTRA_FIELDS','Extra fields');<br><br>"

Remove the: <br><br>

 

See if that works

Link to comment
Share on other sites

  • 2 weeks later...
So, my problem is:

 

When a customer enters his/her's social security number it doesn't show in Admin/Customers nor in invoice. If I enter that customer's account and modify myself that social security number it's not remembered by the Admin, it turns blank i f I re-enter customer's account after the operation.

 

Any one know what's the problem??

 

 

Vantalk, pentru problema mea ai rezolvare? Daca da, cum?

Sorry for my bad english language!

Link to comment
Share on other sites

I just installed this contribution...my 1st contribution with osc. I have 1 problem that I see right now. When I click on Create New Account, I get the following error:

 

Fatal error: Call to undefined function: tep_get_extra_fields() in /web/collegiate/create_account.php on line 488

 

Please help!

 

P.S. It was pretty easy to install, and seems so versatile. Thanks for your contribution.

Link to comment
Share on other sites

Did you solved that error? Are your extra fields remembered when a customer creates a new account? Can you see the new fields in admin or in invoice?

 

 

 

 

Thanks for asking. I got it resolved with help from another programmer I know. I am very new yet with php. Extra Fields are PERFECT!

Link to comment
Share on other sites

Did you do something different in the instalation process? I can't make it to remember whatever the text is written by a cutomer. I can't see the data (in admin or invoice) that a customer inputs when he creates an account.

Sorry for my bad english language!

Link to comment
Share on other sites

I still can't get past my problem and no one knows what's the problem. :(

 

I am not having any problems with seeing the input in the admin. Did you follow all the steps in the instructions? Which version did you install?

Link to comment
Share on other sites

I am not having any problems with seeing the input in the admin. Did you follow all the steps in the instructions? Which version did you install?

 

I installed Kit's original contrib from here:

 

http://www.oscommerce.com/community/contri...ch,extra+fields

 

then added zoulxp's patch and that's it.

 

I reinstalled it 2 or 3 times by now, maybe i'll try that one more time tomorrow. I have some other modds but i don't think those are the problems.

 

Has anyone did something else that is not mentioned in the contrib?!

Sorry for my bad english language!

Link to comment
Share on other sites

I installed Kit's original contrib from here:

 

http://www.oscommerce.com/community/contri...ch,extra+fields

 

then added zoulxp's patch and that's it.

 

I reinstalled it 2 or 3 times by now, maybe i'll try that one more time tomorrow. I have some other modds but i don't think those are the problems.

 

Has anyone did something else that is not mentioned in the contrib?!

 

Sal.

First thing.. i installed the oldest contrib (7 Nov 2005 Kit's original contrib) and no more updates. just the slight modifications that i wrote in this forum topic. Do that and then tell me if it doesn't work.

I shall check my mail for the next 3 days.. please tell me if anything goes wrong till then

Link to comment
Share on other sites

  • 4 weeks later...

hi , i just install the user extra fields extension. when im going to extra field manager in the backend i receive this error:

 

 

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-14, 14' at line 1

 

select ce.fields_id, ce.fields_size, ce.fields_input_type, ce.fields_required_status, cei.fields_name, ce.fields_status, ce.fields_input_type from extra_fields ce, extra_fields_info cei where cei.fields_id=ce.fields_id and cei.languages_id =3 limit -14, 14

 

 

there is a similar post in the begining of the forum but the solution didnt worked for me. (edit the split_page_results.php file).

 

i will appreciate any help. thanks

Link to comment
Share on other sites

  • 2 weeks later...

I have a little problem with this contrib. I set a minimum value for the fields. Ex: For the field street the minimum value has set to 1. I enter the street name (8 or 9 characters) and the application return an error messaje: "The field street must contain a minimum of 1 character ".

Help!!!! :blush:

Great contrib.

Link to comment
Share on other sites

The required status is set to true. When i set the required status to false, the problem disappear. Still need help..:)

 

As demoalt wrote on page two:

 

in the javascript file, replace

check_input("<?php echo 'fields_' . $extra_fields['fields_id']?>", <?php echo $extra_fields['fields_id']-1;?>, "<?php echo $string_error; ?>");
by
check_input("<?php echo 'fields_' . $extra_fields['fields_id']?>", <?php echo $extra_fields['fields_size']-1;?>, "<?php echo $string_error; ?>");

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...