Bonjour,
j'ai testé ce module, mais celui ci est conçu pour le fichier product_listing.php e(t à en modifier cette section
case 'PRODUCT_LIST_QUANTITY':
$lc_align = 'right';
$lc_text = $listing->fields['products_quantity'];
break;
Par :
case 'PRODUCT_LIST_QUANTITY':
$lc_align = 'right';
if (zen_get_products_stock($listing->fields['products_id'])>19) {
$lc_text = '<a href="
http://www.yourdomain.com/your_folder/legend.html" target="blank"><img src="
http://www.yourdomain.com/your_zen_folder/images/stock_icons/disponible.gif" alt="your description to the product status" /></a>'; // 20 or more
}
elseif (zen_get_products_stock($listing->fields['products_id'])>=10 and ($listing->fields['products_id'])>=19 ) {
$lc_text = '<a href="
http://www.yourdomain.com/your_folder/legend.html" target="blank"><img src="
http://www.yourdomain.com/your_zen_folder/images/stock_icons/rapida.gif" alt="your description to the product status" /></a>'; // 10 to 19
}
elseif (zen_get_products_stock($listing->fields['products_id'])>=0 and ($listing->fields['products_id'])>=9 ) {
$lc_text = '<a href="
http://www.yourdomain.com/your_folder/legend.html" target="blank"><img src="
http://www.yourdomain.com/your_zen_folder/images/stock_icons/recibir.gif" alt="your description to the product status" /></a>'; // 0 to 9
}
elseif (zen_get_products_stock($listing->fields['products_id'])>=-10 and ($listing->fields['products_id'])>=-1 ) {
$lc_text = '<a href="
http://www.yourdomain.com/your_folder/legend.html" target="blank"><img src="
http://www.yourdomain.com/your_zen_folder/images/stock_icons/pedir.gif" alt="your description to the product status " /></a>'; // -10 to -1
}
elseif (zen_get_products_stock($listing->fields['products_id'])>=-20 and ($listing->fields['products_id'])>=-11 ) {
$lc_text = '<a href="
http://www.yourdomain.com/your_folder/legend.html" target="blank"><img src="
http://www.yourdomain.com/your_zen_folder/images/stock_icons/variable.gif" alt="your description to the product status" /></a>'; // -20 to -11
}
elseif (zen_get_products_stock($listing->fields['products_id'])>=-30 and ($listing->fields['products_id'])>=-21 ) {
$lc_text = '<a href="
http://www.yourdomain.com/your_folder/legend.html" target="blank"><img src="
http://www.yourdomain.com/your_zen_folder/images/stock_icons/fabricacion.gif" alt="your description to the product status" /></a>'; // -30 to -21
}
elseif (zen_get_products_stock($listing->fields['products_id'])>=-40 and ($listing->fields['products_id'])>=-31 ) {
$lc_text = '<a href="
http://www.yourdomain.com/your_folder/legend.html" target="blank"><img src="
http://www.yourdomain.com/your_zen_folder/images/stock_icons/desconocido.gif" alt="your description to the product status" /></a>'; // -40 to -31
}
else {
$lc_text = '<a href="
http://www.yourdomain.com/your_folder/legend.html" target="blank"><img src="
http://www.yourdomain.com/your_zen_folder/images/stock_icons/expo.gif" alt="your description to the product status" /></a>'; // -41 or less
}
break;
hors mon but est de l'inclure dans products_all et la page de description des produits product_info...mais je ne sais pas exactement ou faire cette modification et inclure cette portion de code dans ces deux fichiers