Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

sagitario

Pioneers
  • Posts

    38
  • Joined

  • Last visited

Posts posted by sagitario

  1. 7.Could be a problem with the database engine. I dont know about portugues. Look in languages/portugues.php

    define('CHARSET', 'iso-8859-1');

    Some new versions of osc uses UTF-8

     

    Compare it with the database engine & collation.

    Good luck.

     

    Yes, with the osc upgrade I convert all to UTF-8. All my sql tables are all in utf8_unicode_ci

     

    above that option there is a mode to change the path rewrite. Try changing the mode.

     

    Yehhhh... that do the trick. Thank you very much :)

     

    8. Try converting the file codification to UTF-8 without BOM.

     

    Every day a new lesson. Never eared before about BOM or without BOM. I save the file without BOM and work like a charm. Many thanks once again, you are a master ;)

  2. Hi,

     

    OK, I have install this add-on and at start everything seems alright. But when I try some links that have especial characters I see that I have something missing.

     

    Back to add-on package and find in the extras the character_conversion_pack and put the conversion file inside catalog/includes/modules/ultimate_seo_urls5/includes/character_conversion. I put the file named exactly the same as my language file.

     

    This is the content of my file:

     

    <?php $char_convert = array('à' => 'a', 'â' => 'a', 'á' => 'a', 'ã' => 'a', 'ê' => 'e', 'ë' => 'e', 'é' => 'e', 'ô' => 'o', 'ó' => 'o', 'õ' => 'o', 'ö' => 'o', 'ú' => 'u', 'ü' => 'u', 'í' => 'i', 'ç' => 'c', 'ñ' => 'n', 'À' => 'A', 'Â' => 'A', 'Á' => 'A', 'Ã' => 'A', 'Ê' => 'E', 'Ë' => 'E', 'É' => 'E', 'Ô' => 'O', 'Ó' => 'O', 'Õ' => 'O', 'Ö' => 'O', 'Ú' => 'U', 'Ü' => 'U', 'Í' => 'I', 'Ç' => 'C', 'Ñ' => 'N', 'ª' => 'a', 'º' => 'o'); ?>
    

     

    I enable the variable report and see this result:

     

    [character_conversion] => Array
    	 (
    			 [�] => a
    			 [�] => a
    			 [�] => a
    			 [�] => a
    			 [�] => e
    			 [�] => e
    			 [�] => o
    			 [�] => o
    			 [�] => o
    			 [�] => u
    			 [�] => i
    			 [�] => c
    			 [�] => A
    			 [�] => A
    			 [�] => A
    			 [�] => A
    			 [�] => E
    			 [�] => E
    			 [�] => O
    			 [�] => O
    			 [�] => O
    			 [�] => U
    			 [�] => I
    			 [�] => C
    			 [�] => a
    			 [�] => o
    

     

    Remove the character file from folder and and adding manual on admin it works ok.

     

    [character_conversion] => Array
    	 (
    			 [à] => a
    			 [â] => a
    			 [á] => a
    			 [ã] => a
    			 [ê] => e
    			 [é] => e
    			 [ô] => o
    			 [ó] => o
    			 [õ] => o
    			 [ú] => u
    			 [í] => i
    			 [ç] => c
    			 [À] => A
    			 [Â] => A
    			 [Á] => A
    			 [Ã] => A
    			 [Ê] => E
    			 [É] => E
    			 [Ô] => O
    			 [Ó] => O
    			 [Õ] => O
    			 [Ú] => U
    			 [Í] => I
    			 [Ç] => C
    			 [ª] => a
    			 [º] => o
    

     

    Theres something that don't read well my convert file variables.

     

    In meantime I have another problem.

     

    My site look like www.mysite.com/index.php/hardware-c-1 and I want to look lik look like www.mysite.com/hardware-c-1.

     

    I read the documentation and and the .htaccess to my root folder with the follow code:

     

    # If you are getting errors you may need to comment this out like ..
    # Options +FollowSymLinks
    Options +SymLinksIfOwnerMatch
    <IfModule mod_rewrite.c>
    RewriteEngine On
    # RewriteBase instructions
    # Change RewriteBase dependent on how your shop is accessed as below.
    # http://www.mysite.com = RewriteBase /
    # http://www.mysite.com/catalog/ = RewriteBase /catalog/
    # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/
    # Change RewriteBase using the instructions above
    RewriteBase /
    RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]
    RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]
    RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]
    RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]
    RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]
    RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]
    # Articles contribution
    RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]
    RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]
    RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]
    # Information pages
    RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]
    # Links contribution
    RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]
    # Newsdesk contribution
    RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]
    RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]
    RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]
    RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]
    </IfModule>
    

     

    I already change in Admin the force option to true, but it stays the same. Don't see where I made a wrong turn.

     

    What I'm doing wrong?

     

    Thanks in advance.

  3. In meantime I have another problem.

     

    My site look like www.mysite.com/index.php/hardware-c-1 and I want to look lik look like www.mysite.com/hardware-c-1.

     

    I read the documentation and and the .htaccess to my root folder with the follow code:

     

    # If you are getting errors you may need to comment this out like ..
    # Options +FollowSymLinks
    Options +SymLinksIfOwnerMatch
    <IfModule mod_rewrite.c>
     RewriteEngine On
     # RewriteBase instructions
     # Change RewriteBase dependent on how your shop is accessed as below.
     # http://www.mysite.com = RewriteBase /
     # http://www.mysite.com/catalog/ = RewriteBase /catalog/
     # http://www.mysite.com/catalog/shop/ = RewriteBase /catalog/shop/
     # Change RewriteBase using the instructions above 
     RewriteBase /
     RewriteRule ^([a-z0-9/-]+)-p-([0-9]+).html$ product_info.php [NC,L,QSA]
     RewriteRule ^([a-z0-9/-]+)-c-([0-9_]+).html$ index.php [NC,L,QSA]
     RewriteRule ^([a-z0-9/-]+)-m-([0-9]+).html$ index.php [NC,L,QSA]
     RewriteRule ^([a-z0-9/-]+)-pi-([0-9]+).html$ popup_image.php [NC,L,QSA]
     RewriteRule ^([a-z0-9/-]+)-pr-([0-9]+).html$ product_reviews.php [NC,L,QSA]
     RewriteRule ^([a-z0-9/-]+)-pri-([0-9]+).html$ product_reviews_info.php [NC,L,QSA]
     # Articles contribution
     RewriteRule ^([a-z0-9/-]+)-t-([0-9_]+).html$ articles.php [NC,L,QSA]
     RewriteRule ^([a-z0-9/-]+)-au-([0-9]+).html$ articles.php [NC,L,QSA]
     RewriteRule ^([a-z0-9/-]+)-a-([0-9]+).html$ article_info.php [NC,L,QSA]
     # Information pages
     RewriteRule ^([a-z0-9/-]+)-i-([0-9]+).html$ information.php [NC,L,QSA]
     # Links contribution
     RewriteRule ^([a-z0-9/-]+)-links-([0-9_]+).html$ links.php [NC,L,QSA]
     # Newsdesk contribution
     RewriteRule ^([a-z0-9/-]+)-n-([0-9]+).html$ newsdesk_info.php [NC,L,QSA]
     RewriteRule ^([a-z0-9/-]+)-nc-([0-9]+).html$ newsdesk_index.php [NC,L,QSA]
     RewriteRule ^([a-z0-9/-]+)-nri-([0-9]+).html$ newsdesk_reviews_info.php [NC,L,QSA]
     RewriteRule ^([a-z0-9/-]+)-nra-([0-9]+).html$ newsdesk_reviews_article.php [NC,L,QSA]
    </IfModule>
    

     

    I already change in Admin the force option to true, but it stays the same. Don't see where I made a wrong turn.

     

    Thank in advance.

  4. Ok, I enable the variable report and see this result:

     

    [character_conversion] => Array
     (
    	 [�] => a
    	 [�] => a
    	 [�] => a
    	 [�] => a
    	 [�] => e
    	 [�] => e
    	 [�] => o
    	 [�] => o
    	 [�] => o
    	 [�] => u
    	 [�] => i
    	 [�] => c
    	 [�] => A
    	 [�] => A
    	 [�] => A
    	 [�] => A
    	 [�] => E
    	 [�] => E
    	 [�] => O
    	 [�] => O
    	 [�] => O
    	 [�] => U
    	 [�] => I
    	 [�] => C
    	 [�] => a
    	 [�] => o
    

     

    Remove the character file from folder and and adding manual on admin it works ok.

     

    [character_conversion] => Array
     (
    	 [à] => a
    	 [â] => a
    	 [á] => a
    	 [ã] => a
    	 [ê] => e
    	 [é] => e
    	 [ô] => o
    	 [ó] => o
    	 [õ] => o
    	 [ú] => u
    	 [í] => i
    	 [ç] => c
    	 [À] => A
    	 [Â] => A
    	 [Á] => A
    	 [Ã] => A
    	 [Ê] => E
    	 [É] => E
    	 [Ô] => O
    	 [Ó] => O
    	 [Õ] => O
    	 [Ú] => U
    	 [Í] => I
    	 [Ç] => C
    	 [ª] => a
    	 [º] => o
    

     

    Theres something that don't read well my convert file variables.

     

    Any help?

     

    Regards,

  5. Hi,

     

    Been searching for an hour or so to find a solution to this, but no luck so far.

     

    Trying to install this on my 2.3.3.4 site and in the instructions it says:

     

     

    However, in 2.3.3.4 the Find code is actually:

    // include the language translations
    $_system_locale_numeric = setlocale(LC_NUMERIC, 0);
    require(DIR_WS_LANGUAGES . $language . '.php');
    setlocale(LC_NUMERIC, $_system_locale_numeric); // Prevent LC_ALL from setting LC_NUMERIC to a locale with 1,0 float/decimal values instead of 1.0 (see bug #634)
    

    The LC_NUMERIC function was added at 2.3.3.4 update.

     

    If I add the code from the mod above this block then I get a white page on page load.

     

    Has anyone found a solution to this on 2.3.3.4?

     

    Many Thanks

     

    I put in this way and work.

     

    // include the language translations
    $_system_locale_numeric = setlocale(LC_NUMERIC, 0);
    require(DIR_WS_LANGUAGES . $language . '.php');
    /**
    * ULTIMATE Seo Urls 5 PRO by FWR Media
    */
    Usu_Main::i()->setVar( 'languages_id', $languages_id )
    		 ->setVar( 'request_type', $request_type )
    		 ->setVar( 'session_started', $session_started )
    		 ->setVar( 'sid', $SID )
    		 ->setVar( 'language', $language )
    		 ->setVar( 'filename', $PHP_SELF )
    		 ->initiate( ( isset( $lng ) && ( $lng instanceof language ) ) ? $lng : array(), $languages_id, $language );
    
    setlocale(LC_NUMERIC, $_system_locale_numeric); // Prevent LC_ALL from setting LC_NUMERIC to a locale with 1,0 float/decimal values instead of 1.0 (see bug #634)
    

  6. 1.the files must be in \includes\modules\ultimate_seo_urls5\includes\character_conversion

    2. make 1 file per language

    3. your file seems to be the spanish version. Rename it as espanol.php

    4. if you installed for example 3 languages in your osc, delete the other ones folders. = 1 folder per languaje(default espanol, english, german)

    5. It seems to be right but try with this one:

    <?php // Spanish
    $char_convert = array('á' => 'a', 'é' => 'e', 'í' => 'i', 'ñ' => 'n', 'ã' => 'a', 'á' => 'a', 'ó' => 'o', 'ú' => 'u', 'ü' => 'u', 'Á' => 'A', 'É' => 'E', 'Í' => 'I', 'Ñ' => 'N', 'Ó' => 'O', 'Ú' => 'U', 'Ü' => 'U', '¿' => '-', '¡' => '-');
    ?>

     

    1. The file path is \includes\modules\ultimate_seo_urls5\includes\character_conversion\portugues.php

    2. I only have one language, theres only one file in the folder.

    3. No, its Portuguese. I rename to "portugues.php" because this is the name of my language file.

    4. Only have one.

    5. I use the code but the only word that was convert was the "á" and the strange thing is that it uses the wrong conversion. If I change 'á' => 'a' to 'á' => 'c' the result of this word, for example, "tá" become "tc". But the letter 'á' don't exist in the word "tá". If I delete the 'á' => 'a' (this word don't exist in portuguese language) it stop to convert the word "á". All other words never convert.

     

    Hope that what I say don't seems confuse.

     

    6. this is the code that gets the error:

    	 $final_text_array = array();
     foreach ( $text_array as $key => $text ) {
     if ( tep_not_null( trim( $text ) ) ) {
    	 $final_text_array[$key] = $text;
     }
     }
     // We will cache this result
     Usu_Main::i()->getVar( 'registry' )->attach( $this->key, $this->keys_index[$this->key], $final_text_array );
     return $final_text_array;
    }

    Could be that you have some products without any products_name asigned (empty or null). Try to write some name description for all languages. Then RESET cache.

     

    Ok, I have one product with products_name empty and after I change it the 120 error disappear.

  7. I don't see nothing wrong on file.

     

    <?php
    $char_convert = array('à' => 'a', 'â' => 'a', 'á' => 'a', 'ã' => 'a',
    				 'ê' => 'e', 'ë' => 'e', 'é' => 'e',
    				 'ô' => 'o', 'ó' => 'o', 'õ' => 'o', 'ö' => 'o',
    				 'ú' => 'u', 'ü' => 'u',
    				 'í' => 'i', 'ç' => 'c', 'ñ' => 'n',
    				 'À' => 'A', 'Â' => 'A', 'Á' => 'A', 'Ã' => 'A',
    				 'Ê' => 'E', 'Ë' => 'E', 'É' => 'E',
    				 'Ô' => 'O', 'Ó' => 'O', 'Õ' => 'O', 'Ö' => 'O',
    				 'Ú' => 'U', 'Ü' => 'U',
    				 'Í' => 'I', 'Ç' => 'C', 'Ñ' => 'N',
    				 'ª' => 'a', 'º' => 'o'
    );
    ?>
    

  8. Hi,

     

    OK, I have install this add-on and at start everything seems alright. But when I try some links that have especial characters I see that I have something missing.

     

    Back to add-on package and find in the extras the character_conversion_pack and put the conversion file inside catalog/includes/modules/ultimate_seo_urls5/includes/character_conversion. I put the file named exactly the same as my language file.

     

    Then I go back to my site and see the fowling error:

     

    Warning: Invalid argument supplied for foreach() in catalog/includes/modules/ultimate_seo_urls5/page_modules/product_info.php on line 102

     

    Remove the conversion file and the error disappear but the problem with the especial characters continues.

     

    What I'm doing wrong?

     

    Thanks in advance.

  9. Hi,

     

    I have install AJAX-AttributeManager-V2.8.9 and everything looks fine. The only problem that I have is the "move option". In back-office I can move the options but in front-office the positions of the options maintain the same. It's suppose to change it like I have leave in the back-office.

     

    Someone can help me with this problem?

     

    Regards,

×
×
  • Create New...