Latest News: (loading..)

nicko107

Members
  • Content count

    117
  • Joined

  • Last visited

5 Followers

About nicko107

Profile Information

  1. Hi, I upload a version in spanish of STS 4.5.8: "STSv4.5.8 for all osC 2.2 versions - Info espanol -" (nicko107,15 Jan 2009) include all the files (except the english documentation) of the last complete package: "STSv4.5.8 for all osC 2.2 versions" by bkellum, date 23 Jan 2008. The instructions, guide of modules and STS User Manual are translated to spanish in the doc_espanol folder. - "instalacion.html" - "modulos...html" - "Manual de Usuario STS.doc" I hope this help to anyone that need the instructions in spanish to install this very usefull addon regards nicko107
  2. Hi, I did a translation to spanish of the installation instructions and the file catalog/includes/languages/espanol/all-products.php Because I cant upload an spanish version of the contribution I put the translation in the next link to anyone that need it or in the case that could be add to the contribution: http://www.oscatalogo.com/all-products-seo-en-espanol/473/ Thanks for this new version of All Products! regards nicko107
  3. Hi, I would like to help with the spanish translation too, I see in the next link for fix something in the spanish install: http://svn.oscommerce.com/fisheye/browse/o...es_ES/index.php but I can´t see how do it or if is possible. If there a topic where posting about the spanish translation? regards
  4. Hi Then try to change this: in this file: catalog/includes/modules/product_listing_col.php find this line: <img src="images/infobox_module/right.gif" width="14" height="149" /> increse the number 149 to 155 or other bigger to change the size of the box this define a minimun size of the internal of box and can help when the boxes have different high regards
  5. Hi this are the steps to integrate "X-Sell v2.2" with "Individual Boxes 1.2": 1. Edit file: catalog/includes/modules/xsell_products.php Find: new contentBoxHeading($info_box_contents); Replace: // new contentBoxHeading($info_box_contents); (this hide the default header of the module) 2. In the same file find this line: $info_box_contents[$row][$col] = array('align' => 'center', ADD BEFORE: $sql = 'SELECT `products_description` FROM `products_description` WHERE products_id ='. $xsell['products_id'].' && language_id='.(int)$languages_id; $description_query = tep_db_query($sql); $description = mysql_fetch_array($description_query, MYSQL_ASSOC); $description['products_description'] = substr($description['products_description'], 0, 150); $desc_len = strlen($description['products_description']); $description['products_description'][$desc_len-1] = '.'; $description['products_description'][$desc_len-2] = '.'; $description['products_description'][$desc_len-3] = '.'; $description['products_description'] = ereg_replace("(Array)", "", $description['products_description']); (this is for add the query for product description and create the short description) 3. the second is create the individual boxes: In the same file find: $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="33%" valign="top"', 'text' => '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . $xsell['products_name'] .'</a><br>' . $xsell_price. '<br><a href="' . tep_href_link(basename($PHP_SELF), 'action=buy_now&products_id=' . $xsell['products_id'], 'NONSSL') . '">' . tep_image_button('button_buy_now.gif', TEXT_BUY . $xsell['products_name'] . TEXT_NOW) .'</a>'); Replace: $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" cellspacing="0" width="50%" valign="top"', 'text' => '<table width="99%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" valign="bottom" bordercolor="0"><img src="images/infobox_module/upper_left.gif" width="14" height="33" /></td> <td colspan="2" background="images/infobox_module/top.gif" class=mws_boxTop_module><a class=productTitle href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . substr($xsell['products_name'], 0, 30) .'</a></td> <td align="left" valign="bottom"><img src="images/infobox_module/upper_right.gif" width="14" height="33" /></td> </tr> <tr> <td background="images/infobox_module/left.gif" width="14"> </td> <td align="center" class=mws_boxCenter_module><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $xsell['products_image'], $xsell['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a> </td> <td class=mws_boxCenter_module2>'. strip_tags($description['products_description']) . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $xsell['products_id']). '"><b>' . DESCR_READ_MORE . '</b></a><br><br><a href="' . tep_href_link(basename($PHP_SELF), 'action=buy_now&products_id=' . $xsell['products_id'], 'NONSSL') . '">' . tep_image_button('cart_buy.gif', TEXT_BUY . $xsell['products_name'] . TEXT_NOW) .'</a> <strong>' . $xsell_price . '</strong></td> <td background="images/infobox_module/right.gif" class="smallText" width="14"><img src="images/infobox_module/right.gif" width="14" height="149" /></td> </tr> <tr> <td align="right" valign="top"><img src="images/infobox_module/lower_left.gif" width="14" height="12" /></td> <td colspan="2" background="images/infobox_module/bot.gif"><img src="images/infobox_module/bot.gif" width="2" height="12" /></td> <td align="left" valign="top" class="smallText"><img src="images/infobox_module/lower_right.gif" width="14" height="12" /></td> </tr> </table><br>'); (the code use for buy button the code of x-sell) 4. Find this line: if ($col > 2) { Replace: if ($col > 1) { (this is for change the columns products to show 2 columns) 5. Find this line: new contentBox($info_box_contents); replace: new noborderBox($info_box_contents); (this is for hide the default border of the module) Finish. For integrate with others modules: is similar for steps 1,4 and 5 in step 2 for other module change the $xsell for the variable of the other module Step 3 is more difficult but it only needed to compare code first the params change to 50%: 'params' => 'class="smallText" cellspacing="0" width="50%" valign="top"', and the base table is: xsell <table width="99%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" valign="bottom" bordercolor="0"><img src="images/infobox_module/upper_left.gif" width="14" height="33" /></td> <td colspan="2" background="images/infobox_module/top.gif" class=mws_boxTop_module>here is for the product name code</td> <td align="left" valign="bottom"><img src="images/infobox_module/upper_right.gif" width="14" height="33" /></td> </tr> <tr> <td background="images/infobox_module/left.gif" width="14"> </td> <td align="center" class=mws_boxCenter_module>here the product image and the module tag (NEW, SPECIALS,...)</td> <td class=mws_boxCenter_module2>here is for the short description, more info link, price,... </td> <td background="images/infobox_module/right.gif" class="smallText" width="14"><img src="images/infobox_module/right.gif" width="14" height="149" /></td> </tr> <tr> <td align="right" valign="top"><img src="images/infobox_module/lower_left.gif" width="14" height="12" /></td> <td colspan="2" background="images/infobox_module/bot.gif"><img src="images/infobox_module/bot.gif" width="2" height="12" /></td> <td align="left" valign="top" class="smallText"><img src="images/infobox_module/lower_right.gif" width="14" height="12" /></td> </tr> </table><br> comparing the code with others modules integrated with Individual boxes made easy to create the code to insert in the table. regards
  6. Hi For work the Graphical Borders contributions the boxes files have to use the infobox class The boxes of columns are in files of directory boxes: catalog/includes/boxes/categories.php <-- file of categories menu catalog/includes/boxes/information.php <-- file of information box catalog/includes/boxes/currencies.php <-- file of currencies ... All of thats files about the end of the code have this line: new infoBox($info_box_contents); The Graphical Borders contribution modify the infoBox class of boxes use by this files this is the reason that the rounded borders arent displayed in some boxes or in some stores if this boxes have other classes instead infoBox Basic design Pack use other class, osCommerce by default use infoBox for all the boxes but Basic design Pack use others class and a different class for each box I dont try this contribution but I think the solution could be doing the changes to that classes instead the infoBox class or adapted the code for it About the "Show Sub Categories" contributions, thats contribution used other class to the categories box, it use the noborderbox class, but there arent a problem to change in the code of this file catalog/includes/boxes/categories.php the noborderclass that appear about the end of the code to infoBox class to display the graphical borders in this box. regards
  7. This is the link to the page of contribution to download: http://www.oscommerce.com/community/contributions,4810 regards
  8. Hi This contribution have files and buttons of install process of osCommerce in spanish language. Only need to replace some of the osCommerce install files with the files include in images and templates folder of contribution. this only change the text include in the code of the next files: catalog/install/templates/main_page.php catalog/install/templates/pages/index.php catalog/install/templates/pages/install.php catalog/install/templates/pages/install_2.php catalog/install/templates/pages/install_3.php catalog/install/templates/pages/install_4.php catalog/install/templates/pages/install_5.php catalog/install/templates/pages/install_6.php catalog/install/templates/pages/install_7.php catalog/install/templates/pages/upgrade.php catalog/install/templates/pages/upgrade_2.php catalog/install/templates/pages/upgrade_3.php and change the buttons to spanish: catalog/install/images/button_administration_tool.gif catalog/install/images/button_back.gif catalog/install/images/button_cancel.gif catalog/install/images/button_catalog.gif catalog/install/images/button_continue.gif catalog/install/images/button_retry.gif catalog/install/images/install.gif catalog/install/images/upgrade.gif The contribution include instructions to do this and screenshots. This is a screenshots of installation in spanish: *note: the firts version have small error in the text and screenshots and I upload a second zip (complete version) with correct text.
  9. Hi in Featured Products module: catalog/includes/modules/featured.php is define in the 30 of this code: . substr($featured_products['products_name'], 0, 30) . you can change the length changing the 30, this is the charapters numbers of the product name this code appear in two locations in this file and for Specials on default in file: catalog/includes/modules/default_specials.php in this code: . substr($default_specials['products_name'], 0, 30) . the same 30 only appear in one location in this file regards and Happy a New Year
  10. Hi See if you have in your catalog the file: catalog/includes/classes/seo.class.php the error indicated that it havent that file regards
  11. Hi only need to do this: edit file: catalog/stylesheet.css and add this code: /* Graphical Borders - boxes column_left_right - Star */ .mws_boxTop { background: url('images/infobox/top.gif'); font-family: Tahoma; font-size: 11px; text-align : center; font-weight: bold; background-repeat:repeat-x; vertical-align: middle; } .mws_boxLeft { background: url('images/infobox/left.gif'); } .mws_boxRight { background: url('images/infobox/right.gif'); } .mws_boxBottom { background: url('images/infobox/bot.gif'); font-family: Verdana, Arial, sans-serif; font-size: 11px; text-align : center; vertical-align: middle; white-space: nowrap; } .mws_boxCenter { background: #FFFFFF; } /* Graphical Borders - boxes column_left_right - Star */ /* Graphical Borders - boxes main modules and file-pages - Star */ .mws_boxTop_main { background: url('images/infobox_main/top.gif'); font-family: Tahoma; font-size: 11px; text-align : center; font-weight: bold; background-repeat:repeat-x; vertical-align: middle; white-space: nowrap; } .mws_boxLeft_main { background: url('images/infobox_main/left.gif'); } .mws_boxRight_main { background: url('images/infobox_main/right.gif'); } .mws_boxBottom_main { background: url('images/infobox_main/bot.gif'); font-family: Verdana, Arial, sans-serif; font-size: 11px; text-align : center; vertical-align: middle; white-space: nowrap; } .mws_boxCenter_main { background: #FFFFFF; } /* Graphical Borders - boxes main modules and file-pages - End */ TD.noborderbox { font-family: Verdana, Arial, sans-serif; font-size: 10px; } regards
  12. Hi open file: catalog/includes/classes/boxes.php and before the last tag ?> add this code: // Graphical Borders class noborderBox extends tableBox { function noborderBox($contents) { $this->table_cellpadding = '0'; $this->table_cellspacing = '3'; $this->table_data_parameters = 'class="noborderBox"'; $this->tableBox($contents, true); } } // Graphical Borders - end modification regards
  13. Hi The line of code where appear the New Products on month.. is about 312 for a clean install of osCommerce in a clean install this is the code near about lines 286 - 323: <td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="pageHeading"><?php echo HEADING_TITLE; ?></td> <td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><?php echo tep_customer_greeting(); ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td class="main"><?php echo TEXT_MAIN; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> <?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?> </table></td> </tr> </table></td> <?php } ?> you have to insert the code of Featured Products in this location: <td class="main"><?php echo TEXT_MAIN; ?></td> </tr> <-- HERE <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td> </tr> but its could be different in your code regards
  14. Hi the prices are taken of the price of product
  15. Hi If the product havent stock then don´t display the product in the module, when the stock of product is 0 because of this sometimes the product dont appear in the star product module changing a option: admin >> Configuration menu >> Stock: Allow Checkout set to true is a solution for appear the product in module but then a client can purchase a product that havent stock regards