Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

nyderrn

Archived
  • Posts

    136
  • Joined

  • Last visited

Posts posted by nyderrn

  1. 1146 - Table 'hemprest_osc1.coupon_gv_queue' doesn't exist

     

    select count(*) as total from customers c, coupon_gv_queue gv where (gv.customer_id = c.customers_id and gv.release_flag = 'N')

     

    If hemprest_osc1 is the name of your database, you have to be missing a table.

     

    In phpmyadmin or whatever you use to access your database, run this sql.

    -- 
    -- Table structure for table `coupon_gv_queue`
    -- 
    
    CREATE TABLE IF NOT EXISTS `coupon_gv_queue` (
     `unique_id` int(5) NOT NULL auto_increment,
     `customer_id` int(5) NOT NULL default '0',
     `order_id` int(5) NOT NULL default '0',
     `amount` decimal(8,4) NOT NULL default '0.0000',
     `date_created` datetime NOT NULL default '0000-00-00 00:00:00',
     `ipaddr` varchar(32) NOT NULL default '',
     `release_flag` char(1) NOT NULL default 'N',
     PRIMARY KEY  (`unique_id`),
     KEY `uid` (`unique_id`,`customer_id`,`order_id`)
    ) TYPE=MyISAM AUTO_INCREMENT=17;

     

     

    And when I try to install it in the payment modules admin I get the following error:

     

    Warning: Cannot modify header information - headers already sent by (output started at /home/hemprest/public_html/store/admin/includes/application_top.php:213) in /home/hemprest/public_html/store/admin/includes/functions/general.php on line 18

     

    Check for whitespace at the beginning and end of both of those files. It could be that application_top.php contains a function that is already in general.php. You can try to put those in either side of Beyond Compare and see if anything matches, but sometimes that doesn't work at all ;)

     

     

    Hope that helps,

     

    Tim

  2. I appreciate your releasing this contribution.

     

    I do not understand why you would call the version 1.48.4 when your version is not a follow on or improvement to the contribution. The contribution is specific to multi-stores and as such should have been released as a multi-stores version. Now it just serves to confuse users as to which version release to install.

     

    Hi,

     

    This is the first contribution I've modified that's been big enough to add it to the contribution section. Forgive me for not following proper protocol and it was not inteaded to confuse anyone. If there is a way to remove that contribution from the list, I will resubmit it with a different filename and description. Or, just remove it from the newsdesk contribution list and just leave it on multi-stores list. But, I did label it as just having multi-stores added functionality. So, at least I'm not a total DA :blink:

     

     

    Sorry,

     

    Tim

  3. Hi,

     

    I recently installed newsdesk and love it. My store is running M-S multi stores by Ryan Hobbs and I needed to modify this contribution to separate articles between different stores from one admin and database.

     

    I have it functioning and doing what I need it to do, but there are still a few bugs. I uploaded the package here with modified install instructions, .sql file, and version changes. If you have M-S multi stores installed and want a great way to serve up news, give it a try.

     

     

    Have fun,

     

    Tim

  4. Hi,

     

    I'm using the original Customer Discount contribution and thought this would be the best place to ask my question since the other forum died. I was wondering if anyone has this working with credit class/gift vouchers, so that it won't apply a discount to gift voucher when purchased.

     

    Like maybe excluding certain products from the discount rate (or maybe it does this already I don't know).

    The products don't have only 1 price, but it is possible to set multiple prices for products.
    Not sure if this would do what I wanted with out installing it and I don't really need the rest of the code just the customer discount part.

     

     

    Thanks,

     

    Tim

  5. Ok, I think I have it figured out (guess I should read a bit better in the future :huh: ). Just want to make sure everything is how it should be.

     

    When I successfully test the IPN, the order transaction activity changes to No PayPal Transaction Information Available (). Is this correct? Would there be transaction information during a real order?

     

     

    Thanks

     

    Tim

  6. Nevermind the correct class is Paypal_Debug.The correct modules are PAYPAL_DEBUG_MAIL and MODULE_PAYMENT_PAYPAL_DEBUG.

     

    Tim

     

    Oops, maybe I'm wrong. After making the changes above, I get a test complete, but no other information about the transaction. There is also no debug email being sent to the address I provided or a database entry. Any ideas?

     

     

    Thanks for your time and energy,

     

    Tim

  7. Now I'm getting

    Fatal error: Cannot instantiate non-existent class: paypal_ipn_debug in c:\apache\htdocs\yopete\ipn.php on line 35

    when I try to test ipn.

     

    Here's line 35 in catalog/ipn.php

    $debug = new PayPal_IPN_Debug(MODULE_PAYMENT_PAYPAL_IPN_DEBUG_EMAIL, MODULE_PAYMENT_PAYPAL_IPN_DEBUG);

     

    Any ideas?

     

    Thanks for your time,

     

    Tim

     

     

    Nevermind the correct class is Paypal_Debug.The correct modules are PAYPAL_DEBUG_MAIL and MODULE_PAYMENT_PAYPAL_DEBUG.

     

    Tim

  8. in IPN.class.php, change

    require_once($modules_directory . 'payment/paypal/classes/Client/Connector.class.php');

    To

    require_once('./../Client/Connector.class.php');

     

    Basically I'm guessing that $modules_directory = defined('DIR_FS_CATALOG_MODULES') ? DIR_FS_CATALOG_MODULES : DIR_WS_MODULES; is not working, or you have DIR_FS_CATALOG in your catalog configure script, etc...

     

    Thanks for the reply. I got that part sorted out by changing a few of the defines to relate to my configure.php file setup. But, now I'm getting

    Fatal error: Cannot instantiate non-existent class: paypal_ipn_debug in c:\apache\htdocs\yopete\ipn.php on line 35

    when I try to test ipn.

     

    Here's line 35 in catalog/ipn.php

    $debug = new PayPal_IPN_Debug(MODULE_PAYMENT_PAYPAL_IPN_DEBUG_EMAIL, MODULE_PAYMENT_PAYPAL_IPN_DEBUG);

     

    Any ideas?

     

    Thanks for your time,

     

    Tim

  9. Hi,

     

     

    I'm having problems testing this module. I have turned error reporting on, so I don't get a blank page anymore. Now I get this error message

    Warning: main(payment/paypal/classes/Client/Connector.class.php): failed to open stream: No such file or directory in path_to_catalog\includes\modules\payment\paypal\classes\IPN\IPN.class.php on line 21
    
    Fatal error: main(): Failed opening required 'payment/paypal/classes/Client/Connector.class.php' (include_path='.;c:\php4\pear') in path_to_catalog\includes\modules\payment\paypal\classes\IPN\IPN.class.php on line 21

     

    Here's my ipn.txt file

    business = [email protected]
    receiver_email = [email protected]
    verify_sign = PAYPAL_SHOPPING_CART_IPN-TEST_TRANSACTION-00000000000000
    payment_date = 00:00:42 Oct 20, 2004 Eastern Daylight Time
    digestKey = 12285046ca52bde6ff1432a509b43915
    first_name = John
    last_name = Doe
    payer_business_name = ACME Inc.
    payer_email = root@localhost
    payer_id = PAYERID000000
    payer_status = verified
    invoice = 1
    address_name = John Doe
    address_street = 1 Way Street
    address_city = NeverNever
    address_state = CA
    address_zip = 12345
    address_country = United States
    address_status = confirmed
    payment_type = instant
    txn_type = cart
    custom = 1
    txn_id = PAYPAL00000000012
    parent_txn_id = 1
    num_cart_items = 1
    notify_version = 1.6
    memo = PAYPAL_SHOPPING_CART_IPN TEST
    mc_currency = USD
    mc_gross = 0.01
    mc_fee = 0.01
    settle_amount = 12.00
    settle_currency = 
    exchange_rate = 0.00
    payment_status = Completed
    pending_reason = 
    reason_code = 
    submit = Test IPN

     

    Am I missing something? The file is there in the correct path, but it just isn't seeing it. Did a search for the error message within this topic to no avail.

     

    Thanks for any help you can provide,

     

    Tim

  10. i'd like to see it :)

     

    login.php -->

     

    <?php
    /*
    $Id: login.php,v 1.2 2002/11/29 00:08:06 wilt Exp $
    
    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com
    
    Copyright (c) 2002 osCommerce
    
    Released under the GNU General Public License
    */
    
    require('includes/application_top.php');
    
    // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started)
    if ($session_started == false) {
      tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));
    }
    
    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN);
    
    //$error = false;
    if (isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process')) {
      $email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);
    $password = tep_db_prepare_input($HTTP_POST_VARS['password']);
    
    // Check if email exists
    $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customer_discount, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");
    if (!tep_db_num_rows($check_customer_query)) {
    $HTTP_GET_VARS['login'] = 'fail';
    //$error = true;
    } else {
        $check_customer = tep_db_fetch_array($check_customer_query);
    // Check that password is good
     if (!tep_validate_password($password, $check_customer['customers_password'])) {
       $HTTP_GET_VARS['login'] = 'inactive';
    //$error = true;
     } else {
          if (SESSION_RECREATE == 'True') { // added from original login.php
            tep_session_recreate();           // added from original login.php
          }                                   // added from original login.php
    
          $check_country_query = tep_db_query("select entry_country_id, entry_zone_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . (int)$check_customer['customers_id'] . "' and address_book_id = '" . (int)$check_customer['customers_default_address_id'] . "'");
    $check_country = tep_db_fetch_array($check_country_query);
    
    $customer_id = $check_customer['customers_id'];
    $customer_default_address_id = $check_customer['customers_default_address_id'];
    $customer_first_name = $check_customer['customers_firstname'];
    $customer_country_id = $check_country['entry_country_id'];
    $customer_zone_id = $check_country['entry_zone_id'];
    $customer_discount = $check_customer['customer_discount'];
    tep_session_register('customer_id');
    tep_session_register('customer_default_address_id');
    tep_session_register('customer_first_name');
    tep_session_register('customer_country_id');
    tep_session_register('customer_zone_id');
    tep_session_register('customer_discount');
    
    
    // HMCS: Begin Autologon	**********************************************************
     $cookie_url_array = parse_url((ENABLE_SSL == true ? HTTPS_SERVER : HTTP_SERVER) . substr(DIR_WS_CATALOG, 0, -1));
     $cookie_path = $cookie_url_array['path'];	
    
               if ((ALLOW_AUTOLOGONLOGON == 'false') || ($HTTP_POST_VARS['remember_me'] == '')) {
                 setcookie("email_address", "", time() - 3600, $cookie_path);   // Delete email_address cookie
                 setcookie("password", "", time() - 3600, $cookie_path);        // Delete password cookie
     }
               else {
                 setcookie('email_address', $email_address, time()+ (365 * 24 * 3600), $cookie_path, '', ((getenv('HTTPS') == 'on') ? 1 : 0));
                 setcookie('password', $check_customer['customers_password'], time()+ (365 * 24 * 3600), $cookie_path, '', ((getenv('HTTPS') == 'on') ? 1 : 0));
     }
    // HMCS: End Autologon  **********************************************************
    
    tep_db_query("update " . TABLE_CUSTOMERS_INFO . " set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '" . (int)$customer_id . "'");
    if ($b_ip != '127.0.0.1')//added by Emmett from hostingoscommerce.com
    {
    
    //Changes for visitor stats. Add the customer id if known
             $b_lang = getenv('HTTP_ACCEPT_LANGUAGE');
             $b_ip = getenv('REMOTE_ADDR');
             $visitor_query_string = "update visitors set customers_id = '" . $customer_id . "' where browser_ip = '" . $b_ip . "' AND browser_language = '" . $b_lang . "' AND to_days(now()) - to_days(date) < 1";
    //print('<br>' . $visitor_query_string . '<br>');
             tep_db_query($visitor_query_string);
    //end changes for visitor stats
    }
    
    // restore cart contents
    $cart->restore_contents();
    if (sizeof($navigation->snapshot) > 0) {
            $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
            $navigation->clear_snapshot();
            tep_redirect($origin_href);
          } else {
            tep_redirect(tep_href_link(FILENAME_DEFAULT));
         }
       }
     }
    }
    //  if ($error == true) {
    //    $messageStack->add('login', TEXT_LOGIN_ERROR);
    //  }
    elseif ($HTTP_POST_VARS['action'] == 'new') {
    
     $email_address = 'email_address=' . tep_db_prepare_input($HTTP_POST_VARS['email_address']);
     tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, $email_address, 'SSL'));
    }
    
    elseif ($HTTP_POST_VARS['action'] == 'guest') {
    
      $email_address = 'email_address=' . tep_db_prepare_input($HTTP_POST_VARS['email_address']);
      tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT, 'guest_account=true', 'SSL'));
    }
    
    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN);
    
    $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LOGIN, '', '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; ?>">
    <?php
    // BOF: WebMakers.com Changed: Header Tag Controller v1.0
    // Replaced by header_tags.php
    if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) {
    require(DIR_WS_INCLUDES . 'header_tags.php');
    } else {
    ?> 
    <title><?php echo TITLE ?></title>
    <?php
    }
    // EOF: WebMakers.com Changed: Header Tag Controller v1.0
    ?>
    <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    
    <script language="javascript"><!--
    
    var submitted = false;
    
    function check_form() {
    var error = 0;
    var error_message = "Errors have occured!\n\n";
    
    if(submitted){ 
     alert( "Error"); 
     return false; 
    }
    
    var email_address = document.login.email_address.value;  
    var password = document.login.password.value;
    
    
    
    if (document.login.action[1].checked == true) {
      if (password == '') {
    error_message = error_message + "Are you trying to create a new profile?\n     - Please select the 'No, I want to create a new profile' option.\n\nDo you have an existing account?\n     - Please enter your password to login.\n";
          error = 1;
    } 
    }
    
    
    
    
    
    if (error == 1) { 
     alert(error_message); 
     return false; 
    } else { 
     submitted = true; 
     return true; 
    } 
    
    
    
    }
    //--></script>
    <?php // HMCS: Begin Autologon	********************************************************** ?>
    <script language="javascript"><!--
    function win_autologon() {
     window.open("<?php echo FILENAME_INFO_AUTOLOGON; ?>","info_autologon","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();
    }
    //--></script>
    <?php // HMCS: End	Autologon	**********************************************************  ?>
    </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="5" cellpadding="0">
    <tr>
     <td width="<?php echo BOX_WIDTH; ?>" valign="top" class="leftcolumn"><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"><table border="0" width="100%" cellspacing="0" cellpadding="0">
    
       <tr>
            <td class="smallText" colspan="2"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?></td>
       </tr>
       <tr>
            <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?>
       <tr>
            <td> 
              <table border="0" width="100%" cellspacing="0" cellpadding="2">
            <tr>
              <td width="60%" valign="top" align="center">
      
       <table border="0" width="100%" cellspacing="0" cellpadding="1">
                <tr>
                  <td valign="top">
       
       <table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">
       <tr>
        <td class="heading" colspan="2" align="left"><b><?php echo HEADING_TITLE; ?></b></td>
       </tr>
    <tr>
                       <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '20'); ?></td>
                    </tr>
    <tr>
       <td class="main" colspan="2" align="left"><b><?php echo TEXT_EMAIL_QUESTION; ?></b></td>
       </tr>
    
                     <tr>
        <td colspan="2">
        <table cellpadding="3" cellspacing="0" border="0">
        <tr>
         <td class="main" align="left"><b><?php echo ENTRY_EMAIL_ADDRESS_LOGIN; ?></b></td>
      </tr>
      <tr>
                  <td class="main" align="left"><?php echo '     ' . tep_draw_input_field('email_address'); ?></td>
                     
     </tr>
        </table>
        </td>
                     </tr>
       
       <tr>
                       <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '15'); ?></td>
                    </tr>
       
       
       
       <tr>
        <td class="main" colspan="2" align="left"><b><?php echo TEXT_PASSWORD_QUESTION; ?></b></td>
       </tr>
       
       <tr>
                       <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
                    </tr>
       
       <tr>
        <td class="main" align="right"><?php echo tep_draw_radio_field('action', 'new') ?></td>
        <td class="main" align="left"><b><?php echo TEXT_NO_PASSWORD; ?></b></td>
       </tr>
       
       <tr>
                       <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '5'); ?></td>
                    </tr> 
            
       <tr>
        <td class="main" align="right"><?php echo tep_draw_radio_field('action', 'process', true) ?></td>
        <td class="main" align="left"><b><?php echo TEXT_HAS_PASSWORD; ?></b></td>
       </tr>
     
                     <tr>
        <td class="main" colspan="1"><br></td>
                       <td class="main"><?php echo tep_draw_password_field('password'); ?></td>
                     </tr>
    <?php // HMCS: Begin Autologon	**********************************************************
         if(ALLOW_AUTOLOGON != 'false') {
    ?>
                    <tr>
              <td>
      	 </td>
              <td align="left" class="smalltext"><?php echo tep_draw_checkbox_field('remember_me','on', (($password == '') ? false : true)) . ' ' . ENTRY_REMEMBER_ME; ?></td>
                     </tr>
    <?php     }
    // HMCS: End	Autologon	**********************************************************  ?>
    <tr>
       <td colspan="1"><br></td>
                       <td class="smallText" align="left"><br><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>
       </tr>
    <tr>
                       <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
       </tr>
      
    <?php
    if (GUEST_ON == 'true') {
    ?>    
    <tr>
        <td class="main" colspan="2" align="left"><b><?php echo HEADING_GUEST_CUSTOMER; ?></b></td>
       </tr>
       
       <tr>
                       <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
                    </tr>
    <tr>
                 <td class="main" align="right"><?php echo tep_draw_radio_field('action', 'guest') ?></td>
        <td class="main" align="left"><b><?php echo TEXT_GUEST_CUSTOMER; ?></b></td>
        </tr>
     <tr>
                       <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '20'); ?></td>
                     </tr>
    <?php
     }
    ?>     
       <tr>
        <td colspan="1"><br></td>
          <td align="left" valign="top"><?php echo tep_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE); ?></td>
         </tr>
      
      
      </table>
      </td>
                </tr>
        <tr>
                 <td width="100%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="1">
                   <tr>
                     
               </table></td>
              </tr>
       <tr>
                <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
              </tr>
       <tr>
    
         </tr>
              </table>
     </td>
     </form>
     
     
     
     <td width="50%" valign="top" class="main">
     <?php echo TEXT_SAFE_SHOPPING; ?>
     <p>
     <?php echo TEXT_SAFE_SHOPPING2; ?>
     <p>
     <?php echo TEXT_SAFE_SHOPPING3; ?>
     <p>
     <?php echo TEXT_SECURE; ?>
     </td>
     
        </tr>
     <?php
    
    if (isset($HTTP_GET_VARS['login']) && ($HTTP_GET_VARS['login'] == 'inactive')) {
    $info_message = TEXT_STATUS_ERROR;
    }
    
    if (isset($HTTP_GET_VARS['login']) && ($HTTP_GET_VARS['login'] == 'fail')) {
    $info_message = TEXT_LOGIN_ERROR;
    } elseif ($cart->count_contents()) {
    $info_message = TEXT_VISITORS_CART;
    
    }
    
    if (isset($info_message)) {
    
    ?>
              <?php echo $info_message; ?></td>
       </tr>
    <?php
    }
    ?>
    
         </table>   
    </table>   
     </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 require(DIR_WS_INCLUDES . 'column_right.php'); ?>
    <!-- right_navigation_eof //-->
       </table></td>
     </tr>
    </table>
    <!-- body_eof //-->
    
    <!-- footer //-->
    <?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
    <!-- footer_eof //-->
    <br>
    </body>
    </html>
    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

     

    includes/languages/login.php -->

     

    <?php
    /*
    $Id: login.php,v 1.14 2003/06/09 22:46:46 hpdl Exp $
    
    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com
    
    Copyright (c) 2003 osCommerce
    
    Released under the GNU General Public License
    
    new login from this thread: Modified to work for MS2 w/BTS
    http://www.oscommerce.com/forums/index.php?showtopic=31021&st=40
    */
    
    if ($HTTP_GET_VARS['origin'] == FILENAME_CHECKOUT_PAYMENT) {
    define('NAVBAR_TITLE', 'Order');
    define('HEADING_TITLE', 'Ordering online is easy.');
    define('TEXT_STEP_BY_STEP', 'We\'ll walk you through the process, step by step.');
    } else {
     define('NAVBAR_TITLE', 'Login');
     define('HEADING_TITLE', 'Sign in or create a profile');
     define('TEXT_STEP_BY_STEP', ''); // should be empty
    }
    define('TEXT_EMAIL_QUESTION', '');
    define('TEXT_NO_PASSWORD', 'No, I am a new customer.');
    define('TEXT_HAS_PASSWORD', 'Yes, I am a returning customer<br>and I have a password:');
    define('ENTRY_REMEMBER_ME', 'Remember me<br>      <a href="javascript:win_autologon();"><b><u>Read this first!</u></b></a>');
    define('ENTRY_EMAIL_ADDRESS_LOGIN', 'Email Address: ');
    define('TEXT_PASSWORD_QUESTION', 'Do you have a password?');
    define('TEXT_SAFE_SHOPPING', 'SAFE SHOPPING GUARANTEE<br>We guarantee that every transaction you make at ' . STORE_NAME . ' will be safe.');
    define('TEXT_SAFE_SHOPPING2', 'PRIVACY & SECURITY<br>All your information is safe and secure. The entire transaction will take place on a secure server using SSL technology.<br>Please review our <a href="' . tep_href_link(FILENAME_PRIVACY, '', 'NONSSL') . '">Privacy Notice</a> for more details.');
    define('TEXT_SAFE_SHOPPING3', 'FEEDBACK/PROBLEMS?<br>Your comments will help us to improve our checkout process.<br><a href="' . tep_href_link(FILENAME_CONTACT_US, '', 'NONSSL') . '">Contact us</a>');
    define('TEXT_PASSWORD_FORGOTTEN', 'Password forgotten? Click here.');
    define('TEXT_LOGIN_ERROR', '<font color="#ff0000"><strong>ERROR:</strong></font> No match for \'E-Mail Address\' and/or \'Password\'.');
    define('TEXT_VISITORS_CART', '<font size="1"><font color="#ff0000"><strong>NOTE:</strong></font> Your "Visitors Cart" contents will be merged with your "Members Cart" contents once you have logged on. <a href="javascript:session_win();">[More Info]</a></font>');
    define('TEXT_SECURE', 'Your email address will <strong>never</strong> be sold.');
    define('TEXT_STATUS_ERROR', '<font color="#ff0000"><b>ERROR:</b></font> This Member ID is not currently active.'); 
    // guest_account start
    define('HEADING_GUEST_CUSTOMER', 'Proceed to Checkout');
    define('TEXT_GUEST_CUSTOMER', 'Checkout without creating a Profile.');
    define('TEXT_GUEST_CUSTOMER_INTRODUCTION', '');
    // guest_account end
    
    ?>

     

     

    This just changes the layout of login.php to something more like Amazon. I just added a radial button to go directly to checkout.

     

     

     

    Hope it helps someone,

     

    Tim

  11. nyderm: In the standard release there is a bug if you are using table based shipping. you are correct if there is only the gift voucher it works ok but if more than one item all items get set for the table rate. I think it is changed in the table.php file and it needs to check for virtual_count instead of product_count or something like that.

     

    nyderrn: it is actually done in shopping_cart->calculate. It also depends on whether you are doing the table by weight, price or count. I think the normal table.php uses just weight and price.

    Hi,

     

    Thanks for the reply. I'm using table rate as stated and using price as the determining factor in the calculation. Is there a way around this or a fix that I can apply? Or, should I just inform the cusotmer that it would be in thier best interest to buy gift vouchers separately?

     

     

    Thanks for your time and patience,

     

    Tim

  12. nyderrn: I just did a test transaction, and when I return the product, get the RMA number and go back to my account activity all I show is the Return (words) and the link is on the RMA number for that product that was returned for the customer to view the status online. I've gone into my admin and completed the return and still the same. Mine does not give them the option to return it again, but only the link to the RMA number to view what they already returned online.
    Sorry, it's working on my live server, but I have other contribs that are conflicting with ccgv 5.10.  So, I've decided to start over and this is the problem I'm having.  I will upload my fresh install to my live server so you can see what I'm talking about. 

     

    Thanks for the fast response

     

    I'll let you know when it's ready for a test

     

    Tim

    Ha,

     

    I totally misread your post. I thought you went to my website and tested it. DOH!

     

    Anyway I can't see anything thats wrong. It seems like

    if ($order->products[$i]['return'] == '1') {

    isn't being satisfied, but the value is in the database and it works perfectly on my other stores. The return link is showing up its just not changing after returning the product.

     

    If you have any ideas, I'm open at this point.

     

    Thanks

     

    Tim

  13. nyderm: In the standard release there is a bug if you are using table based shipping. you are correct if there is only the gift voucher it works ok but if more than one item all items get set for the table rate. I think it is changed in the table.php file and it needs to check for virtual_count instead of product_count or something like that.

    So, is there anything I can do about this? I've looked through the code on table.php and I see no use of product count anywhere. Am I beating a dead horse with this one and shoud I just tell my customers not to buy gift vouchers with other products or could there be a fix for this?

     

     

     

    Thanks, great contribution btw I love it ;)

     

    Tim

  14. Sorry, it's working on my live server, but I have other contribs that are conflicting with ccgv 5.10. So, I've decided to start over and this is the problem I'm having. I will upload my fresh install to my live server so you can see what I'm talking about.

     

    Thanks for the fast response

     

    I'll let you know when it's ready for a test

     

    Tim

  15. 2) Was it ever answered how to exclude shipping from a gift certificate? The code seems to be there, but it's not working. I couldn't find any answers in the pages I browsed through here.

     

    Thanks much!

    Susan Midlarsky

    Hi Susan.... what I did was to enable the 'download' in the admin config section. Then you set the gift voucher weight to zero...... it worked for me.... :)

     

    I have a similar problem. I've enabled downloads and set the gv weights to 0 and when I purchase the gv alone it doesn't include shipping, but if I purchase together with another item it charges shipping on both items.

     

    I'm using table rate shipping method.

     

     

    Anyone have this problem that got it fixed and can help me out? ;)

     

     

    Thanks,

     

    Tim

    :D To make it include shipping you need to go in the admin area, modules, order total, select gift vouchers and then edit theres a radial button to select incldue shipping.

    I don't think I made myself clear on that question. It is true that when that radial button is set to true for include shipping the gift voucher will inlcude the shipping, but that's not what I was talking about I just used poor wording.

     

    When the customer purchases an item, the shipping is calculated correctly for that item and everything is great. But, when they also put a gift voucher in thier basket the shipping amount goes up even though I don't have to ship it to them.

     

    Hopefully that explains the problem better ;)

     

    Thanks for any help

     

    Tim

  16. Hi,

     

    My slaves are showing in my product listing even when I have them set to hide. Where is the distinction made between reg products and slaves in product listing, so I can narrow down my problem?

     

    Or, If you could direct me to a post in this thread de grande that might solve my problem that would be alright also :rolleyes:

     

     

    Thanks,

     

    Tim

  17. Whenever I send a refund via gift voucher and follow the link in the email, it says that the gv code is invalid or has already been redeemed.

    Sorry, I don't know what happened, but I don't have this problem anymore. Prob something with my database. But, still having the problem addressed in previous post.

     

    Thanks

     

    Tim

  18. Here's my code that places the return link under the product in account_history_info.php

     

    //RMA returns 2.3
    if ($order->products[$i]['return'] == '1') {
    $rma_query_one = tep_db_query("SELECT returns_id FROM " . TABLE_RETURNS_PRODUCTS_DATA . " where products_id = '" . $order->products[$i]['id'] . "' and order_id = '" . $HTTP_GET_VARS['order_id'] . "'");
    $rma_query = tep_db_fetch_array($rma_query_one);
    $rma_number_query = tep_db_query("SELECT rma_value FROM " . TABLE_RETURNS . " where returns_id = '" . $rma_query['returns_id'] . "'");
    $rma_result = tep_db_fetch_array($rma_number_query);
    
    $return_link = '<font color=cc0000><b>' . TEXT_RMA . ' # <a href="' . tep_href_link('returns_track.php', 'action=returns_show&rma=' . $rma_result['rma_value'], 'NONSSL') . '">' . $rma_result['rma_value'] . '</a>';
    } else {
    $return_link = '<a href="' . tep_href_link(FILENAME_RETURN, 'order_id=' . $HTTP_GET_VARS['order_id'] . '&products_id=' . ($order->products[$i]['id']), 'NONSSL') . '"><font color=cc0000><b>' . TEXT_RETURN_PRODUCT .'</a></b></font>';
    }
       echo '          <tr>' . "\n" .
            '            <td class="main" align="right" valign="top" width="30">' . $order->products[$i]['qty'] . ' x</td>' . "\n" .
            '            <td class="main" valign="top">' . $order->products[$i]['name'] . '   ' . $return_link  .'<br><small><i>' . $desc['products_description'] . '</i></small>';
    //RMA returns end

     

    The values called for are in the database. I don't understand why this doesn't work.

     

     

    The only other difference between your account_history_info.php and mine is:

      $customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['order_id'] . "'");

     

    has been changed to:

    //rmh M-S_multi-stores edited next line
     $customer_info_query = tep_db_query("select customers_id from " . TABLE_ORDERS . " where orders_id = '". (int)$HTTP_GET_VARS['order_id'] . "' and orders_stores_id = '" . STORES_ID . "'");

     

    But, that just calls the customer_id number and really shouldn't affect RMA.

     

    Thanks for any help

     

    Tim

  19. Hi,

     

    I have just installed v2.3 and have applied all this patches up to this point. Two questions:

     

    Whenever I send a refund via gift voucher and follow the link in the email, it says that the gv code is invalid or has already been redeemed.

     

    Why can I return the same product more than once? The earlier versions replaced the link to return a product with the RMA number sent, so this could not happen. Did I miss something?

×
×
  • Create New...