probleme magiczoom affichage listing product

  • Posts: 108
  • Thank you received: 1
10 years 3 weeks ago #153721

-Bonjour,

Je suis en local avec joomla 3.2.3 et Easyphp. J'ai l'erreur suivante lorsque j'affiche le listing des produits d'une catégorie:

Notice: Undefined offset: 0 in D:\EasyPHP-DevServer-14.1VC11\data\localweb\bibop\modules\mod_hikashop_magiczoom\mod_hikashop_magiczoom.php on line 94

Notice: Trying to get property of non-object in D:\EasyPHP-DevServer-14.1VC11\data\localweb\bibop\modules\mod_hikashop_magiczoom\mod_hikashop_magiczoom.php on line 94

Notice: Undefined offset: 0 in D:\EasyPHP-DevServer-14.1VC11\data\localweb\bibop\modules\mod_hikashop_magiczoom\mod_hikashop_magiczoom.php on line 102

Notice: Trying to get property of non-object in D:\EasyPHP-DevServer-14.1VC11\data\localweb\bibop\modules\mod_hikashop_magiczoom\mod_hikashop_magiczoom.php on line 102




cela correspond au code suivant:


if(empty($imagesData)) continue;
$title = empty($productsData[$productID]->product_name) ? $productsData[$mainProductID]->product_name : $productsData[$productID]->product_name;
$mainHtml = $tool->getMainTemplate(array(
'id' => "Product{$productID}",
'group' => "Product{$productID}",
'img' => magiczoomGetImage($imagesData[0]->file_path, 'original', $productID),
'thumb' => magiczoomGetImage($imagesData[0]->file_path, 'thumb', $productID),
'title' => $title,
'alt' => empty($imagesData[0]->file_name) ? $title : $imagesData[0]->file_name,
'description' => empty($productsData[$productID]->product_description) ? $productsData[$mainProductID]->product_description : $productsData[$productID]->product_description,
));

Connaissez vous une solution à ce problème ?

Merci pour vos réponses

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 1
10 years 3 weeks ago #153757

Bonjour,

Je retrouve également une erreur php qui me renvoie à la modif du fichier listing_price qui m'avait permis d'avoir une vente au metre pour une catégorie. Cela fonctionnait très bien jusqu'à aujourd'hui.

Notice: Undefined property: stdClass::$product_id in D:\wamp\www\retour_bali2\templates\bibop_template\html\com_hikashop\product\listing_price.php on line 160

Voici la partie du fichier mentionnée:

$productClass = hikashop_get('class.product');
line 160 : $categories = $productClass->getCategories($this->row->product_id);
if(!empty($price->price_product_id) && in_array('50',$categories)){
echo '<span class="hikashop_product_price_per_meter">'.JText::_('PER_METER').'</span>';
}
else{
if(isset($price->price_min_quantity) && empty($this->cart_product_price) && $this->params->get('per_unit',1)){
if($price->price_min_quantity>1){
echo '<span class="hikashop_product_price_per_unit_x">'.JText::sprintf('PER_UNIT_AT_LEAST_X_BOUGHT',$price->price_min_quantity).'</span>';
}else{
echo '<span class="hikashop_product_price_per_unit">'.JText::_('PER_UNIT').'</span>';
}
}
}

J'avoue que tout ça me dépasse un peu. Merci pour votre aide

Please Log in or Create an account to join the conversation.

  • Posts: 81715
  • Thank you received: 13104
  • MODERATOR
10 years 3 weeks ago #153769

Bonjour,

Allez dans la page de configuration de joomla et désactivez l'option "error reporting" et cela enlèvera les messages d'erreur.

Please Log in or Create an account to join the conversation.

  • Posts: 108
  • Thank you received: 1
10 years 3 weeks ago #154182

Merci

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum