Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

bug fix for QTpro


Guest

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>";

with

  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

Excellent!

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:

Find

     $titles = array();

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

putting it below:

      $d1=array();

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

Link to comment
Share on other sites

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