Posted to osc forums also..
I really thought I had this working, but went to test again before an install on a new cart and its not working.. can someone take a look and tell me where I am wrong here??
RUN SQL
Code:ALTER TABLE address_book MODIFY `entry_company_tax_id` varchar(32) NOT NULL DEFAULT '';===================================Code:INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`) VALUES (1626, 'Tax ID', 'ENTRY_COMPANY_TAX_ID_MIN_LENGTH', '5', 'Minimum length of License or Tax ID', 2, 1, NULL, '0000-00-00 00:00:00', NULL, NULL);
OPEN
catalog/includes/javascript/form_check.js.php - added:
FIND:
ADD AFTER:Code:check_input("city", <?php echo ENTRY_CITY_MIN_LENGTH; ?>, "<?php echo ENTRY_CITY_ERROR; ?>");
===================================Code:##require company_tax_id check_input("company_tax_id", <?php echo ENTRY_COMPANY_TAX_ID_MIN_LENGTH; ?>, "<?php echo ENTRY_COMPANY_TAX_ID_ERROR; ?>");
OPEN
catalog/includes/languages/english.php
MODIFY AS DESIRED:
===================================Code:define('ENTRY_COMPANY_TAX_ID', 'License or Tax ID number:'); define('ENTRY_COMPANY_TAX_ID_ERROR', 'License number is required unless you reside in an unlicensed country or state. Please state so in the box.'); define('ENTRY_COMPANY_TAX_ID_TEXT', '*');
OPEN
catalog/create_account.php
FIND:
ADD AFTER:Code:if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_LAST_NAME_ERROR); }
I also tried this code for the last change, and it did not work eitherCode:##require company_tax_id if (strlen($company_tax_id) < ENTRY_COMPANY_TAX_ID_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_COMPANY_TAX_ID_ERROR); }
Code:##require company_tax_id if (COMPANY_TAX_ID == 'true') { if (strlen($company_tax_id) < ENTRY_COMPANY_TAX_ID_MIN_LENGTH) { $error = true; $messageStack->add('create_account', ENTRY_COMPANY_TAX_ID_ERROR); } }





LinkBack URL
About LinkBacks






Reply With Quote

so endith the lesson



Bookmarks