
Originally Posted by
bencart
I am having the same problem as above again
The cart owner is adding products and the table
products_with_attributes_stock is showing that the
stock_attributes column is being loaded with
measurementID,
quantityID where as the demo ones I put in where only being loaded with
measurementID. None of the stock_by_attributes files have been modified from the original files, so I would have thought it should be working?
I have now fixed this so that Product Attribute Grid and Stock by Attributes work when the attribute grid is setup to use single attributes.
The file admin/products_with_attributes_stock.php needs this modification:
Original Code:
PHP Code:
foreach($product_attributes as $option_name => $options)
{
echo '<p><strong>'.$option_name.': </strong>';
echo zen_draw_pull_down_menu('attributes[]',$options).'</p>'."\n";
}
Fixed Code:
PHP Code:
foreach($product_attributes as $option_name => $options)
{
// if the option isn't the attribute grids dummy quantity attribute
if($option_name != 'Quantity')
{
echo '<p><strong>'.$option_name.': </strong>';
echo zen_draw_pull_down_menu('attributes[]',$options).'</p>'."\n";
}
}
Bookmarks