need more extensions and hooks

Discussion in 'Customization & add-ons' started by marcel, Sep 5, 2005.

  1. marcel

    marcel New Member

    Joined:
    Aug 18, 2005
    Messages:
    7
    Are there extension or hooks to:
    List all products associated with a particular group
    List all products

    I'm thinking of somehthing like:
    PHP:
    $db->get_products($productid);

    Any plans to add this ? :)
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It can be done, there are functions:

    $db->get_product($product_id);
    /// for group do this way
    $gproducts = array();
    foreach ($db->get_products() as $p){
    if ($p['price_group'] == '-1')
    $gproducts[] = $p;
    }
    print_r($gproducts);

Share This Page