Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

bug fix for QTpro


Recommended Posts

In admin/categories.php replace the line

  if ($has_attr) echo "<a href="".tep_href_link("stock.php", "product_id=".$pInfo->products_id, 'NONSSL')."">".tep_image_button('button_stock.gif', "Stock")."</a>";


  if ($has_attr) echo "<input type="hidden" name="products_quantity" value="".$pInfo->products_quantity.""><a href="".tep_href_link("stock.php", "product_id=".$pInfo->products_id, 'NONSSL')."">".tep_image_button('button_stock.gif', "Stock")."</a>";

This solves the problem of updating product details overwriting the stock levels.

Link to comment
Share on other sites


Another bug fix - for product_info with the radio buttons that comes with the contribution. This simple fix allows you to display the attributes headings correctly for multiple attributes:


     $titles = array();

Move it up a few lines so that it gets taken out of the 'while' loop.

putting it below:


The problem was that the array was getting re-initialised for each attribute.

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Create New...