Jump to content

14steve14

♥Ambassador
  • Content count

    5,022
  • Joined

  • Last visited

  • Days Won

    58

Posts posted by 14steve14


  1. I have just added this contributin, version 5, and all is working well. My store has been highly modded. I wanted the prices to appear where the price is normally. Here is the code as it appears on my site. I do also have headertags seo installed, but it should work if you remove the <h2> </h2>

     

    <td valign="top"><h1><?php echo $img_new_product . $products_name; ?></h1></td>

    <td align="left" valign="top"><h2><?php // echo $products_price; ?></h2></td>

    <td align="left" valign="top"><h2><?php if ($product_info['products_retail_price'] !=0){include(DIR_WS_MODULES . 'ezier_new_fields.php'); } else {echo $products_price;} ?></h2></td>

     

    I hope this of some use to someone


  2. Chris

     

    I have just installed this contribution on my relatively new store. I have used your files supplied and dropped them on top of my files, and added the extra bits as required. I have entered the product info, and added the attribute. The file to be downloaded is definately in the folder and the file name is correct. The item enters the cart fine and the checkout process is carried through. The item is a free download, and no shipping or payment methods are required. Downloads are enabled and the standard 7 days and five downloads are set.

     

    Now, when the process is completed the checkout sucess page has all the information that it should, but the download link is not available. There is a warning above the link that says

     

    Warning: mktime() expects parameter 6 to be long, string given in /home/railway1/public_html/catalog/includes/modules/downloads.php on line 48

     

    Line 48 is the one marked in the below code

     

     

    <!-- list of products -->

    <?php

    while ($downloads = tep_db_fetch_array($downloads_query)) {

    // MySQL 3.22 does not have INTERVAL

    list($dt_year, $dt_month, $dt_day) = explode('-', $downloads['date_purchased_day']);

    $download_timestamp = mktime(23, 59, 59, $dt_month, $dt_day + $downloads['download_maxdays'], $dt_year);

    $download_expiry = date('Y-m-d H:i:s', $download_timestamp);

    ?>

    <tr class="infoBoxContents">

    <!-- left box -->

     

    Do you have any idea that may be causing this. I have checked the insall and everything seems to be fine.


  3. I have just installed this on 2.3.1. Everything seems to work ok. No problem with that. The problem i have is that when looking at the page control page, all the boxes to enter text for title, description,keywords and logo text are aligned to the right, not the left. My install of 2.3.1 only has ultimate url 2.2 added.

     

    This may be something i have done, but i have rechecked all the files associated with this great contribution, and all seem to be correct.

     

    Any help appreciated


  4. I have just looked at that contribution, and i think you are trying to install something which is already part of 2.3.1. In 2.3.1 you can already choose which infoboxes are in which column in admin. In the modules section of admin, click on boxes. You will see a list of available boxes in the centre of yourr screen. If you down want a box to show, delete the module. If you want a box to show, say categories, you click on categories, go to the right of the screen, click the edit button, you can assign a box to a column. You can then alter the 1000 or 5000 to position the box within the column.


  5. I have been using this contribution on my current site and think that its the best image contribution that there is.

     

    As i am upgrading my site slowly to 2.3.1, i was wondering if anyone with more skills than me, is trying to get the funcionallity of this contribution to work with this new version. I am looking for something that will create thumbnails and automatically store them is a sensible place within the image directory.


  6. If it was me, i would personally keep with ultimate urls but use the latest version created by jack_mcs. I would then also add header_tags seo, sitemap seo all products seo, all categories seo and google sitemaps. All these contributions are made and supported by the same person, so all work well together.


  7. I havent installed this contribution, so i may not be much help. I have looked at the contribution instructions and they dont seem to be very helpfull.

     

    My only suggestion is with paypal standard to ensure that you have a return URL setup within your paypal account to return customers to your checkout_sucess.php page.


  8. I have just installed the latest version of this. All went well, until, i added text for the front page. When i went to modify this text in admin i get the following error.

     

    Parse error: syntax error, unexpected T_STRING in /home/railway1/public_html/test_2.3/admin/modules.php(232) : eval()'d code on line 28

     

    I hope this is not serious for me.


  9. I have been modifying a recaptcha module that was for 2.2 to fit into the contact us ppage on 2.3.1.

     

    I think i have it working, bit could someone that knows more than me check the code to make sure it is as it should be. When validating the code i get two errors on line 63. Its associated with the <script> tags to show the recaptcha.

     

    <?php
    /*
     $Id: contact_us.php,v 1.42 2003/06/12 12:17:07 hpdl Exp $
    
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
    
     Copyright (c) 2003 osCommerce
    
     Released under the GNU General Public License
    */
    
     require('includes/application_top.php');
    
     require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CONTACT_US);
    
     // start modification for reCaptcha
     require_once('includes/classes/recaptchalib.php');
     require_once('includes/recaptchakeys.php');
     // end modification for reCaptcha
    
       $error = false;
     if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
       $name = tep_db_prepare_input($HTTP_POST_VARS['name']);
       $email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);
       $enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);
    
    
    
    // start modification for reCaptcha
       // the response from reCAPTCHA
       $resp = null;
    
       // was there a reCAPTCHA response?
       $resp = recaptcha_check_answer ($privatekey,
       $_SERVER["REMOTE_ADDR"],
       $_POST["recaptcha_challenge_field"],
       $_POST["recaptcha_response_field"]);
    
    if (tep_validate_email($email_address) && ($resp->is_valid)) {
         tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);
    
         tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success', 'SSL'));
       } 
    
      else { 
       if (!$resp->is_valid) { 
        $error = true;
           $messageStack->add('contact', ENTRY_SECURITY_CHECK_ERROR . " (reCAPTCHA output: " . $resp->error . ")");
      }
      if (!tep_validate_email($email_address)) {
           $error = true;
           $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
      }
    
    
    }
    }
    
    // end modification for reCaptcha
    
    
    
     $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US, '', '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">
    </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('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send', 'SSL')); ?><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_contact_us.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>
    <?php
     if ($messageStack->size('contact') > 0) {
    ?>
         <tr>
           <td><?php echo $messageStack->output('contact'); ?></td>
         </tr>
         <tr>
           <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
         </tr>
    <?php
     }
    
     if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
    ?>
         <tr>
           <td class="main" align="center"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_man_on_board.gif', HEADING_TITLE, '0', '0', 'align="left"') . TEXT_SUCCESS; ?></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 align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
                   <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
                 </tr>
               </table></td>
             </tr>
           </table></td>
         </tr>
    <?php
     } else {
    ?>
         <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 class="main"><?php echo nl2br(STORE_NAME_ADDRESS); ?></td>
               </tr>
               <tr>
                   <td class="main"><?php echo TEXT_INFO; ?></td>
                 </tr>
               <tr>
                   <td> </td>
                </tr>
                <tr>
                   <td class="main"><?php echo ENTRY_NAME; ?></td>
                 </tr>
                 <tr>
                   <td class="main"><?php echo tep_draw_input_field('name'); ?></td>
                 </tr>
                 <tr>
                   <td class="main"><?php echo ENTRY_EMAIL; ?></td>
                 </tr>
                 <tr>
                   <td class="main"><?php echo tep_draw_input_field('email'); ?></td>
                 </tr>
                 <tr>
                   <td class="main"><?php echo ENTRY_ENQUIRY; ?></td>
                 </tr>
                 <tr>
                   <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>
                 </tr>
                 <!-- start modification for reCaptcha -->
                 <tr>
                   <td class="main"><?php echo ENTRY_SECURITY_CHECK; ?></td>
                 </tr>
                 <tr>
    							<script>
    							var RecaptchaOptions = {
    							   theme : 'white',
    							   tabindex : 3
    							};
    							</script>              	
                   <td class="main"><?php echo recaptcha_get_html($publickey); ?></td>
                 </tr>
                 <!-- end modification for reCaptcha -->
               </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 align="right"><?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>
               </table></td>
             </tr>
           </table></td>
         </tr>
    <?php
     }
    ?>
       </table></form></td>
    <!-- body_text_eof //-->  
    </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'); ?>
    


  10. You need to add a return url to your "checkout_success.php" page. This is done within your paypal account. Once you have set up your paypal accony when an order is paid for by paypal the customer is automatically redirected back to your site and the order is registered within your store.

     

    You need to login to your account, click on profile, then go to website payment preferences. Go down the screen and find the area where you enter a return url. Enter the full url of your checkout_sucess page.

     

    That may cure your problem

×