Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

nelsonevp

Banned
  • Posts

    29
  • Joined

  • Last visited

Profile Information

  • Real Name
    Nelson Vargas
  • Location
    Bogot? - Colombia
  • Website

nelsonevp's Achievements

  1. Johan, what is the default language in your admin? Deutsch
  2. Until now, I can not obtain that the popup_oscplayer.php continue in the same language that the customer use. I think that it is necessary to add also a query similar that in popup_images.php, but with adaptation to the new data base of the contribution. This is the actual code in popup_images.php, my question is how do you adapted it to the new database for the new contribution? $products_query = tep_db_query("select pd.products_name, p.products_image from " . TABLE_PRODUCTS . " p left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on p.products_id = pd.products_id where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['pID'] . "' and pd.language_id = '" . (int)$languages_id . "'"); This is the new data base: CREATE TABLE `products_mp3` ( `products_id` int(11) NOT NULL default '0', `products_folder` varchar(25) NOT NULL default '', PRIMARY KEY (`products_id`), UNIQUE KEY `products_folder` (`products_folder`) ) TYPE=MyISAM; INSERT INTO configuration_group VALUES ('20', 'osplayer', 'osPlayer v2 Options', '20', '1'); INSERT INTO configuration VALUES ('', 'Open player in a pop up', 'ENTRY_OSCP_POPUP', 'true', 'Open a popup window ( true ) or put the player on the page ( false )', '20', '1', '', '', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),'); INSERT INTO configuration VALUES ('', 'Lecture automatique', 'ENTRY_OSCP_PLAY', 'false', 'Autoplay ? ', 20, 2, '', '', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),'); INSERT INTO configuration VALUES ('', 'Mp3 preview', 'PRODUCT_LIST_MP3', '10', 'Add a listen button ?', 8, 5, now(), now(), NULL, NULL); Thanks, Nelson
  3. I am happy you had success. Exitos y hasta pronto amigo. Spanish is close to portuguese. Nelson
  4. Hello, I think you don't need to translate any language, I had this problem one year ago when I start , and the solution is in the file portuguese.php . in the first part . Look for example the spanish and french. Revise only in this part your file portuguese.php. I am not sure, but tried. <?php /* $Id: espanol.php,v 1.107 2003/07/09 18:13:39 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // look in your $PATH_LOCALE/locale directory for available locales // or type locale -a on the server. // Examples: // on RedHat try 'es_ES' // on FreeBSD try 'es_ES.ISO_8859-1' // on Windows try 'sp', or 'Spanish' @setlocale(LC_TIME, 'es_ES.ISO_8859-1'); define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'd/m/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2); } } // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'EUR'); // Global entries for the <html> tag define('HTML_PARAMS','dir="LTR" lang="es"'); ******************************************************** and german: <?php /* $Id: german.php,v 1.124 2003/07/11 09:03:49 jan0815 Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // look in your $PATH_LOCALE/locale directory for available locales // or type locale -a on the server. // Examples: // on RedHat try 'de_DE' // on FreeBSD try 'de_DE.ISO_8859-1' // on Windows try 'de' or 'German' @setlocale(LC_TIME, 'de_DE.ISO_8859-1'); define('DATE_FORMAT_SHORT', '%d.%m.%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A, %d. %B %Y'); // this is used for strftime() define('DATE_FORMAT', 'd.m.Y'); // this is used for strftime() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2); } } // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'EUR'); // Global entries for the <html> tag define('HTML_PARAMS','dir="LTR" lang="de"'); Regards, Nelson
  5. Did you see the link, between your shop and the main page if you has a host? Nelson
  6. Hello, I Install this one year ago, and it is fine. 2.2_MS2_French_language_Pack_v0.1 http://www.oscommerce.com/community/contri...guage_Pack_v0.1 Regards, Nelson
  7. Ref: Problem in multilingual webpage Hello, Please, what is it necessary to add to his popup file in order to maintain the language, otherwise after the customer use it (popup) , the webpage return to the default language . The popup_oscplayer.php is: <?php /* $Id: popup_oscplayer.php,v 2.00 09/11/2004 16:00:10 ManMAchine Exp $ Released under the GNU General Public License */ ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Mp3 preview</title> </head> <style type="text/css"><!-- body { margin:0; padding:0; background: #fff; } //--></style> <body> <!--swf player file --> <object type="application/x-shockwave-flash" data="osc_player.swf?mp3id=<?php echo $_GET['product_id'];?>&autoplay=<?php echo $_GET['autoplay'];?>" width="193" height="265"> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="movie" value="osc_player.swf?mp3id=<?php echo $_GET['product_id'];?>&autoplay=<?php echo $_GET['autoplay'];?>"/> <a href=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash target="blank"><img src="images/icons/noflash.gif" width="88" height="31" vspace="5" hspace="50" alt="install flash player plugin"/></a> </object> </body> </html> **************************************************************************** For your information the new data base for this contribution is this: CREATE TABLE `products_mp3` ( `products_id` int(11) NOT NULL default '0', `products_folder` varchar(25) NOT NULL default '', PRIMARY KEY (`products_id`), UNIQUE KEY `products_folder` (`products_folder`) ) TYPE=MyISAM; INSERT INTO configuration_group VALUES ('20', 'osplayer', 'osPlayer v2 Options', '20', '1'); INSERT INTO configuration VALUES ('', 'Open player in a pop up', 'ENTRY_OSCP_POPUP', 'true', 'Open a popup window ( true ) or put the player on the page ( false )', '20', '1', '', '', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),'); INSERT INTO configuration VALUES ('', 'Lecture automatique', 'ENTRY_OSCP_PLAY', 'false', 'Autoplay ? ', 20, 2, '', '', NULL, 'tep_cfg_select_option(array(\'true\', \'false\'),'); INSERT INTO configuration VALUES ('', 'Mp3 preview', 'PRODUCT_LIST_MP3', '10', 'Add a listen button ?', 8, 5, now(), now(), NULL, NULL); Thanks, Nelson
  8. Hello, I understand there are two contributions for your language here: http://www.oscommerce.com/community/contri...,Dutch+Language and http://www.oscommerce.com/community/contri...,Dutch+Language You only put one after one each file. Regards, Nelson
  9. Thanks Sonia, I install your instruction and now all the languages after the popup_oscplayer.php go to Spanish. For your information the default language is English. In the past I had similar situation ( the languages went to Spanish) after the customer use a "Visual Verify Code) in order to went in Contact Us and Tell a friend and the solution was to force this pages with SSL. But now I can't force to SSL because the osplayer don't open and consequently no music. I think you are very close to solution, perhaps add the query? But I don't know how I install in the query only the part of the languages, because It is only for the CDs and I have also different products. Regards and thanks again, Nelson
  10. Hello , I have the contribution: "osplayer v2.1" for Mp3 music, the unique problem is when the customer use the file : popup_oscplayer in order to listen the music, after it the shop continues always in English and leave the original language in which the client use it (I have 5 languages) Eg. Spanish, French, Italian, German and in these cases the shop continues after in English. ( I work many hours but unfortunately I can not find the solution) Please if you have time for the solution I appreciate a lot. The whole file popup_oscplayer.php is: <?php /* $Id: popup_oscplayer.php,v 2.00 09/11/2004 16:00:10 ManMAchine Exp $ Mp3 player module for osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com osPlayer - ManMAchine - 09/11/2004 [email protected] Copyright ? 2004 ManMAchine Released under the GNU General Public License */ //******************************************** //******************************************** // oscPlayer V2 ? Manmachine //******************************************** //******************************************** ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Mp3 preview</title> </head> <style type="text/css"><!-- body { margin:0; padding:0; background: #fff; } //--></style> <body> <!--swf player file --> <object type="application/x-shockwave-flash" data="osc_player.swf?mp3id=<?php echo $_GET['product_id'];?>&autoplay=<?php echo $_GET['autoplay'];?>" width="193" height="265"> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="movie" value="osc_player.swf?mp3id=<?php echo $_GET['product_id'];?>&autoplay=<?php echo $_GET['autoplay'];?>"/> <a href=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash target="blank"><img src="images/icons/noflash.gif" width="88" height="31" vspace="5" hspace="50" alt="install flash player plugin"/></a> </object> </body> </html> Thanks, Nelson
  11. Hello , I have a little problem. I have the contribution: "osplayer v2.1" for Mp3 music, the unique problem is when the customer use the file : popup_oscplayer in order to listen the music, after it the shop continues always in English and leave the original language in which the client use it (I have 5 languages) Eg. Spanish, French, Italian, German and in these cases the shop continues after in English. ( I work many hours but unfortunately I can not find the solution) Please if you have time for the solution I appreciate a lot. The whole file popup_oscplayer.php is: <?php /* $Id: popup_oscplayer.php,v 2.00 09/11/2004 16:00:10 ManMAchine Exp $ Mp3 player module for osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com osPlayer - ManMAchine - 09/11/2004 [email protected] Copyright ? 2004 ManMAchine Released under the GNU General Public License */ //******************************************** //******************************************** // oscPlayer V2 ? Manmachine //******************************************** //******************************************** ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Mp3 preview</title> </head> <style type="text/css"><!-- body { margin:0; padding:0; background: #fff; } //--></style> <body> <!--swf player file --> <object type="application/x-shockwave-flash" data="osc_player.swf?mp3id=<?php echo $_GET['product_id'];?>&autoplay=<?php echo $_GET['autoplay'];?>" width="193" height="265"> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="movie" value="osc_player.swf?mp3id=<?php echo $_GET['product_id'];?>&autoplay=<?php echo $_GET['autoplay'];?>"/> <a href=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash target="blank"><img src="images/icons/noflash.gif" width="88" height="31" vspace="5" hspace="50" alt="install flash player plugin"/></a> </object> </body> </html> Thanks and best regards, Nelson
  12. I had the same problem, but solution is easy: 1) Consider the unit as a kilo = 2 pounds, Then you change all the names Pounds to kilos, and for ej. in the shipping you say .5 of kilo = 3 dollars , 1 kilo = 5 dollars, 1.5 6 dollars etc. Really it is not a problem. Cheers, Nelson
×
×
  • Create New...