So back when I had 1.3.9 I had a bit of code in includes/templates/mytemplate/templates/tpl_product_info_display.php
that looked like this:
Code:
<?php
if($_SESSION['customer_id'] == 2) {
?>
<li><a href="/admin/product.php?cPath=<?= $_GET['cPath']; ?>&product_type=1&pID=<?= $_GET['products_id']; ?>&action=new_product&search=<?= $_GET['products_id']; ?>" target="_top" accesskey="i">Edit Product##########____(Alt+i)</a></li>
<li><a href="/admin/categories.php?&search=<?= $_GET['products_id']; ?>" target="_blank" accesskey="a">Search Admin##########__(Alt+a)</a></li>
<li><a href="/admin/categories.php?action=setflag&pID=<?= $_GET['products_id']; ?>&cPath=<?= $_GET['cPath']; ?>&page=1" target="_blank" accesskey="o">Take Out of Stock##########(Alt+o)</a></li>
<?php
}
?>
which basically gave my customer_id "2" account a few nice admin links that I could use to help w/ inventory from the front end... but now my "Take Out of Stock" link doesn't work, I'm thinking because the added security of the 1.5.x admin...
any suggestions on getting this working? and/or modules that already do this? It's pretty handy.
Bookmarks