$product->add_photograph_by_id($_POST['design_photograph_id'], 'design');
    # EXTRAS PHOTOGRAPH
    $photographs_table = $database->get_table('hpi_shop_photographs');
    $photographs = $photographs_table->get_all_rows();
    foreach ($photographs as $photograph) {
        if (isset($_POST['extra_photograph_id_' . $photograph->get_id()])) {
            $product->add_photograph_by_id($photograph->get_id(), 'extra');
        }
    }
    $return_to_url->set_get_variable('last_added_id', $last_added_id);
}
# Update a project in the database.
if (isset($_GET['edit_id'])) {
    #print_r($_POST);exit;
    //        print_r($_GET);exit;
    Shop_ProductsHelper::edit_all_products_with_this_products_style_id($_GET['edit_id'], $_POST);
    $return_to_url->set_get_variable('last_edited_id', $_GET['edit_id']);
    if (isset($_GET['plu_code'])) {
        $return_to_url->set_get_variable('plu_code', $_GET['plu_code']);
    }
}
if (isset($_GET['set_price']) && isset($_GET['product_id'])) {
    #print_r($_POST);
    $product_currency_prices_table = $database->get_table('hpi_shop_product_currency_prices');
    $currencies_table = $database->get_table('hpi_shop_currencies');
    $currencies = $currencies_table->get_all_rows();
    foreach ($currencies as $currency) {
        $conditions = array();
        $conditions['product_id'] = $_GET['product_id'];
        $conditions['currency_id'] = $currency->get_id();
        $product_currency_prices_table->delete_where($conditions);