Решено.
дополнительной колонки в таблице не делал, аттрибут товара выводится под именем товара.
(Работает для advanced attributes)
На универсальность не претендую. На заданном сайте работает.
//чтобы в waiting list отображались атрибуты - Размер
внести изменения в 3 файла.
1.
mysite.ru/components/com_virtuemart/themes/ja-zeolite/templates/pages/shop.waiting_list.tpl.php
искать строки и заменить на:
mm_showMyFileName( __FILE__ );
global $VM_LANG;
$attr=$_SESSION['att']; //Evg added
?>
<input type="hidden" name="product_id" value="<?php echo $product_id; ?>" />
<input type="hidden" name="product_attribute" value="<?php echo $attr;?>" /> <!--Evg added -->
<input type="hidden" name="page" value="shop.waiting_thanks" />
2.
mysite.ru/administrator/components/com_virtuemart/html/product.waiting_list.php
в двух местах:
а)
// evg added product_attribute below
$q = "SELECT waiting_list_id, notify_email, product_name, product_desc, product_publish, product_sku, product_attribute, product_thumb_image, notify_date FROM jos_vm_waiting_list JOIN jos_vm_product ON jos_vm_waiting_list.product_id = jos_vm_product.product_id WHERE notified = '0' ORDER BY notify_date DESC";
$results = mysql_query($q);
б)
<td>".$row[notify_email]."</td>
<td>".$row[product_sku]."</td>
<td>".$row[product_name]."<br /><span style='color: blue;'>".$row[product_attribute]."</span></td><!--Evg added size here after product_name-->
<!-- uncomment the following line to show the product description -->
<!-- <td>".$row[product_desc]."</td> -->
<td>".$row[notify_date]."</td>
3.
mysite.ru/administrator/components/com_virtuemart/classes/ps_cart.php
в двух местах:
а)
// Perform notification of out of stock items
if (@$request_stock) {
Global $notify;
$_SESSION['notify'] = array();
$_SESSION['notify']['idx'] = 0;
$k=0;
$notify = $_SESSION['notify'];
//Evg wrote 7 strings
$ee= array_values ($e);
$rr= $ee[14]; //size value
$ek= array_keys ($e); //size string
$ra= $ek[14];
$rb= substr($ra,0,12);
if($rr) {$rg=$rb." ".$rr;}
$_SESSION['att'] = $rg;
//Evg
foreach($request_stock as $request) {
б)
if( vmIsXHR() ) {
$GLOBALS['vm_mainframe']->scriptRedirect( $sess->url( 'index.php?page=shop.waiting_list&product_id='.$product_id, true, false ) );
} else {
vmRedirect( $sess->url( 'index.php?page=shop.waiting_list&product_id='.$product_id.'&$product_attribute='.$rr, true, false ) ); //Evg added $product_attribute as request
}