Jump to content

bryansgeneralstore

Members
  • Content count

    3
  • Joined

  • Last visited

  1. bryansgeneralstore

    'On The Fly' Auto Thumbnailer using GD Library 2.1

    ok well i have installed this contrib. and it is gread except on my product listing page the thumbnails are not showing right at all. for some reason it is making some random size thumbnail. and puts it in just on that one page. all of my other thumbs are working ok. i have been trying to sort this problem myself but am not getting anywhere. if i change the html_output file in catalog side the picture on my product listing page goes to almost full size but i cannot figure out where it is doing it. Thanks in advance for any help
  2. bryansgeneralstore

    Weirdest thing ever

    Ok this is wierd. if you go to my store and go through the checkout process it takes you to the regular paypal homepage when you log into paypal there is no information or anything to do with the store or the order(no way to pay for it), but if you clear you browser cookies it takes you to the page where you can enter your credit card info. now if instead of logging in you hit the back button on your browser to go back to my store the click the confirm button again it takes you to the right login page with all the order info. for some reason this is not being sent the first time around. to see what i mean visit my store at bryansgeneralstore.com any help would be greatly appreciated.
  3. bryansgeneralstore

    USPS Priority Mail Flat Rate Shipping

    you have to edit the .php files it talks about in the istallation txt. it is not real clear but I had the same problem. First one is In catalog/includes/functions/general.php Find this: //// // Wrapper function for round() function tep_round($number, $precision) { if (strpos($number, '.') && (strlen(substr($number, strpos($number, '.')+1)) > $precision)) { $number = substr($number, 0, strpos($number, '.') + 1 + $precision + 1); if (substr($number, -1) >= 5) { if ($precision > 1) { $number = substr($number, 0, -1) + ('0.' . str_repeat(0, $precision-1) . '1'); } elseif ($precision == 1) { $number = substr($number, 0, -1) + 0.1; } else { $number = substr($number, 0, -1) + 1; } } else { $number = substr($number, 0, -1); } } return $number; } Insert this AFTER: the below has to be inserted directly after the"}" above. //// // USPS Priority Mail Flat Rate Shipping // Round up function for non whole numbers // The value for the precision variable determines how many digits after the decimal and rounds the last digit up to the next value // Precision = 0 -> xx.xxxx = x+ // Precision = 1 -> xx.xxxx = xx.+ // Precision = 2 -> xx.xxxx = xx.x+ function tep_round_up($number, $precision) { $number_whole = ''; $num_left_dec = 0; $num_right_dec = 0; $num_digits = strlen($number); $number_out = ''; $i = 0; while ($i + 1 <= strlen($number)) { $current_digit = substr($number, $i, ($i + 1) - $num_digits); if ($current_digit == '.') { $i = $num_digits + 1; $num_left_dec = strlen($number_whole); $num_right_dec = ($num_left_dec + 1) - $num_digits; } else { $number_whole = $number_whole . $current_digit; $i = $i + 1; } } if ($num_digits > 3 && $precision < ($num_digits - $num_left_dec - 1) && $precision >= 0) { $i = $precision; $addable = 1; while ($i > 0) { $addable = $addable * .1; $i = $i - 1; } $number_out = substr($number, 0, $num_right_dec + $precision) + $addable; } else { $number_out = $number; } return $number_out; } second one is In catalog/admin/includes/functions/general.php Find this: //// // Alias function for module configuration keys function tep_mod_select_option($select_array, $key_name, $key_value) { reset($select_array); while (list($key, $value) = each($select_array)) { if (is_int($key)) $key = $value; $string .= '<br><input type="radio" name="configuration[' . $key_name . ']" value="' . $key . '"'; if ($key_value == $key) $string .= ' CHECKED'; $string .= '> ' . $value; } return $string; } Insert this AFTER: all of the below has to be inserted on the line below the "}" //// // USPS Priority Mail Flat Rate Shipping // Alias function for Store configuration values in the Administration Tool function tep_cfg_select_multioption($select_array, $key_value, $key = '') { for ($i=0; $i<sizeof($select_array); $i++) { $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"'; $key_values = explode( ", ", $key_value); if ( in_array($select_array[$i], $key_values) ) $string .= ' CHECKED'; $string .= '> ' . $select_array[$i]; } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; return $string; } // USPS Priority Mail Flat Rate Shipping // Alias function for Store configuration values in the Administration Tool. // Creates multiple text input boxes in a list. // Remember to add blank default values: 1, 2, , , 5, 6, ... function tep_cfg_multiinput_list($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); for ($i=0; $i<sizeof($select_array); $i++) { $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="text" name="' . $name . '" value="' . $key_values[$i] . '"> ' . $select_array[$i]; } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; return $string; } //// // USPS Priority Mail Flat Rate Shipping // Alias function for Store configuration values in the Administration Tool. // Creates a text input box on either side of the option, adds <= OPTION <= and makes a list. // Remember to add blank default values: 1, 2, , , 5, 6, ... function tep_cfg_multiinput_duallist_oz($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); $string .= '<center>'; for ($i=0; $i<sizeof($select_array); $i++) { $current_key_value = current($key_values); $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>oz</i>'; $string .= ' <b><</b> ' . $select_array[$i] . ' <u><b><</b></u>'; next($key_values); $current_key_value = current($key_values); $string .= '<input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>oz</i>'; next($key_values); } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; $string .= '</center>'; return $string; } function tep_cfg_multiinput_duallist_lb($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); $string .= '<center>'; for ($i=0; $i<sizeof($select_array); $i++) { $current_key_value = current($key_values); $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>lbs</i>'; $string .= ' <b><</b> ' . $select_array[$i] . ' <u><b><</b></u>'; next($key_values); $current_key_value = current($key_values); $string .= '<input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>lbs</i>'; next($key_values); } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; $string .= '</center>'; return $string; } third one is kind of tricky In catalog/admin/modules.php Find this: if (tep_not_null($action)) { switch ($action) { case 'save': while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { Insert this AFTER: put this in the line just under the above // BOE: USPS Priority Mail Flat Rate Shipping if( is_array( $value ) ){ $value = implode( ", ", $value);YOU WILL FIND THESE FOUR LINES ALREADY EXIST, CUT THEM BEFORE INSERTING $value = ereg_replace (", --none--", "", $value); } // EOE: USPS Priority Mail Flat Rate Shipping It should now look like this: if (tep_not_null($action)) { switch ($action) { case 'save': while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) { // BOE: USPS Priority Mail Flat Rate Shipping if( is_array( $value ) ){ $value = implode( ", ", $value); $value = ereg_replace (", --none--", "", $value); } // EOE: USPS Priority Mail Flat Rate Shipping tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module'])); break; case 'install': hope this helps this is what i did to make it work
×