chrometweaks.org

How can I upload my own picture to my iPage website?

Click Here To View All Answers...


Got a question, hope someone can answer... How can I upload my own picture to my iPage website? Looking forward for any comment. Another question... Need to set Company name in create_account.php as a Required field with check.

Added following codes but it doesn't work.

Catalog/create_account.php.

If (ACCOUNT_COMPANY == 'true') {.

If ( (strlen($company) != 0) && (strlen($company) < ENTRY_COMPANY_MIN_LENGTH) ) {.

$error = true;.

$messageStack->add('create_account', ENTRY_COMPANY_ERROR);.

}.

}.

Catalog/includes/form_check.js.php.

<?php if (ACCOUNT_COMPANY == 'true') echo ' check_company("company", 'ENTRY_COMPANY_MIN_LENGTH', "'ENTRY_COMPANY_ERROR'");'"\n"; ?>.

Also placed needed text to catalog/includes/languages/english.php.

Define('ENTRY_COMPANY_ERROR', '.....');.

Define('ENTRY_COMPANY_TEXT', '*');.

Have I missed something???, Please help.

Thanks!.

Sergei..

Comments (6)

Hmm... I need to find out myself. I don't know what is the right answer. I'll do some investigation and get back to you if I find an answer. You should email the people at iPage as they probably could give you an answer..

Comment #1

Sure!.

But it doesn't place it as "Required field"!.

Account reqistration can be done without company name even with.

Admin > Configuration > Customer Details > Company > True.

Hope my 2.2m2 is correct about.

Sergei..

Comment #2

What value have you set for the minimum length?..

Comment #3

Played with value 2 and 4..

I think company settings in admin is not a key to solve problem..

From my point, files create_account.php and form_check.js.php have no code for the Company require field check and need to be modified..

Looking for help.

Sergei..

Comment #4

Like you, I added the following to catalog/includes/languages/english.php.

Define('ENTRY_COMPANY', 'Company Name:');.

Define('ENTRY_COMPANY_ERROR', 'Your Company name must contain a minimum of 'ENTRY_COMPANY_MIN_LENGTH' characters.');.

Define('ENTRY_COMPANY_TEXT', '*');.

I think you'll also need to add the code below to catalog/admin/includes/languages/english.php.

Define('ENTRY_COMPANY', 'Company name:');.

Define('ENTRY_COMPANY_ERROR', '<span class="errorText">min 'ENTRY_COMPANY_MIN_LENGTH' chars</span>');.

Ron.

This post has been edited by.

Rschram.

: 08 January 2008, 22:22..

Comment #5

Thanks but language file settings dosn't help for me..

Anybody can post code or part of catalog/create_account.php and.

Catalog/includes/form_check.js.php that make Company check?.

I think soution is to compare with my files..

Sergei..

Comment #6

Hi Sergei,.

I know this is an old thread, but I have just had issues trying to work exactly the same functionality into the platform (found this thread whilst trying to solve the issue), and I thought I would point you (and anyone else who may need to find out how to get this working) at the thread that contains the code that worked for me:.

Http://forums.oscommerce.com/index.php?sho...t&p=1378273.

..

Cheers,.

Paul..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.