Jump to content

Pektsekye

Members
  • Content count

    193
  • Joined

  • Last visited

Everything posted by Pektsekye

  1. This is a support thread for all the contributions that have the Autoinstaller script Some of them are: http://addons.oscommerce.com/info/2900 - FCKeditor for Product Descriptions http://addons.oscommerce.com/info/2823 - Ultimate SEO URLs http://addons.oscommerce.com/info/1242 - Quantity Price Breaks Per Product http://addons.oscommerce.com/info/6740 - Autoinstaller for - One Page Checkout Most common problems: problem 1: Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/perfe69/public_html/mp_autoinstaller/autoinstaller.php on line 9 my reply: The autoinstaller is for php5 only. problem 2: I clicked install. It came back and said that it had worked ok. I then opened another tab and went to my home page so that I could check that all was fine and I have encountered the following error message: Internal Server Error my reply: For SEO URLs contribution: 1) if you cannot access both the site and the autoinstaller directory it is the .htaccess problem. Solution: Restore manually the '.htaccess' file from the 'su_autoinstaller/backup' directory to your site root. It has '_htaccess' backup filename. 2) if you cannot access the site but still can access the autoinstaller directory (refresh the page to be sure) it is the files and folders permissions problem. Explanation: Some servers (and mine hostgator also) require that all the .php files have 644 permissions and all the directories - 755. The autoinstaller script does not change any files/folders permissions. So it can happen only if you change them manually. Solution: If you have changed any file or directory permissions during the installation you should change them back to 644 for the files and 755 for the directories. To find out what files was modified go to the su_autoinstaller/backup directory. For all the other contributions: Solution: The solution is the same as for "For SEO URLs contribution" point 2 problem 3: I have uploaded the autoinstaller folder to my site root ... but when I point my web browser to the autoinstaller directory nothing happenes... my reply: I don't know why this happens for now. Download the normal package for manual installation and install the contribution manually. Some people are trying to use their site even if few pages do not work and they don't want to click the "Uninstall" button. There are some suggestions for them: Solution 1: Restore manually the file that doesn't work from the autoinstaller/backup/ directory then download the package with instructions for manual installation and edit the problem file manually Solution 2: Click the "Uninstall" button then delete (save to your PC) all the backup files from the autoinstaller/backup/ directory then delete the problem steps from the install.xml then click the "Install" button again then download the package with instructions for manual installation and do the problem steps manually Some people ask if there is a way of manual installation of the package that doesn't have manual installation instructions but have an autoinstaller my reply: Open the install.xml there are instructions for manual installation between the <manual_from>...</manual_from><manual_to>...</manual_to> tags
  2. Hello, Find the server log and you will see what the problem is Stanislav
  3. Hello, Try this code instead: <?php /* $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO); $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_check = tep_db_fetch_array($product_check_query); ?> <!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"> <script language="javascript"><!-- function popupWindow(url) { window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,l e ft=150') } //--></script> </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="0" cellpadding="0"> <tr> <td class="col_left"> <!-- left_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- left_navigation_eof //--> </td> <!-- body_text //--> <td width="100%" class="col_center"><?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0"> <?php if ($product_check['total'] < 1) { ?> <tr><td> <? tep_draw_heading_top(); ?> <?php echo tep_draw_title_top();?> <?php echo TEXT_PRODUCT_NOT_FOUND;?> <?php echo tep_draw_title_bottom();?> <? tep_draw_heading_top_4(); ?> <!-- <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"> <td> --> <br style="line-height:1px;"><br style="line-height:12px;"> <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> --> <? tep_draw_heading_bottom_4(); ?> <? tep_draw_heading_bottom(); ?> <?php } else { $product_info_query = tep_db_query("select p.products_id, pd.products_name, pd.products_description, p.products_model, p.products_quantity, p.products_image, pd.products_url, p.products_msrp, p.products_price, p.products_tax_class_id, p.products_date_added, p.products_date_available, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'"); $product_info = tep_db_fetch_array($product_info_query); tep_db_query("update " . TABLE_PRODUCTS_DESCRIPTION . " set products_viewed = products_viewed+1 where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and language_id = '" . (int)$languages_id . "'"); $products_price = '<table class="PriceList" border="0" width="100%" cellspacing="0" cellpadding="0">'; $new_price = tep_get_products_special_price($product_info['products_id']); if ($product_info['products_msrp'] > $product_info['products_price']) $products_price .= '<tr><td>' . TEXT_PRODUCTS_MSRP . '</td><td align=right>' . $currencies->display_price($product_info['products_msrp'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td><td></td></tr>'; $products_price .= '<tr><td>' . TEXT_PRODUCTS_OUR_PRICE . '</td>'; $products_price .= '<td align=right>' . $currencies->display_price($product_info['products_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td><td></td></tr>'; if ($new_price != '') {$products_price .= '<tr class="productSpecialPrice"><td>' . TEXT_PRODUCTS_SALE . '</td><td align=right>' . $currencies->display_price($new_price, tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td><td></td></tr>';} if ($product_info['products_msrp'] > $product_info['products_price']) {if ($new_price != '') {$products_price .= '<tr><td>' . TEXT_PRODUCTS_SAVINGS . '</td><td align=right>' . $currencies->display_price(($product_info['products_msrp'] - $new_price), tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td><td class="SavingsPercent"> ('. number_format(100 - (($new_price / $product_info['products_msrp']) * 100)) . '%)</td></tr>';} else {$products_price .= '<tr><td>' . TEXT_PRODUCTS_SAVINGS . '</td><td align=right>' . $currencies->display_price(($product_info['products_msrp'] - $product_info['products_price']), tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td><td class="SavingsPercent"> ('. number_format(100 - (($product_info['products_price'] / $product_info['products_msrp']) * 100)) . '%)</td></tr>';}} else {if ($new_price != '') {$products_price .= '<tr><td>' . TEXT_PRODUCTS_SAVINGS . '</td><td align=right>' . $currencies->display_price(($product_info['products_price'] - $new_price), tep_get_tax_rate($product_info['products_tax_class_id'])) . '</td><td class="SavingsPercent"> ('. number_format(100 - (($new_price / $product_info['products_price']) * 100)) . '%)</td></tr>';}} $products_price .= '</table>'; if (tep_not_null($product_info['products_model'])) { $products_name = $product_info['products_name'] . '<br><span class="smallText">[' . $product_info['products_model'] . ']</span>'; } else { $products_name = $product_info['products_name']; } ?> <tr> <td> <? tep_draw_heading_top(); ?> <?php echo tep_draw_title_top();?> <?php echo $breadcrumb->trail(' » ')?> <?php echo tep_draw_title_bottom();?> <? tep_draw_heading_top_4(); ?> <? tep_draw_heading_top_2(); ?> <?php if (tep_not_null($product_info['products_image'])) { //++++ QT Pro: Begin Changed code ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr> <td class="smallText"> <?php //++++ QT Pro: End Changed Code ?> <table cellspacing="0" cellpadding="0" border="0" class="product"> <tr><td> <table cellspacing="0" cellpadding="0" border="0"> <tr><td height="100%"> <table cellpadding="0" cellspacing="0" border="0" align="left" class="prod_info"> <tr><td align="center"> <?php echo tep_draw_prod_pic_top();?> <script language="javascript"><!-- document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ' style="margin:0px 0px 0px 0px;"') . ''; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, ' style="margin:0px 0px 0px 0px;"') . ''; ?> </noscript> <?php echo tep_draw_prod_pic_bottom();?> </td></tr> <tr><td align="center"> <script language="javascript"><!-- document.write('<?php echo '<div><a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . TEXT_CLICK_TO_ENLARGE . '</a></div>'; ?>'); //--></script> <noscript> <?php echo '<div><a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank"><br style="line-height:7px">' . TEXT_CLICK_TO_ENLARGE . '</a></div>'; ?> </noscript> </td></tr> </table> <table cellpadding="0" cellspacing="0" border="0" class="title_info"> <tr><td><em><?php echo $products_name; ?></em></td></tr> </table> <div class="padd3"><?php echo stripslashes($product_info['products_description']); ?> <? if (DISPLAY_EXTRA_IMAGES == 'true'){ if ($product_check['total'] >= 1) { include (DIR_WS_INCLUDES . 'products_extra_images.php'); } } ?> <br><br style="line-height:11px"><span class="productSpecialPrice"><?=$products_price?></span></div> </td></tr> </table> </td> </tr> </table> <?php //++++ QT Pro: Begin Changed code if (tep_not_null($product_info['products_image'])) { ?> </td> </tr> </table> <?php } //++++ QT Pro: End Changed Code } ?> <? tep_draw_heading_bottom_2(); ?> <table cellspacing="0" cellpadding="0" border="0" align="center" style="margin:15px 0px 15px 0px; height:1px;"> <tr><td class="bg_line_x"><?php echo tep_draw_separator('spacer.gif', '1', '1');?></td></tr> </table> <? tep_draw_heading_top_2();?> <?php $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'"); $products_attributes = tep_db_fetch_array($products_attributes_query); if ($products_attributes['total'] > 0) { //++++ QT Pro: Begin Changed code $products_id=(preg_match("/^\d{1,10}(\{\d{1,10}\}\d{1,10})*$/",$HTTP_GET_VARS['products_id']) ? $HTTP_GET_VARS['products_id'] : (int)$HTTP_GET_VARS['products_id']); require(DIR_WS_CLASSES . 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN . '.php'); $class = 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN; $pad = new $class($products_id); echo $pad->draw(); } //Display a table with which attributecombinations is on stock to the customer? if(PRODINFO_ATTRIBUTE_DISPLAY_STOCK_LIST == 'True'): require(DIR_WS_MODULES . "qtpro_stock_table.php"); endif; //++++ QT Pro: End Changed Code ?> <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { ?> <table cellpadding="0" cellspacing="0" class="product box_width_cont"> <tr><td class="line_h"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td></tr> <tr><td height="17"></td></tr> </table> <?php } if (tep_not_null($product_info['products_url'])) { ?> <table cellpadding="0" cellspacing="0" class="product box_width_cont"> <tr><td class="line_h"><?php echo sprintf(TEXT_MORE_INFORMATION, tep_href_link(FILENAME_REDIRECT, 'action=url&goto=' . urlencode($product_info['products_url']), 'NONSSL', true, false)); ?></td></tr> <tr><td height="17"></td></tr> </table> <?php } if ($product_info['products_date_available'] > date('Y-m-d H:i:s')) { ?> <table cellpadding="0" cellspacing="0" class="product box_width_cont"> <tr><td class="line_h"><?php echo sprintf(TEXT_DATE_AVAILABLE, tep_date_long($product_info['products_date_available'])); ?></td></tr> <tr><td height="17"></td></tr> </table> <?php ?> <table cellpadding="0" cellspacing="0" class="product box_width_cont"> <tr><td class="line_h"><?php echo sprintf(TEXT_DATE_ADDED, tep_date_long($product_info['products_date_added'])); ?></td></tr> <tr><td height="17"></td></tr> </table> <?php } ?> <!-- <table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox"> <tr class="infoBoxContents"><td> --> <table border="0" width="100%" cellspacing="0" cellpadding="0" class="product box_width_cont"> <tr> <td class="main bg_input"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?><?php echo tep_draw_separator('spacer.gif', '15', '1'); ?><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_add_to_cart1.gif', IMAGE_BUTTON_IN_CART); ?></td> </tr> </table><br style="line-height:1px;"><br style="line-height:10px;"> <!-- </td></tr> </table> --> <? tep_draw_heading_bottom_2();?> <? tep_draw_heading_bottom_4(); ?> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> <?php tep_draw_heading_bottom();?> </td> </tr> </table></form></td> <!-- body_text_eof //--> <td class="col_right"> <!-- right_navigation //--> <?php require(DIR_WS_INCLUDES . 'column_right.php'); ?> <!-- right_navigation_eof //--> </td> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--></body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Stanislav
  4. Hello, If you can find the server log you will see the exact file name that causes the problem. Of course check the files installed by qp-autoinstall first. When I open a directory with my ftp program I see all the files listed and the permissions. So it's easy to find the file with different permissions than other files have for me. Stanislav
  5. Hello, Are you sure that you have product_info.php modified? QTpro selects looks different show the content of your product_info.php here Stanislav
  6. Hello, Some servers requires that all the files have 644 and the directories 755 permissions. Try to set correct permissions Stanislav
  7. Pektsekye

    Moneybookers Madness

    Hello, If moneybookers allow ZAR currency You should set in your site admin - > modules -> moneybookers module configuration then replace: if (!in_array($moneybookers_currency, array('EUR', 'USD', 'GBP', 'HKD', 'SGD', 'JPY', 'CAD', 'AUD', 'CHF', 'DKK', 'SEK', 'NOK', 'ILS', 'MYR', 'NZD', 'TWD', 'THB', 'CZK', 'HUF', 'SKK', 'ISK', 'INR'))) { $moneybookers_currency = 'EUR'; } with: if (!in_array($moneybookers_currency, array('EUR', 'USD', 'GBP', 'HKD', 'SGD', 'JPY', 'CAD', 'AUD', 'CHF', 'DKK', 'SEK', 'NOK', 'ILS', 'MYR', 'NZD', 'TWD', 'THB', 'CZK', 'HUF', 'SKK', 'ISK', 'INR', 'ZAR'))) { $moneybookers_currency = 'EUR'; } in the checkout_moneybookersipn.php Stanislav
  8. Pektsekye

    Moneybookers Madness

    Hello, As you see your site know only ZAR while the module tries to pay in EUR you should go to the site admin -> Localization -> Currencies and add euro currency. Here is how it looks on my test site: Note: If ZAR is set as default currency with value 1.00000000 on your site then the Value: for the EUR currency will be = EUR / ZAR Stanislav
  9. Pektsekye

    Moneybookers Madness

    Hello, replace the previous debug code with : print_r($currencies); echo 'print_r'; exit(); Stanislav
  10. Pektsekye

    Moneybookers Madness

    Hello, Yes the amount is 0: amount=0&amount2=0&amount2_description=Table+Rate+%28Best+Way%29&amount3=0&amount3_description=&currency=EUR before the line 274: $process_button_string = 'pay_to_email=' . MODULE_PAYMENT_MONEYBOOKERS_IPN_ID . add this: echo $order->info['total'].'-total '; echo $currencies->get_value($moneybookers_currency).'-getvalue '; echo $currencies->get_decimal_places($moneybookers_currency).'-get_decimal_places '; exit(); and show the debug result here Stanislav
  11. Pektsekye

    Moneybookers Madness

    Hello, In the checkout_moneybookersipn.php try to change the line 306 //echo $moneybookersurl . "&" . $process_button_string; to echo $moneybookersurl . "&" . $process_button_string; exit(); and show the debug result here Stanislav
  12. Pektsekye

    Where is Line 109

    Hello, Can you show what must be replaced and the content of your product_info.php here? Stanislav
  13. Hello, But you didn't find your old version and didn't uninstall it. Maybe you have some extra code from your old contribution that is not in the files that you checked. Stanislav
  14. Hello, You have to find your old version and uninstall it. Then install the latest again. Stanislav
  15. Hello, Try to use modified transform_uri function: function transform_uri($param) { global $languages_id; $uriparts = parse_url($param); $newquery=''; $scheme = $uriparts['scheme'].'://'; if (($scheme != 'http://') && ($scheme != 'https://')) return $param; $host = $uriparts['host']; if ($host != $_SERVER['SERVER_NAME'] && $host != $_SERVER['SERVER_ADDR']) return $param; $path = $uriparts['path']; list($file,$extension) = explode('.', basename($path)); if($extension != 'php') return $param; $extension = ".html"; $host .= rtrim(dirname($path),'/'); $query = $uriparts['query']; $anchor = $uriparts['anchor']; if ($a = explode('&',$query)){ foreach ($a as $B) { list($key,$val) = split('=',$B); switch ($key) { case 'cPath': if(eregi('[_0-9]', $val)){ if($cat_arr = explode('_', $val)){ $count = false; foreach($cat_arr as $value){ $cat_Q = tep_db_query("select c.categories_id, cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $value . "' and c.categories_id = cd.categories_id AND cd.language_id='".(int)$languages_id."' LIMIT 1"); $cat_name = tep_db_fetch_array($cat_Q); if(!$count){ $result .= $cat_name['categories_name']; $count = true; } else{ $result .= '_' . $cat_name['categories_name']; } } $cat = '/category/'. str_replace(' ' , '+' , $result); } else{ $cat = '/category/'.$val; } } else{ $cat = '/category/'.$val; } break; case 'language': $lan = $val.'/'.$path; break; case 'products_id': $name_Q = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $val . "' AND language_id='".(int)$languages_id."' LIMIT 1 "); $pro = ($t = tep_db_fetch_array($name_Q)) ? '/product/' . str_replace(" ", "_" , $t['products_name']) : '/product/'.$val; break; case 'manufacturers_id': $brand_Q = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . $val . "'"); $man = ($t = tep_db_fetch_array($brand_Q)) ? '/brand/'.str_replace(" ", "_" , $t['manufacturers_name']) : $man = '/brand/'.$val; break; case 'osCsid': if(strstr($_SERVER["HTTP_USER_AGENT"],'Mozilla')) $newquery .= $key.'='.$val.'&'; break; default: if($newquery || $key) $newquery .= $key.'='.$val.'&'; } } } if ($newquery) $newquery = '?'.rtrim($newquery,'&'); $path = ''; if(isset($man)) $path .= $man; if(isset($cat)) $path .= $cat; if(isset($pro)) $path .= $pro; ((isset($man) || isset($cat) || isset($pro))) ? $host .= '' :$host .= '/'; if($file == 'index' || $file == 'product_info'){ if((isset($man) || isset($cat) || isset($pro))) $file= ''; } if(eregi('reviews',$file)) $file = '/' . $file; return $scheme.$host.$file.$path.$extension.$newquery.$anchor; } Stanislav
  16. Hello, Can you tell the exact version numbers and the package's dates? Also tell what exactly have you done to update. Stanislav
  17. Hello, I don't know. I have just tried to use Cyrillic in categories names on my test site. And got wrong urls: hardware-107810771083-c-1.html hardware-железо-c-1.html then I have replaced define('CHARSET', 'iso-8859-1'); with define('CHARSET', 'utf-8'); in two files: catalog/includes/languages/index.php catalog/admin/includes/languages/index.php And have set output W3C valid URLs (parameter string) to false in the seo urls configuration Now I have correct url with Cyrillic characters: catalog/hardware-железо-c-1.html Stanislav
  18. Hello, 1) I installed seo urls with autoinstaller 2) I downloaded the NIMMIT: SEF 3) in the in catalog/includes/application_top.php I have found : function transform_uri($param) { $uriparts = parse_url($param); $newquery=''; $scheme = $uriparts['scheme'].'://'; if (($scheme != 'http://') && ($scheme != 'https://')) return $param; $host = $uriparts['host']; if ($host != $_SERVER['SERVER_NAME'] && $host != $_SERVER['SERVER_ADDR']) return $param; $path = $uriparts['path']; list($file,$extension) = explode('.', basename($path)); if($extension != 'php') return $param; $extension = ".html"; $host .= rtrim(dirname($path),'/'); $query = $uriparts['query']; $anchor = $uriparts['anchor']; if ($a = explode('&',$query)){ foreach ($a as $B) { list($key,$val) = split('=',$B); switch ($key) { case 'cPath': if(eregi('[_0-9]', $val)){ if($cat_arr = explode('_', $val)){ $count = false; foreach($cat_arr as $value){ $cat_Q = tep_db_query("select c.categories_id, cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . $value . "' and c.categories_id = cd.categories_id"); $cat_name = tep_db_fetch_array($cat_Q); if(!$count){ $result .= $cat_name['categories_name']; $count = true; } else{ $result .= '_' . $cat_name['categories_name']; } } $cat = '/category/'. str_replace(' ' , '+' , $result); } else{ $cat = '/category/'.$val; } } else{ $cat = '/category/'.$val; } break; case 'language': $lan = $val.'/'.$path; break; case 'products_id': $name_Q = tep_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $val . "'"); $pro = ($t = tep_db_fetch_array($name_Q)) ? '/product/' . str_replace(" ", "_" , $t['products_name']) : '/product/'.$val; break; case 'manufacturers_id': $brand_Q = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . $val . "'"); $man = ($t = tep_db_fetch_array($brand_Q)) ? '/brand/'.str_replace(" ", "_" , $t['manufacturers_name']) : $man = '/brand/'.$val; break; case 'osCsid': if(strstr($_SERVER["HTTP_USER_AGENT"],'Mozilla')) $newquery .= $key.'='.$val.'&'; break; default: if($newquery || $key) $newquery .= $key.'='.$val.'&'; } } } if ($newquery) $newquery = '?'.rtrim($newquery,'&'); $path = ''; if(isset($man)) $path .= $man; if(isset($cat)) $path .= $cat; if(isset($pro)) $path .= $pro; ((isset($man) || isset($cat) || isset($pro))) ? $host .= '' :$host .= '/'; if($file == 'index' || $file == 'product_info'){ if((isset($man) || isset($cat) || isset($pro))) $file= ''; } if(eregi('reviews',$file)) $file = '/' . $file; return $scheme.$host.$file.$path.$extension.$newquery.$anchor; } 6) i have replaced modified by autoinstaller catalog/includes/functions/html_output.php with backuped one and modified the tep_href_link function in it: function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) { global $request_type, $session_started, $SID; if (!tep_not_null($page)) { die('</td></tr></table></td></tr></table> <font color="#ff0000"><b>Error!</b></font> <b>Unable to determine the page link! '); } if ($connection == 'NONSSL') { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } elseif ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_HTTP_CATALOG; } } else { die('</td></tr></table></td></tr></table> <font color="#ff0000"><b>Error!</b></font> <b>Unable to determine connection method on a link! Known methods: NONSSL SSL</b> '); } if (tep_not_null($parameters)) { $link .= $page . '?' . tep_output_string($parameters); $separator = '&'; } else { $link .= $page; $separator = '?'; } while ( (substr($link, -1) == '&') || (substr($link, -1) == '?') ) $link = substr($link, 0, -1); // Add the session ID when moving from different HTTP and HTTPS servers, or when SID is defined if ( ($add_session_id == true) && ($session_started == true) && (SESSION_FORCE_COOKIE_USE == 'False') ) { if (tep_not_null($SID)) { $_sid = $SID; } elseif ( ( ($request_type == 'NONSSL') && ($connection == 'SSL') && (ENABLE_SSL == true) ) || ( ($request_type == 'SSL') && ($connection == 'NONSSL') ) ) { if (HTTP_COOKIE_DOMAIN != HTTPS_COOKIE_DOMAIN) { $_sid = tep_session_name() . '=' . tep_session_id(); } } } if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) { while (strstr($link, '&&')) $link = str_replace('&&', '&', $link); $link = str_replace('?', '/', $link); $link = str_replace('&', '/', $link); $link = str_replace('=', '/', $link); $separator = '?'; } if (isset($_sid)) { $link .= $separator . tep_output_string($_sid); } if (SEO_ENABLED == 'true'){ $link = transform_uri($link); } return $link; } 7) i have replaced modified by autoinstaller .htaccess file with one from the NIMMIT: SEF package. And replaced RewriteBase / with RewriteBase /catalog/ because my store is installed in the catalog directory Now I have urls : catalog/category/DVD+Movies_Action.html catalog/product/The_Matrix.html But there are limitations for the NIMMIT SEF contribution: 1) You can't have two product names the same (or it will only ever show the first one) 2) You can't use any of the following charicters in you product titles, category names or manufacturers names + ' " ( I'm sure there are more that will come up) 3) You can't use any non url charicter in your product titles, category names or manufacturers names e.g. £ © ™ so I have the Not Found page error for this url: catalog/product/Microsoft_Internet_Keyboard_PS/2.html because of slash / I think also I see that on the product listing page products urls contain category name catalog/category/Hardware_Keyboards/product/Microsoft_IntelliMouse_Explorer.html I think it can be corrected in the transform_uri function if you don't like it Stanislav
  19. Hello, I can try to do it in spare time And will let you know the result Stanislav
  20. Hello, Here is what I got: ανταλλακτική-μποτίλια-p-37.html The other pages of the site also work fine for me with my Firefox 3.0.11 Stanislav
  21. Hello, Can you show the site how it looks now? Stanislav
  22. Hello, Can you show the exact page url with no images because of htaccess? Stanislav
  23. Hello, It is not suggested to do it because many other contributions relies on this format. If you still need it you can try to use any other seo urls contribution. Click here Stanislav
  24. Hello, Can you attach two screenshots so I can see the difference? I mean the html source of the page in my previous post. When you open any page with your web browser you can view the Page Source of the page. I need two sources to compare and find the difference Stanislav
×