Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

emiliano

Archived
  • Posts

    409
  • Joined

  • Last visited

Posts posted by emiliano

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

  2. Why did changing them to the last line fix the problem?

     

    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)

     

    --------

     

    I've also noticed that when I make changes to product information in the admin panel the featured status of the product switches to on whether or not I want that product to be featured.

     

    Thanks for letting me know this.. i will release a solution for this simple problem in a day or two..

     

     

    cheers

    emiliano

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

  4. 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;
       }
     }

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

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

×
×
  • Create New...