Jump to content

Nathali

Members
  • Content count

    364
  • Joined

  • Last visited

Posts posted by Nathali


  1. If your terms and conditions page is affected by validation then you have hardcoded it as a .html file.

     

    regarding the URL try resetting the cache then resetting osC categories cache (if you have it on).

     

    If that fails you will have to drop the cache table and remove the SEO configuration and configuration_group entries in the DB and let the contribution reinstall itself.

     

    The sql for deleting the config settings is in the following post: -

     

    http://forums.oscommerce.com/index.php?s=&...t&p=1215173

     

    Before messing with your DB please back up.

     

    Hi again !

     

    I am trying your link for "The sql for deleting the config settings" and I think it is not correct..

     

    Could you please give me the right one?

     

    Thanks and regards,

    Nathali


  2. Any page outside of that handled by ULTIMATE SEO URLs that has .html at the end will break validation. Information pages is handled by SEO URLs but if there is a new version that is not handled in the seo.class.php code and it has .html at the end then validation will fail.

     

    Hi,

     

    Thanks again for your reply.

     

    I found in the contribution a fix for that so I will try it with your advises.

     

    Thanks alot !

     

    Nathali


  3. If your terms and conditions page is affected by validation then you have hardcoded it as a .html file.

     

    regarding the URL try resetting the cache then resetting osC categories cache (if you have it on).

     

    If that fails you will have to drop the cache table and remove the SEO configuration and configuration_group entries in the DB and let the contribution reinstall itself.

     

    The sql for deleting the config settings is in the following post: -

     

    http://forums.oscommerce.com/index.php?s=&...t&p=1215173

     

    Before messing with your DB please back up.

     

    Hi !

     

    Thank you very much for your reply !

     

    I forgot to mention that I installed "Information Manager / Information pages" contribution that allow me to add info. pages as I want.. ???

     

    Do you think please that it could be the problem for the validation contribution to function ??

     

    Thanks for your help?

     

    Regards,

     

    Nathali


  4. Hi all !

     

    I upgrade ultimate seo from 2.2e to FWR Media contribution..

     

    I did exactly all the steps, but I do not see my parent categories separated by -

     

    I get it like that: desktopsmemories64bitddr2400pc3200sdram-c-106_107_108.html

     

    I also installed the validation contribution and I had to shut it down because I could not see my terms and condition page..

     

    Could someone help please ?

     

    I will be happy to post any file that help to solve my problem..

     

    Thanks,

     

    Nathali


  5. Hi,

     

    Could someone advise please??

     

    I installed Easy Meta Tags 1.4.

     

    I checked the source code on my index page and in product_info page and the meta tags appears very good.

     

    The thing is that I read that it is not enough and I need to add Meta tags for the robots and some more important commands for the search engines..

     

    Could someone advise me please what to do??

    Is there a meta tag generator which I enter to it my index page and it create for me the Best Meta Tags according to my page??

     

    Thanks for any advise from you..

     

    Regards,

    Nathali


  6. Hi,

     

    I need to modify Netpay payment processor contribution and to change a little the code that I will be able to use it.

     

    I tried to get some help to solve it without success :'(

     

    I hope someone will be kind to help me to do that please..

     

    Please, Here is the link to Netpay processor system with the information how to connect Netpay to oscommerce.

     

    Thanks in advance for any help I get please...!!

     

    http://www.intercash.net/site_eng/main.asp

     

    Then in the "TO DEVELOPER CENTER" box press "go"

     

    Email: demo12@demo.com

    User name: demo12

    Password: 123456

     

    then press category: SILENT POST TRANSACTIONS

    subcategory: CREDIT CARD

     

    Here are the 3 files I installed:

    netpay.php

    order.php

    result.php

     

    in root/includes/modules/payment/netpay.php

     

    netpay.php

    ==================================

    <?php

     

    class netpay {

     

    var $code, $title, $description, $enabled;

     

    // class constructor

    function netpay() {

    global $order;

     

    $this->code = 'netpay';

    $this->title = MODULE_PAYMENT_NETPAY_TEXT_TITLE;

    $this->description = MODULE_PAYMENT_NETPAY_TEXT_DESCRIPTION;

    $this->enabled = ((MODULE_PAYMENT_NETPAY_STATUS == 'True') ? true : false);

    $this->sort_order = MODULE_PAYMENT_NETPAY_SORT_ORDER;

     

    if ((int)MODULE_PAYMENT_NETPAY_ORDER_STATUS_ID > 0) {

    $this->order_status = MODULE_PAYMENT_NETPAY_ORDER_STATUS_ID;

    }

     

    if (is_object($order)) $this->update_status();

     

    $this->form_action_url = 'https://www.intercash.net/member/remote_charge.asp';

    }

     

    // class methods

    function update_status() {

    global $order;

     

    if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_NETPAY_ZONE > 0) ) {

    $check_flag = false;

    $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_NETPAY_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");

     

    while ($check = tep_db_fetch_array($check_query)) {

    if ($check['zone_id'] < 1) {

    $check_flag = true;

    break;

    } elseif ($check['zone_id'] == $order->billing['zone_id']) {

    $check_flag = true;

    break;

    }

    }

     

    if ($check_flag == false) {

    $this->enabled = false;

    }

    }

    }

     

    function javascript_validation() {

    $js =

    ' if (payment_value == "' . $this->code . '") {' . "\n" .

    ' var cc_owner = document.checkout_payment.netpay_cc_owner.value;' . "\n" .

    ' var cc_ccv = document.checkout_payment.netpay_ccv_number.value;' . "\n" .

    ' var cc_number = document.checkout_payment.netpay_cc_number.value;' . "\n" .

    ' if (cc_owner == "" || cc_owner.length < ' . CC_OWNER_MIN_LENGTH . ') {' . "\n" .

    ' error_message = error_message + "' . MODULE_PAYMENT_NETPAY_TEXT_JS_CC_OWNER . '";' . "\n" .

    ' error = 1;' . "\n" .

    ' }' . "\n" .

    ' if (cc_number == "" || cc_number.length < ' . CC_NUMBER_MIN_LENGTH . ') {' . "\n" .

    ' error_message = error_message + "' . MODULE_PAYMENT_NETPAY_TEXT_JS_CC_NUMBER . '";' . "\n" .

    ' error = 1;' . "\n" .

    ' }' . "\n" .

    ' if (cc_ccv == "" || cc_ccv.length < ' . CC_CVV_MIN_LENGTH . ') {' . "\n" .

    ' error_message = error_message + "' . MODULE_PAYMENT_NETPAY_TEXT_CCV_NUMBER_LEN . '";' . "\n" .

    ' error = 1;' . "\n" .

    ' }' . "\n" .

    ' }' . "\n";

     

    return $js;

    }

     

    function selection() {

    global $order;

     

    for ($i=1; $i<13; $i++) {

    $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));

    }

     

    $today = getdate();

    for ($i=$today['year']; $i < $today['year']+10; $i++) {

    $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));

    }

     

    $selection = array('id' => $this->code,

    'module' => $this->title,

    'fields' => array(

    array('title' => 'We Accept:','field' => '<b><font size=-1>Visa, Master Card and Amex</font></b>'),

    array( 'title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_OWNER,

    'field' => tep_draw_input_field('netpay_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_NUMBER,

    'field' => tep_draw_input_field('netpay_cc_number')),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_EXPIRES,

    'field' => tep_draw_pull_down_menu('netpay_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('netpay_cc_expires_year', $expires_year)),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CCV_NUMBER,

    'field' => tep_draw_input_field('netpay_ccv_number'))));

     

    return $selection;

    }

     

    function pre_confirmation_check() {

    global $HTTP_POST_VARS;

     

    include(DIR_WS_CLASSES . 'cc_validation.php');

     

    $cc_validation = new cc_validation();

     

    $result = $cc_validation->validate(

    $HTTP_POST_VARS['netpay_cc_number'], $HTTP_POST_VARS['netpay_cc_expires_month'], $HTTP_POST_VARS['netpay_cc_expires_year']);

     

    $result = true;

    $error = '';

     

    switch ($result) {

    case -1:

    $error = sprintf(TEXT_CCVAL_ERROR_UNKNOWN_CARD, substr($cc_validation->cc_number, 0, 4));

    break;

    case -2:

    case -3:

    case -4:

    $error = TEXT_CCVAL_ERROR_INVALID_DATE;

    break;

    case false:

    $error = TEXT_CCVAL_ERROR_INVALID_NUMBER;

    break;

    }

     

    if ( ($result == false) || ($result < 1) ) {

    $payment_error_return =

    'payment_error=' . $this->code . '&error=' . urlencode($error) .

    '&netpay_cc_owner=' .urlencode($HTTP_POST_VARS['netpay_cc_owner']) .

    '&netpay_cc_expires_month=' . $HTTP_POST_VARS['netpay_cc_expires_month'] .

    '&netpay_cc_expires_year=' . $HTTP_POST_VARS['netpay_cc_expires_year'];

     

    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false));

    }

     

    $this->cc_card_type = $cc_validation->cc_type;

    $this->cc_card_number = $cc_validation->cc_number;

    $this->cc_expiry_month = $cc_validation->cc_expiry_month;

    $this->cc_expiry_year = $cc_validation->cc_expiry_year;

    $this->cc_ccv = $HTTP_POST_VARS['netpay_ccv_number'];

    }

     

    function confirmation() {

    global $HTTP_POST_VARS;

     

    $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type,

    'fields' => array(array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_OWNER,

    'field' => $HTTP_POST_VARS['netpay_cc_owner']),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_NUMBER,

    'field' => substr($this->cc_card_number, 0, 4) .

    str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_EXPIRES,

    'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['netpay_cc_expires_month'], 1, '20' . $HTTP_POST_VARS['netpay_cc_expires_year']))),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CCV_NUMBER,

    'field' => $HTTP_POST_VARS['netpay_ccv_number'])));

     

    return $confirmation;

    }

     

    function process_button () {

    global $HTTP_SERVER_VARS, $order, $customer_id,$currencies, $_SESSION;

    ///////////////// RAMDOMIZING SCRIPRT BY PATRIC VEVERKA \\\\\\\\\\\\\\\\\\

    /*$t1 = date("mdy");

    srand ((float) microtime() * 10000000);

    $input = array ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");

    $rand_keys = array_rand ($input, 2);

    $l1 = $input[$rand_keys[0]];

    $l2 = $input[$rand_keys[1]];

    $r1 = rand(0,9);

     

    $new_ordernum = $l1.$l2.$t1.$r1;

     

    $ordernum = $new_ordernum;*/

    //error_log ("new order id: " . $_SESSION['new_ordernum'], 1, "gnitzan@usa.net");

    ///////////////// End of Randomizing Script \\\\\\\\\\\\\\\\\\\

     

    // Build a list of products to put in the comment field

    for ($i=0; $i<sizeof($order->products); $i++) {

    if ($i==0) {

    $products_list = $products_list. "" .$order->products[$i]['name'];

    } else {

    $products_list = $products_list. ", " .$order->products[$i]['name'];

    }

    }

    $sequence = rand(1, 1000);

    $process_button_string = tep_draw_hidden_field('CompanyNum', MODULE_PAYMENT_NETPAY_LOGIN) .

    tep_draw_hidden_field('TypeCredit', '1') . // only credit type

    tep_draw_hidden_field('Currency', '1') . // only us dollars

    tep_draw_hidden_field('CVV2', $this->cc_ccv) . // CVV

    tep_draw_hidden_field('PersonalNum', '000000000') . // israeli id

    tep_draw_hidden_field('CardNum', $this->cc_card_number) .

    tep_draw_hidden_field('ExpMonth', $this->cc_expiry_month) .

    tep_draw_hidden_field('ExpYear', substr($this->cc_expiry_year, -2)) .

    tep_draw_hidden_field('Amount', number_format($order->info['total'], 2)) .

    tep_draw_hidden_field('UserName', $customer_id) .

    tep_draw_hidden_field('Member', $order->billing['firstname'] . ' ' .

    $order->billing['lastname']) .

    tep_draw_hidden_field('PhoneNumber', $order->customer['telephone']) .

    tep_draw_hidden_field('Payments', '1') .

    tep_draw_hidden_field('Order', $ordernum) .

    tep_draw_hidden_field('Email', $order->customer['email_address']) .

    tep_draw_hidden_field('Comment', $products_list) .

    tep_draw_hidden_field('ReplyURL', 'https://www.pcmemory.co.il/checkout_process.php'); //Your Site Here!

     

    $process_button_string .= tep_draw_hidden_field(tep_session_name(), tep_session_id());

     

    return $process_button_string;

    }

     

    function before_process() {

    global $HTTP_GET_VARS;

     

    //foreach ($HTTP_GET_VARS as $key => $value) {

    // echo "Key: $key; Value: $value<br>\n";

    //}

     

    $reply_code = $HTTP_GET_VARS['Reply'];

    $my_message = "----> If you get an error and you are sure there should not be a problem, please contact us (use the contact us button in the information box on the bottom left menu). Your order is always saved so we shall check and if the transaction is processed successfuly it shall go through manualy and you shall be notified.";

     

    if ( $reply_code != '000') {

    if ($reply_code == '500') {

    $reply_str = 'Your are not allowed to make on-line purchase';

    } else if ($reply_code == '501') {

    $reply_str = 'We are unable to connect to the credit card processing service';

    } else if ($reply_code == '502') {

    $reply_str = 'Security Code - CVV is missing';

    } else if ($reply_code == '522') {

    $reply_str = 'You have already made the same transaction less than 5 minutes ago';

    } else if ($reply_code == '143') {

    $reply_str = 'The card number you have entered is not a valid card number. Try again or use another card. (Please note, we accept only Visa, MC, AMEX).';

    } else if ($reply_code == '036') {

    $reply_str = 'The card has expired. Have you entered the correct Expiration Date? Try again or use another card.';

    } else if ($reply_code == '033') {

    $reply_str = 'The card number is bad. Have you copied your card number correctly? Try again or use another card.';

    } else if ($reply_code == '039') {

    $reply_str = 'The card number is bad. Have you copied your card number correctly? Try again or use another card.';

    } else if ($reply_code == '003') {

    $reply_str = 'Please call your credit card company.';

    } else if ($reply_code == '004') {

    $reply_str = 'Your credit card was declined, please use another card.';

    } else {

    $reply_str = 'An unknown error has occured while trying to process your card. Try again or use another card.';

    }

    $reply_str .= $my_message;

     

    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_NETPAY_TEXT_ERROR_MESSAGE . ' code='.$reply_code.' '.$reply_str), 'SSL', true, false));

    }

    }

     

    function after_process() {

    return false;

    }

     

    function get_error() {

    global $HTTP_GET_VARS;

     

    $error = array('title' => MODULE_PAYMENT_NETPAY_TEXT_ERROR,

    'error' => stripslashes(urldecode($HTTP_GET_VARS['error'])));

     

    return $error;

    }

     

    function check() {

    if (!isset($this->_check)) {

    $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_NETPAY_STATUS'");

    $this->_check = tep_db_num_rows($check_query);

    }

    return $this->_check;

    }

     

    function install() {

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Netpay Module', 'MODULE_PAYMENT_NETPAY_STATUS', 'True', 'Do you want to accept Netpay payments?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");

     

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Login Username', 'MODULE_PAYMENT_NETPAY_LOGIN', 'testing', 'The account id used for the Netpay service', '6', '0', now())");

     

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_NETPAY_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");

     

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_NETPAY_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");

     

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_NETPAY_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");

    }

     

    function remove() {

    tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");

    }

     

    function keys() {

    return array('MODULE_PAYMENT_NETPAY_STATUS', 'MODULE_PAYMENT_NETPAY_LOGIN', 'MODULE_PAYMENT_NETPAY_ZONE', 'MODULE_PAYMENT_NETPAY_ORDER_STATUS_ID', 'MODULE_PAYMENT_NETPAY_SORT_ORDER');

    }

    }

    ?>

     

    =============================================

     

    In root/order.php

     

    order.php

    =========================

     

    <?php

    session_start();

     

    if ($flag==1){

    $TypeCredit=1;

    if ($Payments=="0" || $Payments==""){

    $Payments=1;

    }

    if ($Payments>1){$TypeCredit=8;}

     

    $PersonalNum=stripslashes($PersonalNum);

    $PhoneNumber=stripslashes($PhoneNumber);

    $Member=stripslashes($Member);

    $CardNum=stripslashes($CardNum);

    $ExpMonth=stripslashes($ExpMonth);

    $ExpYear=stripslashes($ExpYear);

    $Payments=stripslashes($Payments);

     

    $PersonalNum= htmlspecialchars($PersonalNum, ENT_QUOTES);

    $PhoneNumber= htmlspecialchars($PhoneNumber, ENT_QUOTES);

    $Member= htmlspecialchars($Member, ENT_QUOTES);

    $CardNum= htmlspecialchars($CardNum, ENT_QUOTES);

    $ExpMonth= htmlspecialchars($ExpMonth, ENT_QUOTES);

    $ExpYear= htmlspecialchars($ExpYear, ENT_QUOTES);

    $Payments= htmlspecialchars($Payments, ENT_QUOTES);

    $cashlink="https://www.intercash.net/member/remote_charge.asp?CompanyNum=1415119"; //Enter your Netpay account number here

    $cashlink.="&ReplyURL=http://www.pcmemory.co.il/result.php&Order=".$sessionid; //ADD YOUR SITE

    $cashlink.="&TransType=0";

    $cashlink.="&CardNum=".$CardNum;

    $cashlink.="&ExpMonth=".$ExpMonth;

    $cashlink.="&ExpYear=".$ExpYear;

    $cashlink.="&TypeCredit=".$TypeCredit;

    $cashlink.="&Payments=".$Payments;

    $cashlink.="&Amount=".$Amount;

    $cashlink.="&Currency=0";

    $cashlink.="&CVV2=000";

    $cashlink.="&PersonalNum=".$PersonalNum;

    $cashlink.="&PhoneNumber=".$PhoneNumber;

    $cashlink.="&Member=".$Member;

    $cashlink.="&UserName=".$username;

    $cashlink.="&Comment=".$comment;

    header ("Location: $cashlink");

    }

    if ($flag!=1){

     

    session_register('sessionid');

     

    $ses=session_id();

    $sessionid = "$REMOTE_ADDR$ses";

    $sessionid = str_replace(".", "", "$sessionid");

    ?>

     

    <html>

    <head>

    <title> </title>

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1255">

    </head>

    <script LANGUAGE="JavaScript">

    function sendfb(){

    fb.submit();

    divStep1.style.display="None";

    divStep2.style.display ="Block";

    }

    </script>

    <body>

     

    <!--****************************************************************************-->

    <table width="535" border="0" cellpadding="0" cellspacing="0">

    <form name="fb" id="fb" method="POST" action="order.php">

     

    <tr>

    <td style="padding-right:23" width="35%" > : <br>

    <input name="Member" type="text">

    </td>

     

    </tr>

    <tr>

    <td style="padding-right:23">.. : <br>

    <input name="PersonalNum" dir=ltr type="text" maxLength=9>

    </td>

     

    </tr>

    <tr>

    <td style="padding-right:23"> : <br>

    <input name="PhoneNumber" dir=ltr type="text" maxLength=10 >

    </td>

     

    </tr>

    <tr>

    <td style="padding-right:23"> : <br>

    <input name="CardNum" type="text" >

    </td>

     

    </tr>

    <tr>

    <td style="padding-right:23"> : <br>

     

    <SELECT name="ExpYear">

    <OPTION></OPTION>

    <OPTION value="2004">2004</OPTION>

    <OPTION value="2005">2005</OPTION>

    <OPTION value="2006">2006</OPTION>

    <OPTION value="2007">2007</OPTION>

    <OPTION value="2008">2008</OPTION>

    <OPTION value="2009">2009</OPTION>

    <OPTION value="2010">2010</OPTION>

    </SELECT>

    <SELECT name="ExpMonth">

    <OPTION></OPTION>

    <OPTION value="01">01</OPTION>

    <OPTION value="02">02</OPTION>

    <OPTION value="03">03</OPTION>

    <OPTION value="04">04</OPTION>

    <OPTION value="05">05</OPTION>

    <OPTION value="06">06</OPTION>

    <OPTION value="07">07</OPTION>

    <OPTION value="08">08</OPTION>

    <OPTION value="09">09</OPTION>

    <OPTION value="10">10</OPTION>

    <OPTION value="11">11</OPTION>

    <OPTION value="12">12</OPTION>

    </SELECT>

     

    <tr>

    <td style="padding-right:23"> : <br>

    <SELECT name="Payments">

    <OPTION value="1">1</OPTION>

    <OPTION value="2">2</OPTION>

    <OPTION value="3">3</OPTION>

    <OPTION value="4">4</OPTION>

    <OPTION value="5">5</OPTION>

    <OPTION value="6">6</OPTION>

    <OPTION value="7">7</OPTION>

    <OPTION value="8">8</OPTION>

    <OPTION value="9">9</OPTION>

    <OPTION value="10">10</OPTION>

    <OPTION value="11">11</OPTION>

    <OPTION value="12">12</OPTION>

    </SELECT>

    </tr>

    <tr>

    <td colspan="2" style="padding-top:20; padding-right:23;padding-bottom:17">

    <div id="divStep1" name="divStep1" style="display:block">

    <input type="submit" value="Submit" onclick=sendfb(); >

    </div>

    <div id="divStep2" name="divStep2" style="display:none">

    <font color='#FF0000'> , .....</font>

    </div>

    </td>

    </tr>

    <input type="hidden" name="flag" value="1">

    <input type="hidden" name="Amount" value="0.00">

    <input type="hidden" name="username" value="UserName">

    <input type="hidden" name="comment" value="Comments">

     

    </form>

    </table>

     

    <!--****************************************************************************-->

     

    </body>

    </html>

    <?php

    }

    ?>

     

    ========================================

     

    In root/result.php

     

    result.php

    ========================================

    <?php

    session_start();

     

    $s=session_id();

    $s="$REMOTE_ADDR$s";

    $s=str_replace(".", "", "$s");

    if ($Order!=$s){

    session_destroy();

    header ("Location: http://www.pcmemory.co.il/order.php"); //Add your site!

    }else{

    if ($Reply=="000"){

    $text_result="äçéåá òáø áäöìçä";

    }

     

    if ($Reply!="000"){

    $text_result="äçéåá ìà òáø áäöìçä";

    }

     

    ?>

     

    <html>

    <head>

    <title>Your Shop</title>

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1255">

    </head>

     

    <body>

     

    <table width="535" border="0" cellpadding="0" cellspacing="0">

     

    <tr>

    <td style="padding-right:23" width="100%" ><?php print ($text_result); ?><br>

     

    </td>

    </tr>

    <?php

    if ($Reply=="000"){

    ?>

    <tr>

    <td style="padding-right:23" width="100%" >îñôø äçéåá ëôé ùðøùí áîòøëú ðèôéé<br>

    <input type="text" value="<?php print ($TransID); ?>">

    </td>

    </tr>

    <tr>

    <td style="padding-right:23" width="100%" >äúàøéê åäùòä ùáå ðøùí äçéåá áîòøëú ðèôéé<br>

    <input type="text" value="<?php print ($Date); ?>">

    </td>

    </tr>

    <tr>

    <td style="padding-right:23" width="100%" >îñôø äçéåá/äæîðä ëôé ùñåô÷ òì éãëí<br>

    <input type="text" value="<?php print ($Order); ?>">

    </td>

    </tr>

    <tr>

    <td style="padding-right:23" width="100%" >ñëåí äçéåá<br>

    <input type="text" value="<?php print ($Amount); ?>">

    </td>

    </tr>

    <tr>

    <td style="padding-right:23" width="100%" >îñôø äúùìåîéí<br>

    <input type="text" value="<?php print ($Payments); ?>">

    </td>

    </tr>

    <tr>

    <td style="padding-right:23" width="100%" >ñåâ äîèáò<br>

    <input type="text" value="<?php print ($Currency); ?>">

    </td>

    </tr>

    <?php

    }

    ?>

     

    </table>

     

    <!--****************************************************************************-->

     

    </body>

    </html>

    <?php

    }

    ?>

     

    =========================================================

    Thanks a lot for your kind attention.

     

    Best Regards,

    Nathali

     

    Any help please??

    I know that it's forbidden to offer money for someone to do it for me, according to the forum rules, so I'm not allowed to do that... :-(

     

    My problem is very small..

     

    I need to add:

    1. Identification number of a person (ID) 9 digits to the credit card form.

    2. And Number of Payments that the customer input on the credit card form. from 1-3 payments

     

    Thats it !

     

    So if someone could be kind to help I will be very very glad!

     

    Thanks for your kind attention !

     

    Great day,

    Nathali


  7. Hi,

     

    I need to modify Netpay payment processor contribution and to change a little the code that I will be able to use it.

     

    I tried to get some help to solve it without success :'(

     

    I hope someone will be kind to help me to do that please..

     

    Please, Here is the link to Netpay processor system with the information how to connect Netpay to oscommerce.

     

    Thanks in advance for any help I get please...!!

     

    http://www.intercash.net/site_eng/main.asp

     

    Then in the "TO DEVELOPER CENTER" box press "go"

     

    Email: demo12@demo.com

    User name: demo12

    Password: 123456

     

    then press category: SILENT POST TRANSACTIONS

    subcategory: CREDIT CARD

     

    Here are the 3 files I installed:

    netpay.php

    order.php

    result.php

     

    in root/includes/modules/payment/netpay.php

     

    netpay.php

    ==================================

    <?php

     

    class netpay {

     

    var $code, $title, $description, $enabled;

     

    // class constructor

    function netpay() {

    global $order;

     

    $this->code = 'netpay';

    $this->title = MODULE_PAYMENT_NETPAY_TEXT_TITLE;

    $this->description = MODULE_PAYMENT_NETPAY_TEXT_DESCRIPTION;

    $this->enabled = ((MODULE_PAYMENT_NETPAY_STATUS == 'True') ? true : false);

    $this->sort_order = MODULE_PAYMENT_NETPAY_SORT_ORDER;

     

    if ((int)MODULE_PAYMENT_NETPAY_ORDER_STATUS_ID > 0) {

    $this->order_status = MODULE_PAYMENT_NETPAY_ORDER_STATUS_ID;

    }

     

    if (is_object($order)) $this->update_status();

     

    $this->form_action_url = 'https://www.intercash.net/member/remote_charge.asp';

    }

     

    // class methods

    function update_status() {

    global $order;

     

    if ( ($this->enabled == true) && ((int)MODULE_PAYMENT_NETPAY_ZONE > 0) ) {

    $check_flag = false;

    $check_query = tep_db_query("select zone_id from " . TABLE_ZONES_TO_GEO_ZONES . " where geo_zone_id = '" . MODULE_PAYMENT_NETPAY_ZONE . "' and zone_country_id = '" . $order->billing['country']['id'] . "' order by zone_id");

     

    while ($check = tep_db_fetch_array($check_query)) {

    if ($check['zone_id'] < 1) {

    $check_flag = true;

    break;

    } elseif ($check['zone_id'] == $order->billing['zone_id']) {

    $check_flag = true;

    break;

    }

    }

     

    if ($check_flag == false) {

    $this->enabled = false;

    }

    }

    }

     

    function javascript_validation() {

    $js =

    ' if (payment_value == "' . $this->code . '") {' . "\n" .

    ' var cc_owner = document.checkout_payment.netpay_cc_owner.value;' . "\n" .

    ' var cc_ccv = document.checkout_payment.netpay_ccv_number.value;' . "\n" .

    ' var cc_number = document.checkout_payment.netpay_cc_number.value;' . "\n" .

    ' if (cc_owner == "" || cc_owner.length < ' . CC_OWNER_MIN_LENGTH . ') {' . "\n" .

    ' error_message = error_message + "' . MODULE_PAYMENT_NETPAY_TEXT_JS_CC_OWNER . '";' . "\n" .

    ' error = 1;' . "\n" .

    ' }' . "\n" .

    ' if (cc_number == "" || cc_number.length < ' . CC_NUMBER_MIN_LENGTH . ') {' . "\n" .

    ' error_message = error_message + "' . MODULE_PAYMENT_NETPAY_TEXT_JS_CC_NUMBER . '";' . "\n" .

    ' error = 1;' . "\n" .

    ' }' . "\n" .

    ' if (cc_ccv == "" || cc_ccv.length < ' . CC_CVV_MIN_LENGTH . ') {' . "\n" .

    ' error_message = error_message + "' . MODULE_PAYMENT_NETPAY_TEXT_CCV_NUMBER_LEN . '";' . "\n" .

    ' error = 1;' . "\n" .

    ' }' . "\n" .

    ' }' . "\n";

     

    return $js;

    }

     

    function selection() {

    global $order;

     

    for ($i=1; $i<13; $i++) {

    $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));

    }

     

    $today = getdate();

    for ($i=$today['year']; $i < $today['year']+10; $i++) {

    $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));

    }

     

    $selection = array('id' => $this->code,

    'module' => $this->title,

    'fields' => array(

    array('title' => 'We Accept:','field' => '<b><font size=-1>Visa, Master Card and Amex</font></b>'),

    array( 'title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_OWNER,

    'field' => tep_draw_input_field('netpay_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_NUMBER,

    'field' => tep_draw_input_field('netpay_cc_number')),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_EXPIRES,

    'field' => tep_draw_pull_down_menu('netpay_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('netpay_cc_expires_year', $expires_year)),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CCV_NUMBER,

    'field' => tep_draw_input_field('netpay_ccv_number'))));

     

    return $selection;

    }

     

    function pre_confirmation_check() {

    global $HTTP_POST_VARS;

     

    include(DIR_WS_CLASSES . 'cc_validation.php');

     

    $cc_validation = new cc_validation();

     

    $result = $cc_validation->validate(

    $HTTP_POST_VARS['netpay_cc_number'], $HTTP_POST_VARS['netpay_cc_expires_month'], $HTTP_POST_VARS['netpay_cc_expires_year']);

     

    $result = true;

    $error = '';

     

    switch ($result) {

    case -1:

    $error = sprintf(TEXT_CCVAL_ERROR_UNKNOWN_CARD, substr($cc_validation->cc_number, 0, 4));

    break;

    case -2:

    case -3:

    case -4:

    $error = TEXT_CCVAL_ERROR_INVALID_DATE;

    break;

    case false:

    $error = TEXT_CCVAL_ERROR_INVALID_NUMBER;

    break;

    }

     

    if ( ($result == false) || ($result < 1) ) {

    $payment_error_return =

    'payment_error=' . $this->code . '&error=' . urlencode($error) .

    '&netpay_cc_owner=' .urlencode($HTTP_POST_VARS['netpay_cc_owner']) .

    '&netpay_cc_expires_month=' . $HTTP_POST_VARS['netpay_cc_expires_month'] .

    '&netpay_cc_expires_year=' . $HTTP_POST_VARS['netpay_cc_expires_year'];

     

    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false));

    }

     

    $this->cc_card_type = $cc_validation->cc_type;

    $this->cc_card_number = $cc_validation->cc_number;

    $this->cc_expiry_month = $cc_validation->cc_expiry_month;

    $this->cc_expiry_year = $cc_validation->cc_expiry_year;

    $this->cc_ccv = $HTTP_POST_VARS['netpay_ccv_number'];

    }

     

    function confirmation() {

    global $HTTP_POST_VARS;

     

    $confirmation = array('title' => $this->title . ': ' . $this->cc_card_type,

    'fields' => array(array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_OWNER,

    'field' => $HTTP_POST_VARS['netpay_cc_owner']),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_NUMBER,

    'field' => substr($this->cc_card_number, 0, 4) .

    str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CREDIT_CARD_EXPIRES,

    'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['netpay_cc_expires_month'], 1, '20' . $HTTP_POST_VARS['netpay_cc_expires_year']))),

    array('title' => MODULE_PAYMENT_NETPAY_TEXT_CCV_NUMBER,

    'field' => $HTTP_POST_VARS['netpay_ccv_number'])));

     

    return $confirmation;

    }

     

    function process_button () {

    global $HTTP_SERVER_VARS, $order, $customer_id,$currencies, $_SESSION;

     

     

    ///////////////// RAMDOMIZING SCRIPRT BY PATRIC VEVERKA \\\\\\\\\\\\\\\\\\

    /*$t1 = date("mdy");

    srand ((float) microtime() * 10000000);

    $input = array ("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z");

    $rand_keys = array_rand ($input, 2);

    $l1 = $input[$rand_keys[0]];

    $l2 = $input[$rand_keys[1]];

    $r1 = rand(0,9);

     

    $new_ordernum = $l1.$l2.$t1.$r1;

     

    $ordernum = $new_ordernum;*/

    //error_log ("new order id: " . $_SESSION['new_ordernum'], 1, "gnitzan@usa.net");

    ///////////////// End of Randomizing Script \\\\\\\\\\\\\\\\\\\

     

    // Build a list of products to put in the comment field

    for ($i=0; $i<sizeof($order->products); $i++) {

    if ($i==0) {

    $products_list = $products_list. "" .$order->products[$i]['name'];

    } else {

    $products_list = $products_list. ", " .$order->products[$i]['name'];

    }

    }

     

     

    $sequence = rand(1, 1000);

    $process_button_string = tep_draw_hidden_field('CompanyNum', MODULE_PAYMENT_NETPAY_LOGIN) .

    tep_draw_hidden_field('TypeCredit', '1') . // only credit type

    tep_draw_hidden_field('Currency', '1') . // only us dollars

    tep_draw_hidden_field('CVV2', $this->cc_ccv) . // CVV

    tep_draw_hidden_field('PersonalNum', '000000000') . // israeli id

    tep_draw_hidden_field('CardNum', $this->cc_card_number) .

    tep_draw_hidden_field('ExpMonth', $this->cc_expiry_month) .

    tep_draw_hidden_field('ExpYear', substr($this->cc_expiry_year, -2)) .

    tep_draw_hidden_field('Amount', number_format($order->info['total'], 2)) .

    tep_draw_hidden_field('UserName', $customer_id) .

    tep_draw_hidden_field('Member', $order->billing['firstname'] . ' ' .

    $order->billing['lastname']) .

    tep_draw_hidden_field('PhoneNumber', $order->customer['telephone']) .

    tep_draw_hidden_field('Payments', '1') .

    tep_draw_hidden_field('Order', $ordernum) .

    tep_draw_hidden_field('Email', $order->customer['email_address']) .

    tep_draw_hidden_field('Comment', $products_list) .

    tep_draw_hidden_field('ReplyURL', 'https://www.pcmemory.co.il/checkout_process.php'); //Your Site Here!

     

    $process_button_string .= tep_draw_hidden_field(tep_session_name(), tep_session_id());

     

    return $process_button_string;

    }

     

    function before_process() {

    global $HTTP_GET_VARS;

     

    //foreach ($HTTP_GET_VARS as $key => $value) {

    // echo "Key: $key; Value: $value<br>\n";

    //}

     

    $reply_code = $HTTP_GET_VARS['Reply'];

    $my_message = "----> If you get an error and you are sure there should not be a problem, please contact us (use the contact us button in the information box on the bottom left menu). Your order is always saved so we shall check and if the transaction is processed successfuly it shall go through manualy and you shall be notified.";

     

    if ( $reply_code != '000') {

    if ($reply_code == '500') {

    $reply_str = 'Your are not allowed to make on-line purchase';

    } else if ($reply_code == '501') {

    $reply_str = 'We are unable to connect to the credit card processing service';

    } else if ($reply_code == '502') {

    $reply_str = 'Security Code - CVV is missing';

    } else if ($reply_code == '522') {

    $reply_str = 'You have already made the same transaction less than 5 minutes ago';

    } else if ($reply_code == '143') {

    $reply_str = 'The card number you have entered is not a valid card number. Try again or use another card. (Please note, we accept only Visa, MC, AMEX).';

    } else if ($reply_code == '036') {

    $reply_str = 'The card has expired. Have you entered the correct Expiration Date? Try again or use another card.';

    } else if ($reply_code == '033') {

    $reply_str = 'The card number is bad. Have you copied your card number correctly? Try again or use another card.';

    } else if ($reply_code == '039') {

    $reply_str = 'The card number is bad. Have you copied your card number correctly? Try again or use another card.';

    } else if ($reply_code == '003') {

    $reply_str = 'Please call your credit card company.';

    } else if ($reply_code == '004') {

    $reply_str = 'Your credit card was declined, please use another card.';

    } else {

    $reply_str = 'An unknown error has occured while trying to process your card. Try again or use another card.';

    }

    $reply_str .= $my_message;

     

    tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_NETPAY_TEXT_ERROR_MESSAGE . ' code='.$reply_code.' '.$reply_str), 'SSL', true, false));

    }

    }

     

    function after_process() {

    return false;

    }

     

    function get_error() {

    global $HTTP_GET_VARS;

     

    $error = array('title' => MODULE_PAYMENT_NETPAY_TEXT_ERROR,

    'error' => stripslashes(urldecode($HTTP_GET_VARS['error'])));

     

    return $error;

    }

     

    function check() {

    if (!isset($this->_check)) {

    $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_NETPAY_STATUS'");

    $this->_check = tep_db_num_rows($check_query);

    }

    return $this->_check;

    }

     

    function install() {

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Netpay Module', 'MODULE_PAYMENT_NETPAY_STATUS', 'True', 'Do you want to accept Netpay payments?', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())");

     

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Login Username', 'MODULE_PAYMENT_NETPAY_LOGIN', 'testing', 'The account id used for the Netpay service', '6', '0', now())");

     

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort order of display.', 'MODULE_PAYMENT_NETPAY_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())");

     

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) values ('Payment Zone', 'MODULE_PAYMENT_NETPAY_ZONE', '0', 'If a zone is selected, only enable this payment method for that zone.', '6', '2', 'tep_get_zone_class_title', 'tep_cfg_pull_down_zone_classes(', now())");

     

    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, use_function, date_added) values ('Set Order Status', 'MODULE_PAYMENT_NETPAY_ORDER_STATUS_ID', '0', 'Set the status of orders made with this payment module to this value', '6', '0', 'tep_cfg_pull_down_order_statuses(', 'tep_get_order_status_name', now())");

    }

     

    function remove() {

    tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");

    }

     

    function keys() {

    return array('MODULE_PAYMENT_NETPAY_STATUS', 'MODULE_PAYMENT_NETPAY_LOGIN', 'MODULE_PAYMENT_NETPAY_ZONE', 'MODULE_PAYMENT_NETPAY_ORDER_STATUS_ID', 'MODULE_PAYMENT_NETPAY_SORT_ORDER');

    }

    }

    ?>

     

    =============================================

     

    In root/order.php

     

    order.php

    =========================

     

    <?php

    session_start();

     

    if ($flag==1){

    $TypeCredit=1;

    if ($Payments=="0" || $Payments==""){

    $Payments=1;

    }

    if ($Payments>1){$TypeCredit=8;}

     

    $PersonalNum=stripslashes($PersonalNum);

    $PhoneNumber=stripslashes($PhoneNumber);

    $Member=stripslashes($Member);

    $CardNum=stripslashes($CardNum);

    $ExpMonth=stripslashes($ExpMonth);

    $ExpYear=stripslashes($ExpYear);

    $Payments=stripslashes($Payments);

     

    $PersonalNum= htmlspecialchars($PersonalNum, ENT_QUOTES);

    $PhoneNumber= htmlspecialchars($PhoneNumber, ENT_QUOTES);

    $Member= htmlspecialchars($Member, ENT_QUOTES);

    $CardNum= htmlspecialchars($CardNum, ENT_QUOTES);

    $ExpMonth= htmlspecialchars($ExpMonth, ENT_QUOTES);

    $ExpYear= htmlspecialchars($ExpYear, ENT_QUOTES);

    $Payments= htmlspecialchars($Payments, ENT_QUOTES);

     

     

    $cashlink="https://www.intercash.net/member/remote_charge.asp?CompanyNum=1415119"; //Enter your Netpay account number here

    $cashlink.="&ReplyURL=http://www.pcmemory.co.il/result.php&Order=".$sessionid; //ADD YOUR SITE

    $cashlink.="&TransType=0";

    $cashlink.="&CardNum=".$CardNum;

    $cashlink.="&ExpMonth=".$ExpMonth;

    $cashlink.="&ExpYear=".$ExpYear;

    $cashlink.="&TypeCredit=".$TypeCredit;

    $cashlink.="&Payments=".$Payments;

    $cashlink.="&Amount=".$Amount;

    $cashlink.="&Currency=0";

    $cashlink.="&CVV2=000";

    $cashlink.="&PersonalNum=".$PersonalNum;

    $cashlink.="&PhoneNumber=".$PhoneNumber;

    $cashlink.="&Member=".$Member;

    $cashlink.="&UserName=".$username;

    $cashlink.="&Comment=".$comment;

    header ("Location: $cashlink");

    }

    if ($flag!=1){

     

    session_register('sessionid');

     

    $ses=session_id();

    $sessionid = "$REMOTE_ADDR$ses";

    $sessionid = str_replace(".", "", "$sessionid");

     

     

    ?>

     

    <html>

    <head>

    <title> </title>

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1255">

    </head>

    <script LANGUAGE="JavaScript">

    function sendfb(){

    fb.submit();

    divStep1.style.display="None";

    divStep2.style.display ="Block";

    }

    </script>

    <body>

     

    <!--****************************************************************************-->

    <table width="535" border="0" cellpadding="0" cellspacing="0">

    <form name="fb" id="fb" method="POST" action="order.php">

     

    <tr>

    <td style="padding-right:23" width="35%" > : <br>

    <input name="Member" type="text">

    </td>

     

    </tr>

    <tr>

    <td style="padding-right:23">.. : <br>

    <input name="PersonalNum" dir=ltr type="text" maxLength=9>

    </td>

     

    </tr>

    <tr>

    <td style="padding-right:23"> : <br>

    <input name="PhoneNumber" dir=ltr type="text" maxLength=10 >

    </td>

     

    </tr>

    <tr>

    <td style="padding-right:23"> : <br>

    <input name="CardNum" type="text" >

    </td>

     

    </tr>

    <tr>

    <td style="padding-right:23"> : <br>

     

    <SELECT name="ExpYear">

    <OPTION></OPTION>

    <OPTION value="2004">2004</OPTION>

    <OPTION value="2005">2005</OPTION>

    <OPTION value="2006">2006</OPTION>

    <OPTION value="2007">2007</OPTION>

    <OPTION value="2008">2008</OPTION>

    <OPTION value="2009">2009</OPTION>

    <OPTION value="2010">2010</OPTION>

    </SELECT>

    <SELECT name="ExpMonth">

    <OPTION></OPTION>

    <OPTION value="01">01</OPTION>

    <OPTION value="02">02</OPTION>

    <OPTION value="03">03</OPTION>

    <OPTION value="04">04</OPTION>

    <OPTION value="05">05</OPTION>

    <OPTION value="06">06</OPTION>

    <OPTION value="07">07</OPTION>

    <OPTION value="08">08</OPTION>

    <OPTION value="09">09</OPTION>

    <OPTION value="10">10</OPTION>

    <OPTION value="11">11</OPTION>

    <OPTION value="12">12</OPTION>

    </SELECT>

     

    <tr>

    <td style="padding-right:23"> : <br>

    <SELECT name="Payments">

    <OPTION value="1">1</OPTION>

    <OPTION value="2">2</OPTION>

    <OPTION value="3">3</OPTION>

    <OPTION value="4">4</OPTION>

    <OPTION value="5">5</OPTION>

    <OPTION value="6">6</OPTION>

    <OPTION value="7">7</OPTION>

    <OPTION value="8">8</OPTION>

    <OPTION value="9">9</OPTION>

    <OPTION value="10">10</OPTION>

    <OPTION value="11">11</OPTION>

    <OPTION value="12">12</OPTION>

    </SELECT>

     

     

    </tr>

    <tr>

    <td colspan="2" style="padding-top:20; padding-right:23;padding-bottom:17">

    <div id="divStep1" name="divStep1" style="display:block">

    <input type="submit" value="Submit" onclick=sendfb(); >

    </div>

    <div id="divStep2" name="divStep2" style="display:none">

    <font color='#FF0000'> , .....</font>

    </div>

    </td>

    </tr>

    <input type="hidden" name="flag" value="1">

    <input type="hidden" name="Amount" value="0.00">

    <input type="hidden" name="username" value="UserName">

    <input type="hidden" name="comment" value="Comments">

     

    </form>

    </table>

     

    <!--****************************************************************************-->

     

    </body>

    </html>

    <?php

    }

    ?>

     

    ========================================

     

    In root/result.php

     

    result.php

    ========================================

    <?php

    session_start();

     

    $s=session_id();

    $s="$REMOTE_ADDR$s";

    $s=str_replace(".", "", "$s");

    if ($Order!=$s){

    session_destroy();

    header ("Location: http://www.pcmemory.co.il/order.php"); //Add your site!

    }else{

     

     

    if ($Reply=="000"){

    $text_result="äçéåá òáø áäöìçä";

    }

     

    if ($Reply!="000"){

    $text_result="äçéåá ìà òáø áäöìçä";

    }

     

    ?>

     

    <html>

    <head>

    <title>Your Shop</title>

    <meta http-equiv="Content-Type" content="text/html; charset=windows-1255">

    </head>

     

    <body>

     

    <table width="535" border="0" cellpadding="0" cellspacing="0">

     

    <tr>

    <td style="padding-right:23" width="100%" ><?php print ($text_result); ?><br>

     

    </td>

    </tr>

    <?php

    if ($Reply=="000"){

    ?>

    <tr>

    <td style="padding-right:23" width="100%" >îñôø äçéåá ëôé ùðøùí áîòøëú ðèôéé<br>

    <input type="text" value="<?php print ($TransID); ?>">

    </td>

    </tr>

    <tr>

    <td style="padding-right:23" width="100%" >äúàøéê åäùòä ùáå ðøùí äçéåá áîòøëú ðèôéé<br>

    <input type="text" value="<?php print ($Date); ?>">

    </td>

    </tr>

    <tr>

    <td style="padding-right:23" width="100%" >îñôø äçéåá/äæîðä ëôé ùñåô÷ òì éãëí<br>

    <input type="text" value="<?php print ($Order); ?>">

    </td>

    </tr>

    <tr>

    <td style="padding-right:23" width="100%" >ñëåí äçéåá<br>

    <input type="text" value="<?php print ($Amount); ?>">

    </td>

    </tr>

    <tr>

    <td style="padding-right:23" width="100%" >îñôø äúùìåîéí<br>

    <input type="text" value="<?php print ($Payments); ?>">

    </td>

    </tr>

    <tr>

    <td style="padding-right:23" width="100%" >ñåâ äîèáò<br>

    <input type="text" value="<?php print ($Currency); ?>">

    </td>

    </tr>

    <?php

    }

    ?>

     

    </table>

     

    <!--****************************************************************************-->

     

    </body>

    </html>

    <?php

    }

    ?>

     

    =========================================================

     

     

    Thanks a lot for your kind attention.

     

    Best Regards,

    Nathali


  8. Hi,

     

    I use send html email row mod and it works very good. Thanks to the author.

     

    When I installed activation code contrib. there is a little conflict. It sends 2 emails when customers create an account...

     

    Did someone installed this 2 contrib. together and can help me to solve it please??

     

    Here is the section in my create_account.php that the code is there:

     

    if (ACTIVATION_CODE == 'off') {

    // $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;

    tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

    tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));

    } else {

    $activation_id = md5($email_address);

    $verification_href = tep_href_link(FILENAME_ACCOUNT_ACTIVATE, 'activation_id=' . $activation_id, 'SSL');

    $verification_mail = tep_href_link(FILENAME_ACCOUNT_ACTIVATE, 'activation_id=' . $activation_id . '&activation_code=' . $activation_code, 'SSL');

    $verification_link = '<a href="' . $verification_mail . '">' . $verification_mail . '</a>' ."\n\n";

    $activation_text = EMAIL_TEXT_ACTIVATION;

    $email_text .= EMAIL_WELCOME . EMAIL_TEXT . $activation_text . $verification_link . EMAIL_CONTACT . EMAIL_WARNING;

    tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

    tep_redirect($verification_href);

     

    I think I should change the line:

     

    $email_text .= EMAIL_WELCOME . EMAIL_TEXT . $activation_text . $verification_link . EMAIL_CONTACT . EMAIL_WARNING;

     

    TO something like that:

     

    $email_text .= $activation_text . $verification_link . EMAIL_CONTACT . EMAIL_WARNING;

     

    Please correct me if this is the right solution...

     

    Thanks for the kind attention !!

     

    any help please ??


  9. Hi,

     

    I use send html email row mod and it works very good. Thanks to the author.

     

    When I installed activation code contrib. there is a little conflict. It sends 2 emails when customers create an account...

     

    Did someone installed this 2 contrib. together and can help me to solve it please??

     

    Here is the section in my create_account.php that the code is there:

     

    if (ACTIVATION_CODE == 'off') {

    // $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING;

    tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

    tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));

    } else {

    $activation_id = md5($email_address);

    $verification_href = tep_href_link(FILENAME_ACCOUNT_ACTIVATE, 'activation_id=' . $activation_id, 'SSL');

    $verification_mail = tep_href_link(FILENAME_ACCOUNT_ACTIVATE, 'activation_id=' . $activation_id . '&activation_code=' . $activation_code, 'SSL');

    $verification_link = '<a href="' . $verification_mail . '">' . $verification_mail . '</a>' ."\n\n";

    $activation_text = EMAIL_TEXT_ACTIVATION;

    $email_text .= EMAIL_WELCOME . EMAIL_TEXT . $activation_text . $verification_link . EMAIL_CONTACT . EMAIL_WARNING;

    tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

    tep_redirect($verification_href);

     

    I think I should change the line:

     

    $email_text .= EMAIL_WELCOME . EMAIL_TEXT . $activation_text . $verification_link . EMAIL_CONTACT . EMAIL_WARNING;

     

    TO something like that:

     

    $email_text .= $activation_text . $verification_link . EMAIL_CONTACT . EMAIL_WARNING;

     

    Please correct me if this is the right solution...

     

    Thanks for the kind attention !!


  10. Hi,

     

    I use Easy Populate 2.76d-MS2.

     

    I upload the products. It doesn't give me any errors and on each row I get product updated. At the end it shows "ref." rows.

     

    When I check my store I see that the categories & the products where updated good.

     

    MY problem is:

     

    Thats it is only updating the categories only in the defualt lang. So when I switch language I do not see the categories for that language although I entered them in the EP.text file. ??

    BUT when I switch to the other lang. from the products page in the defualt lang. I get the products.

     

    So I thing my problem is only in the categories name of not the defualt lang. all the rest is good !

     

    Could someone advise me please what to do. ????

     

    Maybe I need to change something in the easypopulate.php file ? My defualt lang. is EN=1, and He=4

     

    Please help me.. !

     

    Thanks a lot for the attention,


  11. Hi,

     

    I use EP . I want to have additional product no. in the database that it will be manufacturer serial number. off course this number will not show on my website !

     

    Then to have the posibility to upload some products by EP according to the manufacturer serial number only and not by my products serial numbers. Since my manufacturer has defrent serials numbers then me.

     

    This could help very much to everyone that get an excel prices from his manufacturer (with the manufacturer serial numbers) and he could easily convert it to the UPLOAD format of EP !

     

    Then EP will check each product record, if the manufacturer serial number excist there then he will update the product price.

    If there is no manufacturer serial number then it will not update the price in that product.

     

    Is it not a problem to do that?

     

    Anyone could advise please ??

     

    Best Regards,

    Great day to you all !

     

    Any help please ??


  12. Hi,

     

    I use EP . I want to have additional product no. in the database that it will be manufacturer serial number. off course this number will not show on my website !

     

    Then to have the posibility to upload some products by EP according to the manufacturer serial number only and not by my products serial numbers. Since my manufacturer has defrent serials numbers then me.

     

    This could help very much to everyone that get an excel prices from his manufacturer (with the manufacturer serial numbers) and he could easily convert it to the UPLOAD format of EP !

     

    Then EP will check each product record, if the manufacturer serial number excist there then he will update the product price.

    If there is no manufacturer serial number then it will not update the price in that product.

     

    Is it not a problem to do that?

     

    Anyone could advise please ??

     

    Best Regards,

    Great day to you all !


  13. Hi,

     

    I installed this contrib. and every thing works ok. But when A customer create an account he doesn't get the creat account email as it should be..

     

    here is the file: create_account/php

     

    <?php

    /*

    $Id: create_account.php,v 1.65 2003/06/09 23:03:54 hpdl Exp $

     

    osCommerce, Open Source E-Commerce Solutions

    http://www.oscommerce.com

     

    Copyright © 2003 osCommerce

     

    Released under the GNU General Public License

    */

     

    require('includes/application_top.php');

     

    // needs to be included earlier to set the success message in the messageStack

    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT);

    //-MS- Active Countries

    $country = (isset($HTTP_POST_VARS['country']))?tep_db_prepare_input($HTTP_POST_VARS['country']):((int)STORE_COUNTRY);

    $country_flag = (isset($HTTP_POST_VARS['country_old']) && ($country != $HTTP_POST_VARS['country_old']))?true:false;

    //-MS- Active Countries EOM

    $process = false;

    if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) {

    $process = true;

     

    if (ACCOUNT_GENDER == 'true') {

    if (isset($HTTP_POST_VARS['gender'])) {

    $gender = tep_db_prepare_input($HTTP_POST_VARS['gender']);

    } else {

    $gender = false;

    }

    }

    $firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);

    $lastname = tep_db_prepare_input($HTTP_POST_VARS['lastname']);

    if (ACCOUNT_DOB == 'true') $dob = tep_db_prepare_input($HTTP_POST_VARS['dob']);

    $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);

    if (ACCOUNT_COMPANY == 'true') $company = tep_db_prepare_input($HTTP_POST_VARS['company']);

    $street_address = tep_db_prepare_input($HTTP_POST_VARS['street_address']);

    if (ACCOUNT_SUBURB == 'true') $suburb = tep_db_prepare_input($HTTP_POST_VARS['suburb']);

    $postcode = tep_db_prepare_input($HTTP_POST_VARS['postcode']);

    $city = tep_db_prepare_input($HTTP_POST_VARS['city']);

    if (ACCOUNT_STATE == 'true') {

    $state = tep_db_prepare_input($HTTP_POST_VARS['state']);

    if (isset($HTTP_POST_VARS['zone_id'])) {

    $zone_id = tep_db_prepare_input($HTTP_POST_VARS['zone_id']);

    } else {

    $zone_id = false;

    }

    }

     

    $telephone = tep_db_prepare_input($HTTP_POST_VARS['telephone']);

    $fax = tep_db_prepare_input($HTTP_POST_VARS['fax']);

    if (isset($HTTP_POST_VARS['newsletter'])) {

    $newsletter = tep_db_prepare_input($HTTP_POST_VARS['newsletter']);

    } else {

    $newsletter = false;

    }

    $password = tep_db_prepare_input($HTTP_POST_VARS['password']);

    $confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']);

     

    $error = false;

     

    if (ACCOUNT_GENDER == 'true') {

    if ( ($gender != 'm') && ($gender != 'f') ) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_GENDER_ERROR);

    }

    }

     

    if (strlen($firstname) < ENTRY_FIRST_NAME_MIN_LENGTH) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_FIRST_NAME_ERROR);

    }

     

    if (strlen($lastname) < ENTRY_LAST_NAME_MIN_LENGTH) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_LAST_NAME_ERROR);

    }

     

    if (ACCOUNT_DOB == 'true') {

    if (checkdate(substr(tep_date_raw($dob), 4, 2), substr(tep_date_raw($dob), 6, 2), substr(tep_date_raw($dob), 0, 4)) == false) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR);

    }

    }

     

    if (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR);

    } elseif (tep_validate_email($email_address) == false) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);

    } else {

    $check_email_query = tep_db_query("select count(*) as total from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");

    $check_email = tep_db_fetch_array($check_email_query);

    if ($check_email['total'] > 0) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_EMAIL_ADDRESS_ERROR_EXISTS);

    }

    }

     

    if (strlen($street_address) < ENTRY_STREET_ADDRESS_MIN_LENGTH) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_STREET_ADDRESS_ERROR);

    }

     

    if (strlen($postcode) < ENTRY_POSTCODE_MIN_LENGTH) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_POST_CODE_ERROR);

    }

     

    if (strlen($city) < ENTRY_CITY_MIN_LENGTH) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_CITY_ERROR);

    }

     

    if (is_numeric($country) == false) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_COUNTRY_ERROR);

    }

     

    if (ACCOUNT_STATE == 'true') {

    //-MS- Added Active Countries

    $zone_id = 0;

    if( $country_flag ) {

    $zone_query = tep_db_query("select zone_id from " . TABLE_ZONES . " where zone_status='1' and zone_country_id = '" . (int)$country . "'");

    if (tep_db_num_rows($zone_query) > 0) {

    $entry_state_has_zones = true;

    }

     

    } else {

    $zone_query = tep_db_query("select zone_id from " . TABLE_ZONES . " where zone_status='1' and zone_country_id = '" . (int)$country . "' and zone_id = '" . tep_db_input($state) . "'");

    if (tep_db_num_rows($zone_query) == 1) {

    $entry_state_has_zones = true;

    $zone = tep_db_fetch_array($zone_query);

    $zone_id = $zone['zone_id'];

    } else {

    $error = true;

    $messageStack->add('create_account', ENTRY_STATE_ERROR_SELECT);

    }

    }

    //-MS- Added Active Countries EOM

    }

     

    if (strlen($telephone) < ENTRY_TELEPHONE_MIN_LENGTH) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_TELEPHONE_NUMBER_ERROR);

    }

     

     

    if (strlen($password) < ENTRY_PASSWORD_MIN_LENGTH) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_PASSWORD_ERROR);

    } elseif ($password != $confirmation) {

    $error = true;

     

    $messageStack->add('create_account', ENTRY_PASSWORD_ERROR_NOT_MATCHING);

    }

     

    if( !$error && !$country_flag) {

    $sql_data_array = array('customers_firstname' => $firstname,

    'customers_lastname' => $lastname,

    'customers_email_address' => $email_address,

    'customers_ip_address' => $REMOTE_ADDR,

    'customers_telephone' => $telephone,

    'customers_fax' => $fax,

    'customers_newsletter' => $newsletter,

    'customers_password' => tep_encrypt_password($password));

     

    if (ACCOUNT_GENDER == 'true') $sql_data_array['customers_gender'] = $gender;

    if (ACCOUNT_DOB == 'true') $sql_data_array['customers_dob'] = tep_date_raw($dob);

     

    tep_db_perform(TABLE_CUSTOMERS, $sql_data_array);

     

    $customer_id = tep_db_insert_id();

     

    $sql_data_array = array('customers_id' => $customer_id,

    'entry_firstname' => $firstname,

    'entry_lastname' => $lastname,

    'entry_street_address' => $street_address,

    'entry_postcode' => $postcode,

    'entry_city' => $city,

    'entry_country_id' => $country);

     

    if (ACCOUNT_GENDER == 'true') $sql_data_array['entry_gender'] = $gender;

    if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $company;

    if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $suburb;

    if (ACCOUNT_STATE == 'true') {

    if ($zone_id > 0) {

    $sql_data_array['entry_zone_id'] = $zone_id;

    $sql_data_array['entry_state'] = '';

    } else {

    $sql_data_array['entry_zone_id'] = '0';

    $sql_data_array['entry_state'] = $state;

    }

    }

     

    tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);

     

    $address_id = tep_db_insert_id();

     

    tep_db_query("update " . TABLE_CUSTOMERS . " set customers_default_address_id = '" . (int)$address_id . "' where customers_id = '" . (int)$customer_id . "'");

     

    tep_db_query("insert into " . TABLE_CUSTOMERS_INFO . " (customers_info_id, customers_info_number_of_logons, customers_info_date_account_created) values ('" . (int)$customer_id . "', '0', now())");

     

    if (SESSION_RECREATE == 'True') {

    tep_session_recreate();

    }

     

    $customer_first_name = $firstname;

    $customer_default_address_id = $address_id;

    $customer_country_id = $country;

    $customer_zone_id = $zone_id;

    tep_session_register('customer_id');

    tep_session_register('customer_first_name');

    tep_session_register('customer_default_address_id');

    tep_session_register('customer_country_id');

    tep_session_register('customer_zone_id');

     

    // restore cart contents

    $cart->restore_contents();

     

    // BEGIN SEND HTML MAIL//

     

    $name = $firstname . " " . $lastname;

    $Varlogo = ' '.VARLOGO.' ' ;

     

    $Vartable1 = ' '.VARTABLE1.' ' ;

    $Vartable2 = ' '.VARTABLE2.' ' ;

    $Vartextmail = EMAILWELCOME . EMAILTEXT . EMAILCONTACT . EMAILWARNING;

    $Vartrcolor = ' '. TRCOLOR . ' ' ;

    $Varmailfooter = ' ' . EMAIL_TEXT_FOOTER . ' <br><br> ' ;

     

    if (ACCOUNT_GENDER == 'true') {

    if ($HTTP_POST_VARS['gender'] == 'm') {

    $Vargendertext = EMAILGREET_MR;

    } else {

    $Vargendertext = EMAILGREET_MS;

    }

    } else {

    $Vargendertext = EMAILGREET_NONE;

    }

     

     

    require(DIR_WS_MODULES . 'email/html_create_account.php');

    $email_text = $html_email_text ;

     

    if (EMAIL_USE_HTML == 'true') {

     

    $email_text;

     

    }

     

    else

     

    {

     

    if (ACCOUNT_GENDER == 'true') {

    if ($HTTP_POST_VARS['gender'] == 'm') {

    $email_text = EMAILGREET_MR;

    } else {

    $email_text = EMAILGREET_MS;

    }

    } else {

    $email_text = EMAILGREET_NONE;

    }

     

    $email_text .= EMAILWELCOME . "\n\n" . EMAILTEXT ."\n\n" . EMAILCONTACT .

    EMAIL_TEXT_FOOTER . "\n\n\n" .

    EMAIL_SEPARATOR . "\n" .

    EMAILWARNING . "\n\n" ;

    $email_text .= HTTP_SERVER . DIR_WS_CATALOG . "\n" .

    EMAIL_TEXT_FOOTERR . "\n" ;

     

    }

     

     

    //END SEND HTML EMAIL//

    tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

     

    tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL'));

    }

    }

     

    $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'));

    ?>

    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

    <html <?php echo HTML_PARAMS; ?>>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">

    <title><?php echo TITLE; ?></title>

    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">

    <link rel="stylesheet" type="text/css" href="stylesheet.css">

    <?php require('includes/form_check.js.php'); ?>

    </head>

    <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">

    <!-- header //-->

    <?php require(DIR_WS_INCLUDES . 'header.php'); ?>

    <!-- header_eof //-->

     

    <!-- body //-->

    <table border="0" width="100%" cellspacing="3" cellpadding="3">

    <tr>

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

    <!-- left_navigation //-->

    <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>

    <!-- left_navigation_eof //-->

    </table></td>

    <!-- body_text //-->

    <td width="100%" valign="top"><?php echo tep_draw_form('create_account', tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'post', 'onSubmit="return check_form(create_account);"') . tep_draw_hidden_field('action', 'process'); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">

    <tr>

    <td><table border="0" width="100%" cellspacing="0" cellpadding="0">

    <tr>

    <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>

    <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_account.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <tr>

    <td class="smallText"><br><?php echo sprintf(TEXT_ORIGIN_LOGIN, tep_href_link(FILENAME_LOGIN, tep_get_all_get_params(), 'SSL')); ?></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <?php

    if( $messageStack->size('create_account') > 0 && !$country_flag ) {

    ?>

    <tr>

    <td><?php echo $messageStack->output('create_account'); ?></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <?php

    }

    ?>

    <tr>

    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">

    <tr>

    <td class="main"><b><?php echo CATEGORY_PERSONAL; ?></b></td>

    <td class="inputRequirement" align="right"><?php echo FORM_REQUIRED_INFORMATION; ?></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

    <tr class="infoBoxContents">

    <td><table border="0" cellspacing="2" cellpadding="2">

    <?php

    if (ACCOUNT_GENDER == 'true') {

    ?>

    <tr>

    <td class="main"><?php echo ENTRY_GENDER; ?></td>

    <td class="main"><?php echo tep_draw_radio_field('gender', 'm') . '  ' . MALE . '  ' . tep_draw_radio_field('gender', 'f') . '  ' . FEMALE . ' ' . (tep_not_null(ENTRY_GENDER_TEXT) ? '<span class="inputRequirement">' . ENTRY_GENDER_TEXT . '</span>': ''); ?></td>

    </tr>

    <?php

    }

    ?>

    <tr>

    <td class="main"><?php echo ENTRY_FIRST_NAME; ?></td>

    <td class="main"><?php echo tep_draw_input_field('firstname') . ' ' . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_FIRST_NAME_TEXT . '</span>': ''); ?></td>

    </tr>

    <tr>

    <td class="main"><?php echo ENTRY_LAST_NAME; ?></td>

    <td class="main"><?php echo tep_draw_input_field('lastname') . ' ' . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '<span class="inputRequirement">' . ENTRY_LAST_NAME_TEXT . '</span>': ''); ?></td>

    </tr>

    <?php

    if (ACCOUNT_DOB == 'true') {

    ?>

    <tr>

    <td class="main"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>

    <td class="main"><?php echo tep_draw_input_field('dob') . ' ' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>

    </tr>

    <?php

    }

    ?>

    <tr>

    <td class="main"><?php echo ENTRY_EMAIL_ADDRESS; ?></td>

    <td class="main"><?php echo tep_draw_input_field('email_address') . ' ' . (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>': ''); ?></td>

    </tr>

    </table></td>

    </tr>

    </table></td>

    </tr>

    <?php

    if (ACCOUNT_COMPANY == 'true') {

    ?>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <tr>

    <td class="main"><b><?php echo CATEGORY_COMPANY; ?></b></td>

    </tr>

    <tr>

    <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

    <tr class="infoBoxContents">

    <td><table border="0" cellspacing="2" cellpadding="2">

    <tr>

    <td class="main"><?php echo ENTRY_COMPANY; ?></td>

    <td class="main"><?php echo tep_draw_input_field('company') . ' ' . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?></td>

    </tr>

    </table></td>

    </tr>

    </table></td>

    </tr>

    <?php

    }

    ?>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <tr>

    <td class="main"><b><?php echo CATEGORY_ADDRESS; ?></b></td>

    </tr>

    <tr>

    <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

    <tr class="infoBoxContents">

    <td><table border="0" cellspacing="2" cellpadding="2">

    <tr>

    <td class="main"><?php echo ENTRY_STREET_ADDRESS; ?></td>

    <td class="main"><?php echo tep_draw_input_field('street_address') . ' ' . (tep_not_null(ENTRY_STREET_ADDRESS_TEXT) ? '<span class="inputRequirement">' . ENTRY_STREET_ADDRESS_TEXT . '</span>': ''); ?></td>

    </tr>

    <?php

    if (ACCOUNT_SUBURB == 'true') {

    ?>

    <tr>

    <td class="main"><?php echo ENTRY_SUBURB; ?></td>

    <td class="main"><?php echo tep_draw_input_field('suburb') . ' ' . (tep_not_null(ENTRY_SUBURB_TEXT) ? '<span class="inputRequirement">' . ENTRY_SUBURB_TEXT . '</span>': ''); ?></td>

    </tr>

    <?php

    }

    ?>

    <tr>

    <td class="main"><?php echo ENTRY_POST_CODE; ?></td>

    <td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>

    </tr>

    <tr>

    <td class="main"><?php echo ENTRY_CITY; ?></td>

    <td class="main"><?php echo tep_draw_input_field('city') . ' ' . (tep_not_null(ENTRY_CITY_TEXT) ? '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>': ''); ?></td>

    </tr>

    <?php

    if (ACCOUNT_STATE == 'true') {

    ?>

    <tr>

    <td class="main"><?php echo ENTRY_STATE; ?></td>

    <td class="main">

    <?php

    //-MS- Added Active Countries

    if ($process == true) {

    if ($entry_state_has_zones == true) {

    $zones_array = array();

    $zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));

    $zones_query = tep_db_query("select zone_id, zone_name from " . TABLE_ZONES . " where zone_status='1' and zone_country_id = '" . (int)$country . "' order by zone_name");

    while ($zones_values = tep_db_fetch_array($zones_query)) {

    $zones_array[] = array('id' => $zones_values['zone_id'], 'text' => $zones_values['zone_name']);

    }

    echo tep_draw_pull_down_menu('state', $zones_array);

    } else {

    $zones_array = array();

    $zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));

    $zones_query = tep_db_query("select zone_id, zone_name from " . TABLE_ZONES . " where zone_status='1' order by zone_name");

    while ($zones_values = tep_db_fetch_array($zones_query)) {

    $zones_array[] = array('id' => $zones_values['zone_id'], 'text' => $zones_values['zone_name']);

    }

    echo tep_draw_pull_down_menu('state', $zones_array);

    }

    } else {

    $zones_array = array();

    $zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));

    $zones_query = tep_db_query("select zone_id, zone_name from " . TABLE_ZONES . " where zone_status='1' and zone_country_id = '" . (int)$country . "' order by zone_name");

    while ($zones_values = tep_db_fetch_array($zones_query)) {

    $zones_array[] = array('id' => $zones_values['zone_id'], 'text' => $zones_values['zone_name']);

    }

    echo tep_draw_pull_down_menu('state', $zones_array);

    }

    //-MS- Added Active Countries EOM

     

    if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;

    ?>

    </td>

    </tr>

    <?php

    }

    ?>

    <tr>

    <td class="main"><?php echo ENTRY_COUNTRY; ?></td>

    <td class="main"><b><?php echo ($tmp_object = tep_get_country_active_list('country', $country, 'onChange="this.form.submit();"')) . tep_draw_hidden_field('country_old', $country) . ' ' . (is_array($tmp_object) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></b></td>

    </tr>

    </table></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <tr>

    <td class="main"><b><?php echo CATEGORY_CONTACT; ?></b></td>

    </tr>

    <tr>

    <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

    <tr class="infoBoxContents">

    <td><table border="0" cellspacing="2" cellpadding="2">

    <tr>

    <td class="main"><?php echo ENTRY_TELEPHONE_NUMBER; ?></td>

    <td class="main"><?php echo tep_draw_input_field('telephone') . ' ' . (tep_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>': ''); ?></td>

    </tr>

    <tr>

    <td class="main"><?php echo ENTRY_FAX_NUMBER; ?></td>

    <td class="main"><?php echo tep_draw_input_field('fax') . ' ' . (tep_not_null(ENTRY_FAX_NUMBER_TEXT) ? '<span class="inputRequirement">' . ENTRY_FAX_NUMBER_TEXT . '</span>': ''); ?></td>

    </tr>

    </table></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <tr>

    <td class="main"><b><?php echo CATEGORY_OPTIONS; ?></b></td>

    </tr>

    <tr>

    <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

    <tr class="infoBoxContents">

    <td><table border="0" cellspacing="2" cellpadding="2">

    <tr>

    <td class="main"><?php echo ENTRY_NEWSLETTER; ?></td>

    <td class="main"><?php echo tep_draw_checkbox_field('newsletter', '1', $checked = true) . ' ' . (tep_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>': ''); ?></td>

    </tr>

    </table></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <tr>

    <td class="main"><b><?php echo CATEGORY_PASSWORD; ?></b></td>

    </tr>

    <tr>

    <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

    <tr class="infoBoxContents">

    <td><table border="0" cellspacing="2" cellpadding="2">

    <tr>

    <td class="main"><?php echo ENTRY_PASSWORD; ?></td>

    <td class="main"><?php echo tep_draw_password_field('password') . ' ' . (tep_not_null(ENTRY_PASSWORD_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_TEXT . '</span>': ''); ?></td>

    </tr>

    <tr>

    <td class="main"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></td>

    <td class="main"><?php echo tep_draw_password_field('confirmation') . ' ' . (tep_not_null(ENTRY_PASSWORD_CONFIRMATION_TEXT) ? '<span class="inputRequirement">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>': ''); ?></td>

    </tr>

    </table></td>

    </tr>

    </table></td>

    </tr>

    <tr>

    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

    </tr>

    <tr>

    <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">

    <tr class="infoBoxContents">

    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">

    <tr>

    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

    <td><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>

    <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>

    </tr>

    <tr>

    <td class="main">

    <?php echo HEADING_IPRECORDED_1;

    $ip_iprecorded = YOUR_IP_IPRECORDED;

    $ip = $HTTP_SERVER_VARS["REMOTE_ADDR"]; ?>

    <?php echo "<div align=\"justify\"><font size=\".1\">$ip_iprecorded: $ip "; ?></div>

    </td>

    </tr>

    </table></td>

    </tr>

    </table></td>

    </tr>

    </table></form></td>

    <!-- body_text_eof //-->

    <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">

    <!-- right_navigation //-->

    <?php include(DIR_WS_INCLUDES . 'column_right.php'); ?>

    <!-- right_navigation_eof //-->

    </table></td>

    </tr>

    </table>

    <!-- body_eof //-->

     

    <!-- footer //-->

    <?php include(DIR_WS_INCLUDES . 'footer.php'); ?>

    <!-- footer_eof //-->

    <br>

    </body>

    </html>

    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

     

     

    Anyone could help please???

×