Products status in order_details.tpl

michal.siman

No avatar

2007-04-04 23:06

I need show status (hidden/visible) for every product in order.

inside order_details.tpl is:

<!-- BEGIN LIST_LIST -->
<tr class="l_$aList[iStyle]">
<td>
<a href="admin.php?p=productsForm&iProduct=$aList[iProduct]">$aList[sProduct] ($aList[iProduct])</a>
</td>
<td class="label">
$aList[fPrice]
</td>
<td class="label">
$aList[iQuantity]
</td>
<td class="label">
$aList[fSummary]
</td>
</tr>
<!-- END LIST_LIST -->

can i have product with HIDDEN status shown with GRAY color like PRODUCT LIST?

» Quick.Cart v2.x

treewood (OpenSolution)

Avatar: treewood

2007-04-05 08:13

michal.siman - it will be problem because in listBasket() function there is no getting data from products. Maybe use $aProducts = $oFF->throwArraySmall( DB_PRODUCTS, 0, 5 ); before for in listBasket() function and in for check array like if( isset( $aProducts[$aList['iProduct']] ) ){}.
And if $aProducts[$aList['iProduct']] == 0 then change color to gray and if 1 then stay like it is.

Back to top
about us | contact