Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

emiliano

Archived
  • Posts

    409
  • Joined

  • Last visited

Everything posted by emiliano

  1. The best thing it's to download the package, REPLACE categories.php and follow the instruccions.. (there are only 3 new steps i think... ) cheers emiliano
  2. Cieto Featured Products 2.51 MS2 new release 11/03/2003 V2.51 MS2 Many bugs fixed. -->Some functions where missing in the last release. -->Date available and featured until date now works. -->Featured status in update product page has previos value as default. New languages lines (I forgot them in the last release) All bugs from this topic are now corrected. Download @http://www.oscommerce.com/community/contributions,505
  3. Because inside the if statement you define the text for the main page, the category page and the product listing.. if you copy the lines outside the if statement you are defining the line for all the posibilities (main page, categories, products listing) -------- Thanks for letting me know this.. i will release a solution for this simple problem in a day or two.. cheers emiliano
  4. Buy now problem! includes/modules/featured_products.php (line 56) Replace this: <td align="left" valign="top" class="main"><?php echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price; ?><br><?php echo '<a href="' . tep_href_link('default.php', tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">'; ?><?php echo TABLE_HEADING_BUY_NOW;?></a> With this: <td align="left" valign="top" class="main"><?php echo tep_image(DIR_WS_IMAGES . 'pixel_trans.gif', '', '1', '5') . '<br>' . TABLE_HEADING_PRICE . ': ' . $products_price; ?><br><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products_array[$i]['id'], 'NONSSL') . '">'; ?><?php echo TABLE_HEADING_BUY_NOW;?></a> Problem with text not define TABLE_HEADING_PRICE, TABLE_HEADING_BUY_NOW, etc I'm sure you miss this ### Catalog ### [ Step 1 ] ################## ### File : includes/languages/xxxx/index.php Cut and paste it before the end of file: define('TABLE_HEADING_PRICE', .... define('TABLE_HEADING_BUY_NOW', .... Then add (check what to add for each language): For english add: define('TEXT_NO_FEATURED_PRODUCTS', 'There are no featured products'); define('TEXT_MORE_INFO', 'More information'); For german add: define('TEXT_NO_FEATURED_PRODUCTS', 'Es gibt kein gekennzeichnete Produkte'); define('TEXT_MORE_INFO', 'Mehr informationen'); For spanish use: define('TEXT_NO_FEATURED_PRODUCTS', 'No hay productos especiales'); define('TEXT_MORE_INFO', 'Más información'); You need to go to includes/languages/english/index.php (example) search for: define('TABLE_HEADING_PRICE', .... define('TABLE_HEADING_BUY_NOW', .... cut those lines, paste them ad the end of file (before the last ?> ) and then add define('TEXT_NO_FEATURED_PRODUCTS', 'There are no featured products'); define('TEXT_MORE_INFO', 'More information'); I hope this solve all the problems.. Missing F in Catalog Content Some language files needs to be change.. i will release a new categories.php this week to solve that problem (a minor one)... i'm trying to solve the dates problem.. wich i think it's more important.. cheers emiliano
  5. there are some problems with the available date and the featured until date.. i'm trying to solve this bugs.....
  6. the idea it's to get rid off the infoboxes!!! about showing products of the category you're in that was a bug corrected many versions ago, i will released a new version in this days to solve all the bugs... cheers
  7. Know bugs (sorry) Problem with product date available and featured until date. I'm working on it... Cheers emiliano
  8. Yes off course.. it works as the product description/name does... Featured date If someone has problems with the featured until date, please give me a call... cheers emiliano
  9. Update to readme.txt (new readme upload to contributions) ### [ Step 4 ] ################## ### File : admin/includes/functions/general.php Replace this: // Sets the status of a product function tep_set_product_status($products_id, $status) { if ($status == '1') { return tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '1', products_last_modified = now() where products_id = '" . (int)$products_id . "'"); } elseif ($status == '0') { return tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0', products_last_modified = now() where products_id = '" . (int)$products_id . "'"); } else { return -1; } } With this: // Sets the status of a product function tep_set_product_status($products_id, $status) { if ($status == '1') { return tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '1', products_last_modified = now() where products_id = '" . (int)$products_id . "'"); } elseif ($status == '0') { return tep_db_query("update " . TABLE_PRODUCTS . " set products_status = '0', products_featured = '0', products_last_modified = now() where products_id = '" . (int)$products_id . "'"); } else { return -1; } } //// // Sets the featured status of a product function tep_set_product_featured($products_id, $featured) { if ($featured == '1') { return tep_db_query("update " . TABLE_PRODUCTS . " set products_featured = '1', products_last_modified = now(), products_featured_until = '". date('Y/m/d', time() + 86400 * DAYS_UNTIL_FEATURED_PRODUCTS)."' where products_id = '" . (int)$products_id . "'"); } elseif ($featured == '0') { return tep_db_query("update " . TABLE_PRODUCTS . " set products_featured = '0', products_last_modified = now(), products_featured_until = NULL where products_id = '" . (int)$products_id . "'"); } else { return -1; } }
  10. in the featured query use group by category and the link change it to go to index?cPath=number_of_category cheers emiliano
  11. maybe i forgot to define that function... i ask for beta tester but just only one reply me... tonight i will send you what to add to get this thing working... cheers emiliano
  12. TABLE_ARTICLECAT is define @ database_tables.php ???
  13. cieto Featured Products 2.5 MS2 10/30/2003 V2.5 MS2 Many bugs fixed. Cleaner files. Less files to get this thing work. No language files, minor modification to osC language files. Now it's possible to use the green/red light button to activate a featured product. Set featured products from the Contents. It's possible to create a product and assign the featured status right there with expire date. The featured section in Catalog it's gone. Configuration from admin: -->Featured period (how many days do you want a featured product to be as featured when you click on the green light). Download @ http://www.oscommerce.com/community/contributions,505
  14. in languges files define BOX_REPORTS_MONTHLY_SALES as Monthly Sales and Tax Reports
  15. cieto Featured Products 2.5 MS2 beta Hi, i need beta tester for this contribution... now it works with MS2.. i think that with 5 testers it will be great. also i need to check the english and german language texts... email me [email protected] and i will send you the package. thanks in advance CHANGELOG: 10/24/2003 V2.5 MS2 Many bugs fixed. Cleaner files. Less files to get this thing work. No language files, minor modification to osC language files. Now it's possible to use the green/red light button to activate a featured product. Set featured products from the Contents. It's possible to create a product and assign the featured status right there with expire date. The featured section in Catalog it's gone. Configuration from admin: -->Featured period (how many days you want a featured product to be as featured when you click in the green light).
  16. i just wanted to know before download the contribution if it was made as i tought... ps: just to know, why you have that avatar?
  17. I install the lastest posted file and I get that error... are you sure you're using the right file for your site? I have a problem... the prices are showned twice!!! i can't found in the file an error... with the deafult product listing the prices where showned ok... so i think that index.php it's not the problem.. someone could help me? emiliano
  18. invision is not gpl.. i think that there is a problem with that... cheers emiliano
  19. There's a preview site? cheers emiliano
  20. every contribution you talk about in this forum you must contribute it!!! that's the forums rule.. cheers emiliano ps: yes, post the code and somebody, maybe me, would create the contribution
  21. i can't found it in the contributions section, why? contribute it!!! cheers emiliano
  22. Or searching the wiki or tip and tricks forums... there is a easy way to do it there! cheers emiliano
×
×
  • Create New...