Good work! I did install your modification and it is working. The only thing I have to adjust is the first column holding the description of the products. Its default width is too narrow for my descriptions and I just have to figure out where to adjust the column width. Everything else is just fine. Thanks!
Joerg
2 files to modify:-
ps_product.attribute.php - for the child items
starting at line 270
// Create array for this child
$count_attrib = $this->count_advanced_attribute($product_id);
$html .= "<input type=\"hidden\" name=\"prod_id[]\" value=\"".$db->f("product_id") ."\"><td align=left width='
30%'>";
if (@$child_id) {
$html .= "<input type=\"hidden\" name=\"product_id\" value=\"".$db->f("product_id")."\">";
}
else {
$html .= "<input type=\"hidden\" name=\"product_id\" value=\"".$parent_id."\">";
}
I've highlighted the relevant figure
and for items without children
shop.product_details.php
starting at line 368
$addtocart .= "<form action=\"". $mm_action_url."index.php\" method=\"post\" name=\"addtocart\" id=\"addtocart\">";
$addtocart .= "<input type=\"hidden\" name=\"prod_id[]\" value=\"$product_id\" />\n
<input type=\"hidden\" name=\"product_id\" value=\"$product_id\" />\n
<input type=\"hidden\" name=\"parent_id\" value=\"$product_id\" />\n
<table width=\"100%\" style=\"vertical-align: middle;\" class=\"child_list\">
<tr style=\"vertical-align: middle;\" >";
$addtocart .="<td align='left'>".$db_product->f("product_name")."</td>";
change this last line to
$addtocart .="<td align='left' width='
xx'>".$db_product->f("product_name")."</td>";
where xx is the width you require.
I hope this helps
Mark