Lucky4444
Pioneers-
Posts
14 -
Joined
-
Last visited
Profile Information
-
Real Name
Kee
Lucky4444's Achievements
-
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Hi.. Rainer I notice that the mobile_password_reset only changes the password on the desktop. I tried using the old and the new andriod phone and the password change does not function properly. Don't know if I did something wrong. Using my mobile phone (Mobile site) I sign-in to my account -> my account -> your password But the password does not change. Thank you! mobile_password_reset.php <?php require_once('mobile/includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . str_replace("mobile_", "", FILENAME_PASSWORD_RESET)); $error = false; if ( !isset($HTTP_GET_VARS['account']) || !isset($HTTP_GET_VARS['key']) ) { $error = true; $messageStack->add_session('password_forgotten', TEXT_NO_RESET_LINK_FOUND); } if ($error == false) { $email_address = tep_db_prepare_input($HTTP_GET_VARS['account']); $password_key = tep_db_prepare_input($HTTP_GET_VARS['key']); if ( (strlen($email_address) < ENTRY_EMAIL_ADDRESS_MIN_LENGTH) || (tep_validate_email($email_address) == false) ) { $error = true; $messageStack->add_session('password_forgotten', TEXT_NO_EMAIL_ADDRESS_FOUND); } elseif (strlen($password_key) != 40) { $error = true; $messageStack->add_session('password_forgotten', TEXT_NO_RESET_LINK_FOUND); } else { $check_customer_query = tep_db_query("select c.customers_id, c.customers_email_address, ci.password_reset_key, ci.password_reset_date from " . TABLE_CUSTOMERS . " c, " . TABLE_CUSTOMERS_INFO . " ci where c.customers_email_address = '" . tep_db_input($email_address) . "' and c.customers_id = ci.customers_info_id"); if (tep_db_num_rows($check_customer_query)) { $check_customer = tep_db_fetch_array($check_customer_query); if ( empty($check_customer['password_reset_key']) || ($check_customer['password_reset_key'] != $password_key) || (strtotime($check_customer['password_reset_date'] . ' +1 day') <= time()) ) { $error = true; $messageStack->add_session('password_forgotten', TEXT_NO_RESET_LINK_FOUND); } } else { $error = true; $messageStack->add_session('password_forgotten', TEXT_NO_EMAIL_ADDRESS_FOUND); } } } if ($error == true) { tep_redirect(tep_href_link(FILENAME_PASSWORD_FORGOTTEN)); } if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process') && isset($HTTP_POST_VARS['formid']) && ($HTTP_POST_VARS['formid'] == $sessiontoken)) { $password_new = tep_db_prepare_input($HTTP_POST_VARS['password']); $password_confirmation = tep_db_prepare_input($HTTP_POST_VARS['confirmation']); if (strlen($password_new) < ENTRY_PASSWORD_MIN_LENGTH) { $error = true; $messageStack->add('password_reset', ENTRY_PASSWORD_NEW_ERROR); } elseif ($password_new != $password_confirmation) { $error = true; $messageStack->add('password_reset', ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING); } if ($error == false) { tep_db_query("update " . TABLE_CUSTOMERS . " set customers_password = '" . tep_encrypt_password($password_new) . "' where customers_id = '" . (int)$check_customer['customers_id'] . "'"); tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_account_last_modified = now(), password_reset_key = null, password_reset_date = null where customers_info_id = '" . (int)$check_customer['customers_id'] . "'"); $messageStack->add_session('login', SUCCESS_PASSWORD_RESET, 'success'); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } } $breadcrumb->add(NAVBAR_TITLE_1, tep_mobile_link(FILENAME_LOGIN, '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2); require(DIR_MOBILE_INCLUDES . 'header.php'); require('includes/form_check.js.php'); $headerTitle->write(); ?> <!-- header_eof //--> <div id="iphone_content"> <!-- body //--> <?php echo tep_draw_form('password_reset', tep_mobile_link(FILENAME_MOBILE_PASSWORD_RESET, 'account=' . $email_address . '&key=' . $password_key . '&action=process', 'SSL'), 'post', 'onsubmit="return check_form(password_reset);"', true); ?> <div id="messageStack"> <?php if ($messageStack->size('password_reset') > 0) { echo $messageStack->output('password_reset'); } ?> <div class="contentContainer"> <div class="contentText"> <?php echo TEXT_MAIN; ?> </div> </div> <?php ?> </div> <div id="returning_cust"> <?php echo TEXT_MAIN; ?> <br /><br /> <label for="password" class="float"><?php echo ENTRY_PASSWORD; ?></label> <?php echo tep_draw_password_field('password'); ?> <br /> <label for="confirmation" class="float"><?php echo ENTRY_PASSWORD_CONFIRMATION; ?></label> <?php echo tep_draw_password_field('confirmation'); ?> <br /> <?php echo ''.tep_mobile_button(IMAGE_BUTTON_CONTINUE).''; ?> </div> </form> <?php require(DIR_MOBILE_INCLUDES . 'footer.php'); ?> -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
I got it... Thanks for the reply and help... -
Lucky4444 reacted to a post in a topic: [Contribution] iOSC - mobile version of OSC on your iPhone
-
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Hi... Rainer... I was wondering if its possible to include the discount code on the mobile shop 2.3.3 Thanks -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Works like a charm.... Thanks for the great contribution..... -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Works like a charm.... Thanks... -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Hi Rainer... I notice that on the mobile_create_success page.. when I click on the store owner and contact us link, it direct the user to the classic view. Congratulations! Your new account has been successfully created! You can now take advantage of member priviledges to enhance your online shopping experience with us. If you have ANY questions about the operation of this online shop, please email the store owner. A confirmation has been sent to the provided email address. If you have not received it within the hour, please contact us. Thanks.. -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Hi.. Raiwa I notice that in the mobile_password_forgotten.php page. The back button does not work... Thanks... -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Hi Rainer I reverted the changes back to iOSC3_5.3_for_oscommerce-2.2rc2a so you can look at it.. I email you more details of my site. Thanks again.. -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Hi.... I reverted back to the earlier files and it works.. Thanks again for the great contribution... How can I add the 2 buttons to catalog/mobile_checkout_payment.php and catalog/mobile_checkout_shipping.php page. Thanks.. -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Thanks again... -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
I think this module comes with oscommerce 2.3.3.. but I might be wrong.. <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ class ot_shipping { var $title, $output; function ot_shipping() { $this->code = 'ot_shipping'; $this->title = MODULE_ORDER_TOTAL_SHIPPING_TITLE; $this->description = MODULE_ORDER_TOTAL_SHIPPING_DESCRIPTION; $this->enabled = ((MODULE_ORDER_TOTAL_SHIPPING_STATUS == 'true') ? true : false); $this->sort_order = MODULE_ORDER_TOTAL_SHIPPING_SORT_ORDER; $this->output = array(); } function process() { global $order, $currencies; if (MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') { switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) { case 'national': if ($order->delivery['country_id'] == STORE_COUNTRY) $pass = true; break; case 'international': if ($order->delivery['country_id'] != STORE_COUNTRY) $pass = true; break; case 'both': $pass = true; break; default: $pass = false; break; } if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) ) { $order->info['shipping_method'] = FREE_SHIPPING_TITLE; $order->info['total'] -= $order->info['shipping_cost']; $order->info['shipping_cost'] = 0; } } $module = substr($GLOBALS['shipping']['id'], 0, strpos($GLOBALS['shipping']['id'], '_')); if (tep_not_null($order->info['shipping_method'])) { if ($GLOBALS[$module]->tax_class > 0) { $shipping_tax = tep_get_tax_rate($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); $shipping_tax_description = tep_get_tax_description($GLOBALS[$module]->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']); $order->info['tax'] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax); $order->info['tax_groups']["$shipping_tax_description"] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax); $order->info['total'] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax); if (DISPLAY_PRICE_WITH_TAX == 'true') $order->info['shipping_cost'] += tep_calculate_tax($order->info['shipping_cost'], $shipping_tax); } $this->output[] = array('title' => $order->info['shipping_method'] . ':', 'text' => $currencies->format($order->info['shipping_cost'], true, $order->info['currency'], $order->info['currency_value']), 'value' => $order->info['shipping_cost']); } } function check() { if (!isset($this->_check)) { $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_ORDER_TOTAL_SHIPPING_STATUS'"); $this->_check = tep_db_num_rows($check_query); } return $this->_check; } function keys() { return array('MODULE_ORDER_TOTAL_SHIPPING_STATUS', 'MODULE_ORDER_TOTAL_SHIPPING_SORT_ORDER', 'MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING', 'MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER', 'MODULE_ORDER_TOTAL_SHIPPING_DESTINATION'); } 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 ('Display Shipping', 'MODULE_ORDER_TOTAL_SHIPPING_STATUS', 'true', 'Do you want to display the order shipping cost?', '6', '1','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 ('Sort Order', 'MODULE_ORDER_TOTAL_SHIPPING_SORT_ORDER', '2', 'Sort order of display.', '6', '2', now())"); 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 ('Allow Free Shipping', 'MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING', 'false', 'Do you want to allow free shipping?', '6', '3', '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, use_function, date_added) values ('Free Shipping For Orders Over', 'MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER', '50', 'Provide free shipping for orders over the set amount.', '6', '4', 'currencies->format', now())"); 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 ('Provide Free Shipping For Orders Made', 'MODULE_ORDER_TOTAL_SHIPPING_DESTINATION', 'national', 'Provide free shipping for orders sent to the set destination.', '6', '5', 'tep_cfg_select_option(array(\'national\', \'international\', \'both\'), ', now())"); } function remove() { tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } } ?> -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Hi.. Rainer Thanks for the quick reply... I might be wrong.. The module I was referring to is under the module Total Order.... There is a Shipping section that allows me to set $ amount to include free shipping.. Thanks again for your help.. -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
My appologies,,, I should be more specific.. The module is Total Order and comes with oscommerce 2.3.3... Happy New Year... Thanks.. -
[Contribution] iOSC - mobile version of OSC on your iPhone
Lucky4444 replied to bumbarash's topic in General Add-Ons Support
Hi.... Thanks for the great contribution..... I have an issue with the mobile_checkout_shipping.php. When I enable free shipping $75 through admin. I cannot pass the mobile_checkout_shipping.php screen... When I click continue, it brings me back to mobile_checkout_shipping.php and cannot move forward. When I remove the free shipping $75 thru admin. Everything works really well. Please assist... Kee