Jump to content


Corporate Sponsors


Latest News: (loading..)

panicgripdesigns

Member Since 09 Jun 2008
Offline Last Active Apr 26 2012, 20:54
-----

Issues I've Posted

    ssl_check.php Dead Links and, poor suggestions.

    Posted 19 Dec 2011

    The ssl page reads as follows:


    Some browsers such as Konqueror 3.1 does not have the capability of generating a secure SSL Session ID automatically which we require. If you use such a browser, we recommend switching to another browser such as Microsoft Internet Explorer, Netscape, orMozilla, to continue your online shopping experience.


    The links to IE, Netscape, and Mozilla are dead, and Netscape has been canned.

    I would rephrase it to say

    we recommend switching to another browser such as Google Chrome, Mozilla Firefox, or Microsoft Internet Explorer, to continue your online shopping experience.


    Direct Links to Reviews for Products Taken Our Of Stock

    Posted 19 Dec 2011

    If a user bookmarks a review, and a product is subsequently taken our of stock, but the review is not hidden, it leaves an ugly page that does not redirect to the rest of the reviews.

    example: http://tboltusa.com/store/takegawa-88cc-hyper-stage-bore-kit-with-18mm-carb-pri-47.html?reviews_id=4

    Solution:

    Around line 16 in product_review_info.php

    $review_check_query = tep_db_query("select count(*) as total from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, ".TABLE_PRODUCTS." as p where r.reviews_id = '" . (int)$HTTP_GET_VARS['reviews_id'] . "' and r.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and r.reviews_id = rd.reviews_id and p.products_id = r.products_id and rd.languages_id = '" . (int)$languages_id . "' and r.reviews_status = 1 and p.products_status = 1");
    

    Error Message off to right hand side

    Posted 18 Aug 2011

    when a get variable is defined: error_message=

    the error message box shows off to the far right of the page when using Firefox

    To see it in action:

    http://demo.oscommerce.com/index.php?error_message=This+is+an+error+message.


    Recreated with:
    Firefox 5 and 6.
    under Windows 7 x64 Home Pre.


    And with:
    Firefox 3.6
    under Ubuntu 10.04 64 bit.

    Not re creatable with Current Chrome or IE.

    See Also: http://forums.oscommerce.com/tracker/issue-72-checkout-with-paypal-error-message/


    my fix:

    moving final closing </div> to bottom line of catalog/includes/header.php file.


      <div class="ui-widget-header infoBoxHeading"><?php echo '&nbsp;&nbsp;' . $breadcrumb->trail(' &raquo; '); ?></div>
    <?php
      if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) {
    ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr class="headerError">
        <td class="headerError"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['error_message']))); ?></td>
      </tr>
    </table>
    <?php
      }
    
      if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) {
    ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr class="headerInfo">
        <td class="headerInfo"><?php echo htmlspecialchars(stripslashes(urldecode($HTTP_GET_VARS['info_message']))); ?></td>
      </tr>
    </table>
    <?php
      }
    ?>
    
    </div>
    

    Personally, I'd make the whole error box a <div>, but that's your call osCommerce team.

    MODULE_BOXES_REVIEWS_BOX_REVIEWS_NO_REVIEWS

    Posted 15 Nov 2010

    I assume this is because MODULE_BOXES_REVIEWS_BOX_REVIEWS_NO_REVIEWS is not set.

    On a fresh install, after deleting all products and categories, the review box just says MODULE_BOXES_REVIEWS_BOX_REVIEWS_NO_REVIEWS

    create_account.php not using jquery ui datepicker

    Posted 1 Nov 2010

    What I did to fix the problem:

    FOUND:
    <?php
      if (ACCOUNT_DOB == 'true') {
    ?>
    
          <tr>
            <td class="fieldKey"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>
            <td class="fieldValue"><?php echo tep_draw_input_field('dob') . '&nbsp;' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>
          </tr>


    REPLACED WITH:

    <?php
      if (ACCOUNT_DOB == 'true') {
    ?>
    
          <tr>
            <td class="fieldKey"><?php echo ENTRY_DATE_OF_BIRTH; ?></td>
            <td class="fieldValue">	<script>
    	$(function() {
    		$( "#datepicker" ).datepicker({		
    minDate:'-90Y', maxDate:'-9Y',
    yearRange: '1900:2000',
    showOn:'focus', changeYear: true
    		});
    	});
    	</script>
    
    <input name="dob" id="datepicker" class="datepicker" type="text"> <?php echo '&nbsp;' . (tep_not_null(ENTRY_DATE_OF_BIRTH_TEXT) ? '<span class="inputRequirement">' . ENTRY_DATE_OF_BIRTH_TEXT . '</span>': ''); ?></td>
          </tr>
    

    Is there a way to use the form function while passing a class or id?


    DEMONSTRATION:
    http://beyond-the-wheels.com/create_account.php