Jump to content

14steve14

♥Ambassador
  • Content count

    5,022
  • Joined

  • Last visited

  • Days Won

    58

Posts posted by 14steve14


  1. But how can you do this? There is no option in Paypal to disable to Paypal shipping costs...

     

    Login to your paypal account. Click on the profile tab. Go to the My selling preferences tab and click it. At the bottom of the page there is a section called posting my items. Click on the Update text and at the bottom of this page find Click here to allow transaction-based postage values to override the profile postage settings listed above (if profile settings are enabled). Tick the box and click save.

     

    Hopefully that will work.


  2. Hi Guys,

     

    I have a 2.3 install and have added these Uk shipping modules. Only problem is at the checkout page where you select the shipping method, i get amessage at the top of the page "Deprecated: Function split() is deprecated in....." . Depending on what you install from the admin interface the path complains about different files. Example below is for Royal Mail Recorded Delivery

     

    Deprecated: Function split() is deprecated in...../includes/modules/shipping/reg.php on line 126

    ...../includes/modules/shipping/reg.php on line 150

     

    Any ideas?

     

    Many Thanks

     

    The split function requires changing. Without seeing what they actually are it will hard to guess what to change. All i can add is that there is an addon to upgrade to php 5.3 which inludes updates for the zone shipping. I had to update one of my shipping add ons that seemed to be a copy of this module.

     

    The changed code is

     

    $country_zones = preg_split("/[,]/", $countries_table);

     

    and

     

    $zones_table = preg_split("/[:,]/" , $zones_cost);

     

    I hope this helps.


  3. I have been updating prices for 30 April 2012 increase and notice that Royal Mail now splits international delivery into 3 zones instead of 2. Is anyone planning on doing an update for this? I have an up to date spread sheet with prices but I lack php skills to amend to the new zones.

     

    There is very little difference in the zone prices, i une the dearer zone prices for the 2nd zone.


  4. If anyone is using this add on with php5.3 i hade to make a few changes to the admin/includes/function/alterimage.php to get it to work.

     

    The first was to change

     

    function IsHexColor($HexColorString) {
        return eregi('^[0-9A-F]{6}$', $HexColorString);
       }
    

     

    to

     

    function IsHexColor($HexColorString) {
        return preg_match('#^[0-9A-F]{6}$#i', $HexColorString);
       }
    

     

    The second was to change

     

    function gd_version($fullstring=false) {
        static $cache_gd_version = array();
        if (empty($cache_gd_version)) {
    	    $gd_info = gd_info();
    	    if (eregi('bundled \((.+)\)$', $gd_info['GD Version'], $matches)) {
    		    $cache_gd_version[1] = $gd_info['GD Version'];  // e.g. "bundled (2.0.15 compatible)"
    		    $cache_gd_version[0] = (float) $matches[1];	 // e.g. "2.0" (not "bundled (2.0.15 compatible)")
    	    } else {
    		    $cache_gd_version[1] = $gd_info['GD Version'];					   // e.g. "1.6.2 or higher"
    		    $cache_gd_version[0] = (float) substr($gd_info['GD Version'], 0, 3); // e.g. "1.6" (not "1.6.2 or higher")
    	    }
        }
        return $cache_gd_version[intval($fullstring)];
       }
    

     

    to

     

    static function gd_version($fullstring=false) {
     static $cache_gd_version = array();
     if (empty($cache_gd_version)) {
      $gd_info = gd_info();
      if (preg_match('#bundled \((.+)\)$#i', $gd_info['GD Version'], $matches)) {
       $cache_gd_version[1] = $gd_info['GD Version'];  // e.g. "bundled (2.0.15 compatible)"
       $cache_gd_version[0] = (float) $matches[1];	 // e.g. "2.0" (not "bundled (2.0.15 compatible)")
      } else {
       $cache_gd_version[1] = $gd_info['GD Version'];					   // e.g. "1.6.2 or higher"
       $cache_gd_version[0] = (float) substr($gd_info['GD Version'], 0, 3); // e.g. "1.6" (not "1.6.2 or higher")
      }
     }
     return $cache_gd_version[intval($fullstring)];
    }
    


  5. I have read all 10 pages of this topic..

     

    Have done everything and yet I still cannot click on the download link in "My Account" ..the link is just text?

     

    I checked paypal and the order had been set to completed status

     

    I had to manually change the status on OSCommerce to Delivered and still NO download link??

     

    Here is a picture:

     

    signuperror-1.jpg

     

     

    And a link to the store: http://thetarealms.net/index.php

     

    Please help! sad.png

     

    One of the major reasons for download links not being available is that when adding the attribute filename the file type (.zip) is missed off the end.

     

    I would also check that in your admuin area downloads have been set as available, and also in your admin area localisation- order_status make sure that downloads are available on your final order status.

     

    To automate the download process and give your customers an imeadiate download i would add super download store.


  6. I had a similar problem ages ago with this contribution, but i cannot remember what the cure was. I do think i had to read through the support thread to find the answer. It has something to do with the added code and a closing </form> tag i do believe.


  7. Try removing

     

    <script src="includes/javascript/jquery-1.2.6.js" type="text/javascript"></script>

    <script src="includes/javascript/ui.core.js" type="text/javascript"></script>

    <script src="includes/javascript/ui.tabs.js" type="text/javascript"></script>

     

    The code is already called in your includes/template_top as it is now part of the jquery files in your ext/jquery/ui/jquery-ui-1.8.6.min.js.

     

    I think that was all i had to do.


  8. I have hopefully altered the standard 2.3.1 contact us page and added store details, opening hours and a message plus recaptcha

     

    the page is

     

    <?php
    /*
     $Id: contact_us.php,v 1.5 2010/02/02 Spooks Exp $
     osCommerce, Open Source E-Commerce Solutions
     http://www.oscommerce.com
     Copyright (c) 2010 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($_GET['action']) && ($_GET['action'] == 'send')) {
       $name = tep_db_prepare_input($_POST['name']);
       $email = tep_db_prepare_input($_POST['email']);
       $enquiry = tep_db_prepare_input($_POST['enquiry']);
     $subject = tep_db_prepare_input($_POST['subject']);
     $phone = tep_db_prepare_input($_POST['phone']);
     $date = 'Date Sent: ' . date("d M Y H:i:s");
     $orders_id = tep_not_null($_POST['orders_id']) ? $_POST['orders_id'] : false;
     $xipaddress = $_SERVER["REMOTE_ADDR"];
     $subject = $subject ? $subject : EMAIL_SUBJECT;
    // 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) && ($resp->is_valid)) {
       $enquiry = MESSAGE_FROM . $name . "\n" . $date . "\n" . ($phone ? ENTRY_TELEPHONE_NUMBER .  $phone . "\n" : '' ) . ($customer_id ? MAIL_CLIENT_ID .  $customer_id . "\n" : '')  . ($orders_id ? MAIL_ORDER_ID .  $orders_id . "\n" : '') . "\n" . MAIL_IP . $xipaddress . '.' . "\n\n" . ENTRY_ENQUIRY . "\n" . $enquiry;
      tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $subject, $enquiry, $name, $email);
      tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
       }
    
      else {
       if (!$resp->is_valid) {
     $error = true;
        $messageStack->add('contact', ENTRY_SECURITY_CHECK_ERROR . " (reCAPTCHA output: " . $resp->error . ")");
      }
      if (!tep_validate_email($email)) {
       $error = true;
      $messageStack->add('contact', ENTRY_EMAIL_ADDRESS_CHECK_ERROR);
     }
    
    
    }
    // }
    
    // end modification for reCaptcha 
    
     //$enquiry = preg_replace('/\r/','\', \'',$enquiry);
     //$enquiry = preg_replace('/\(|\)/','\'',$enquiry);
     //$_POST['enquiry'] = $result;
    
     if (strlen($name) < ENTRY_LAST_NAME_MIN_LENGTH) {
      $error = true;
      $messageStack->add('contact', ENTRY_LAST_NAME_ERROR);
       }
       if (!$error) {
       $enquiry = MESSAGE_FROM . $name . "\n" . $date . "\n" . ($phone ? ENTRY_TELEPHONE_NUMBER .  $phone . "\n" : '' ) . ($customer_id ? MAIL_CLIENT_ID .  $customer_id . "\n" : '')  . ($orders_id ? MAIL_ORDER_ID .  $orders_id . "\n" : '') . "\n" . MAIL_IP . $xipaddress . '.' . "\n\n" . ENTRY_ENQUIRY . "\n" . $enquiry;
      tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, $subject, $enquiry, $name, $email);
      tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));
       }
     }
     $breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_CONTACT_US));
     require(DIR_WS_INCLUDES . 'template_top.php');
    ?>
    <h1><?php echo HEADING_TITLE; ?></h1>
    <?php
     if ($messageStack->size('contact') > 0) {
       echo $messageStack->output('contact');
     }
     if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'success')) {
    ?>
    <div class="contentContainer">
     <div class="contentText">
       <?php echo TEXT_SUCCESS; ?>
     </div>
     <div style="float: right;">
       <?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?>
     </div>
    </div>
    <?php
     } else {
    ?>
    <?php echo tep_draw_form('contact_us', tep_href_link(FILENAME_CONTACT_US, 'action=send'), 'post', '', true); ?>
    <div class="contentContainer">
     <div class="contentText">
       <table border="0" width="100%" cellspacing="0" cellpadding="2">
       <tr>
     <td width="40%"><?php echo nl2br(STORE_NAME_ADDRESS); ?><br><br>
     <?php echo (OPENING_HOURS); ?></td>
     <td width="60%"><?php echo TEXT_INFO; ?></td>
    </tr>
      <tr>
        <td class="fieldKey"><?php echo ENTRY_NAME; ?></td>
        <td class="fieldValue"><?php echo tep_draw_input_field('name'); ?></td>
      </tr>
      <tr>
        <td class="fieldKey"><?php echo ENTRY_EMAIL; ?></td>
        <td class="fieldValue"><?php echo tep_draw_input_field('email'); ?></td>
      </tr>
      <tr>
        <td class="fieldKey" valign="top"><?php echo ENTRY_ENQUIRY; ?></td>
        <td class="fieldValue"><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>
      </tr>
    <?php
    // BOF: SLiCK reCaptcha
       if (RECAPTCHA_CONTACTUS == 'true') {
    ?>
      <tr>
        <td class="fieldKey" valign="top"><?php echo ENTRY_SECURITY_CHECK; ?></td>
        <td class="fieldValue">
    <?php
      $languages_query = tep_db_query("select code from " . TABLE_LANGUAGES . " where directory = '" . (int)$language . "'");
      $language_id = tep_db_fetch_array($languages_query);
    ?>
     <script type="text/javascript">
      var RecaptchaOptions = {
        theme : '<?php echo RECAPTCHA_THEME ?>',
        tabindex : 3,
        lang : '<?php if (in_array($language_id['code'], array('en', 'es', 'de'))) { echo $language_id['code']; } else { echo 'en'; } ?>'
      };
      </script>
      <?php
      // get the type of request (secure or not)
     $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';
     if ($request_type == 'SSL') {
      echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY, null, ($request_type == 'SSL'));
     } else {
      echo recaptcha_get_html(RECAPTCHA_PUBLIC_KEY);
     } 
       ?>
      </td></tr>
    <?php
       }
    // EOF: SLiCK reCaptcha
    ?>
       </table>
     </div>
     <div class="buttonSet">
       <span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
     </div>
    </div>
    </form>
    <?php
     }
     require(DIR_WS_INCLUDES . 'template_bottom.php');
     require(DIR_WS_INCLUDES . 'application_bottom.php');
    ?>
    

     

    I then added to the contact us language file

     

    define('TEXT_INFO', ' YOUR MESSAGE HERE ');
    define('OPENING_HOURS', '
    <p><u><b>Opening hours</b></u></p>
    <table border="0" width="214">
    <tr>
     <td width="76"><font size="1">Monday</font></td>
     <td><font size="1" color="#029CFE">09-00am - 05-30pm</font></td>
    </tr>
    <tr>
     <td width="76"><font size="1">Tuesday</font></td>
     <td><font size="1" color="#029CFE">09-00am - 07-30pm</font></td>
    </tr>
    <tr>
     <td width="76"><font size="1">Wednesday</font></td>
     <td><font size="1" color="#029CFE">09-00am - 05-30pm</font></td>
    </tr>
    <tr>
     <td width="76"><font size="1">Thursday</font></td>
     <td><font size="1" color="#029CFE">09-00am - 05-30pm</font></td>
    </tr>
    <tr>
     <td width="76"><font size="1">Friday</font></td>
     <td><font size="1" color="#029CFE">09-00am - 07-30pm</font></td>
    </tr>
    <tr>
     <td width="76"><font size="1">Saturday</font></td>
     <td><font size="1" color="#029CFE">09-00am - 01-00pm</font></td>
    </tr>
    <tr>
     <td width="76"><font size="1">Sunday</font></td>
     <td><font size="1" color="#029CFE">CLOSED</font></td>
    </tr>
    </table>
    

     

    Everything seems to work as it should.

×