I would like to see attributes as well, below is in the readme:
If you want to show more information in the rollover javascript you have to change these 2 lines in the function:
$result_articles = $db->Execute("select products_name, products_quantity from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . $order_id . "'");
while(!$result_articles->EOF){
$article .= ($result_articles->fields["products_quantity"]) . "x " . ($result_articles->fields["products_name"]) . "<br />";
Here is the all of the code from the functions file:
function info_at_a_glance($order_id) {
global $db;
$article = "";
$num = 1;
$result_articles = $db->Execute("select products_name, products_quantity from " . TABLE_ORDERS_PRODUCTS . " where orders_id = '" . $order_id . "'");
while(!$result_articles->EOF){
$article .= ($result_articles->fields["products_quantity"]) . "x " . ($result_articles->fields["products_name"]) . "<br />";
$num++;
$result_articles->MoveNext();
}
$parsedComment = explode("\r", $article);
$cleanComment = "";
$i=0;
while($i < count($parsedComment)) {
$cleanComment .= trim($parsedComment[$i]);
$i++;
if ($i < count($parsedComment)) $cleanComment .= '<br /> ';
}
?>
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:void(0);" onmouseover="return overlib(\\\'' . addslashes(addslashes($cleanComment)) . '\\\');" onmouseout="return nd();"><img src="images/icons/comment2.gif" align="top" border=0><\/a>'; ?>');
--></script>
<?php
return;
}
?>
Does anyone know how to include attributes as well in the above code?
marcopolo
Zen Cart 2.2.2 | PHP 8.5.12 | MariaDB 10.11.14