osCommerce France : Accueil Forum Portail osCommerce France Réponses aux questions Foire aux contributions

Bienvenue invité ( Connexion | Inscription )

 
Reply to this topicStart new topic
> [résolu]contribution "Add Products to DynaMenu"
iskis
posté 14 Mar 2008, 23:09
Message #1


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 65
Inscrit : 27-January 08
Lieu : guilherand granges
Membre no 20570



bonjour,

je viens d'installer cette contribution, et j'ai ce message d'erreur lorsque l'on clique sur commander.


Warning: Cannot modify header information - headers already sent by (output started at /home.10.18/poelemoi/www/includes/classes/ProductsInCategory.php:45) in /home.10.18/poelemoi/www/includes/functions/general.php on line 33


si une personne à une idée ?

voici les codes de general.php:


// Redirect to another page or site
function tep_redirect($url) {
if ( (strstr($url, "\n") != false) || (strstr($url, "\r") != false) ) {
tep_redirect(tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
}

if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page
if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url
$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL
}
}

header('Location: ' . $url); ligne 33

tep_exit();
}

////


voici le code de ProductsInCategory.php


<?php
/* $Id: ProductsInCategory.php v1.0 2007/02/16
an object to store the products within each category once queried by the box dm_categories.php
to avoid it being queried multiple times

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright © 2007 osCommerce

Released under the GNU General Public License
*/

class ProductsInCategory {
var $pic_data = array();

function ProductsInCategory() {
global $languages_id;

$products_query = tep_db_query("select p2c.categories_id, p.products_id, p.products_status, pd.products_name as product, pd.products_id as product_id from " . TABLE_PRODUCTS . " p LEFT JOIN " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c USING(products_id) LEFT JOIN " . TABLE_PRODUCTS_DESCRIPTION . " pd USING(products_id) where pd.language_id = '" . (int)$languages_id . "' AND p.products_status='1' order by p2c.categories_id, pd.products_name");

while ($product_info = tep_db_fetch_array($products_query)) {
$this->addProductsInCategory($product_info['categories_id'], $product_info);
} // end while ($product_info = tep_db_fetch_array($products_query))
} // end function ProductsInCategory

function addProductsInCategory ($categories_id, $product_info) {
$this->pic_data[$categories_id][] = array('products_id' => $product_info['products_id'],
'products_name' => $product_info['product'],
// we already know the category but might be handy to have it here too
'products_category' => $categories_id);
} // end function addProductsInCategory ($categories_id, $product_info)

function getProductsInCategory($categories_id) {
if (isset($this->pic_data[$categories_id])){
foreach ($this->pic_data[$categories_id] as $key => $_product_data) {
$product_data[] = $_product_data;
} // end foreach
return $product_data;
}else{
return false;
}
} // end function getProductsInCategory($categories_id)
} // end Class ProductsInCategory
?>



merci d'avance, j'avoue que la je bloque !!

@++

iskis

Ce message a été modifié par iskis - 15 Mar 2008, 08:06.


--------------------
MS2.2fr (hébergeur OVH)

contributions:
/--fckeditor-oscommerce_v2.2.1--/--center shop--/--whosonlineturbov1.1_1--/--colissimo_1_2_3--/--Acceptation des CGV par Decad7 --/--css_menu_0_3--/--whats_new_scroll_25items_1--/--Additional Images v2.0.1 grâce à leirisset--/--HeaderTags_V_2.6.3--/--DynamicSitemap32--/--Ultimate_SEO_URLSv21d--/--SID_KILLER_2.0--/
Go to the top of the page
 
iskis
posté 15 Mar 2008, 08:05
Message #2


Ceinture jaune OSC
Icône de groupe

Groupe : Membres
Messages : 65
Inscrit : 27-January 08
Lieu : guilherand granges
Membre no 20570



salut,

je vais changer, je vais mettre dhtml_menu.


merci

@+

iskis


--------------------
MS2.2fr (hébergeur OVH)

contributions:
/--fckeditor-oscommerce_v2.2.1--/--center shop--/--whosonlineturbov1.1_1--/--colissimo_1_2_3--/--Acceptation des CGV par Decad7 --/--css_menu_0_3--/--whats_new_scroll_25items_1--/--Additional Images v2.0.1 grâce à leirisset--/--HeaderTags_V_2.6.3--/--DynamicSitemap32--/--Ultimate_SEO_URLSv21d--/--SID_KILLER_2.0--/
Go to the top of the page
 

Reply to this topicStart new topic
1 utilisateur(s) sur ce sujet (1 invité(s) et 0 utilisateur(s) anonyme(s))
0 membre(s) :

 



RSS Version bas débit Nous sommes le : 20th June 2013 - 10:23
Ce site est déclaré auprès de la commision Nationale
de l'Informatique et des Libertés (déclaration n°: 1043896)