Jump to content

emiliano

Members
  • Content count

    409
  • Joined

  • Last visited

Everything posted by emiliano

  1. emiliano

    cieto Featured Products 2.5 MS2

    You have the old categories.php, i upload a new one with version 2.51... So you will see this: Products Status: () In Stock () Out of Stock FeatredProducts Status: () In Stock () Out of Stock Date Available: [text box] (YYYY-MM-DD) Date Available: [text box] (YYYY-MM-DD) The second Date Availabe is the one where you have to setup Featured Until Date. I forget to add a text to change this.. so in line 532 (admin/categories.php) change this: <td class="main"><?php echo TEXT_PRODUCTS_DATE_AVAILABLE; ?><br><small>(YYYY-MM-DD)</small></td> with this: <td class="main">Featured until <?php echo TEXT_PRODUCTS_DATE_AVAILABLE; ?><br><small>(YYYY-MM-DD)</small></td> If the problem is that you can't see the text box to add the date, i'm terribly sorry, but that's the way osc handle the calendar box... cheers emiliano
  2. emiliano

    cieto Featured Products 2.5 MS2

    How to There are 2 ways to set the featured status of product as "true". From the product listing in the admin or when you create/update a product. From the product listing you just need to click on the green line in the Featured column... doing this you will add this products "xx" days from the current date.. you can change this "xx" days from configuration -> Featured Products -> Featured Period. When you create/update a product you need to use the second line of radio buttions (under you set the status of the product). The featured until date here you can set up it as you want.. if you are having troubles with this give me a call.. sometimes the javascript for the calendar it?s not well loaded.. so refresh the page... cheers emiliano
  3. emiliano

    cieto Featured Products 2.5 MS2

    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
  4. emiliano

    cieto Featured Products 2.5 MS2

    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
  5. emiliano

    cieto Featured Products 2.5 MS2

    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
  6. emiliano

    cieto Featured Products 2.5 MS2

    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
  7. emiliano

    cieto Featured Products 2.5 MS2

    there are some problems with the available date and the featured until date.. i'm trying to solve this bugs.....
  8. emiliano

    cieto Featured Products 2.5 MS2

    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
  9. emiliano

    cieto Featured Products 2.5 MS2

    Know bugs (sorry) Problem with product date available and featured until date. I'm working on it... Cheers emiliano
  10. emiliano

    cieto Featured Products 2.5 MS2

    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
  11. emiliano

    cieto Featured Products 2.5 MS2

    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; } }
  12. emiliano

    Featured Products cont. question...

    in the featured query use group by category and the link change it to go to index?cPath=number_of_category cheers emiliano
  13. emiliano

    cieto Featured Products 2.5 MS2

    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
  14. emiliano

    Articles Mod

    TABLE_ARTICLECAT is define @ database_tables.php ???
  15. Cieto featured products v 2.1 beta http://www.oscommerce.com/community/contributions,505 CHANGELOG 04/20/2003 V2.1 beta # Now it shows only products from the category you are in!!! Thanks to Dreamscape # Configuration from admin: |__Show or not the featured products. |__Quantity of featured to show. |__Columns in layout. |__Words of description to show (from product's description) if short description it's not entered. Please post any bug. cheers Emiliano
  16. emiliano

    MonthlySales&Tax1.55a

    in languges files define BOX_REPORTS_MONTHLY_SALES as Monthly Sales and Tax Reports
  17. 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 cieto@msn.com 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).
  18. emiliano

    what are the must have contributions?

    i'm working on it... i want a 30 hours day
  19. emiliano

    NewsBox Mod Update

    Where can i see it work?
  20. 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?
  21. you just copy the product system?? emiliano
  22. 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
  23. emiliano

    Invision Power Board Intergration Into OSC

    invision is not gpl.. i think that there is a problem with that... cheers emiliano
  24. emiliano

    Slideshow released

    There's a preview site? cheers emiliano
  25. emiliano

    manufacturer's logos

    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
×