Здраствуйте. Вот такая вот проблемка. Вроде как есть родительский товар, есть три подтовара, но у них разные цены от количества, идущие как оптовые. Как можно организовать такое, кроме как делать выпадающий список разных позиций и там уже на каждом товаре светились разные цены. делемка вот чтобы на второй картинке реализовать что то похожее как на первой?
С радостью спешу помочь, потому-что сам ломал голову достаточно давно! http://forum.virtuemart.net/index.php?action=dlattach;topic=39666.0;attach=7552 Вот тема где всё расписано. Вот подсказка от друзей-соседей: 1. Устанавливаем хак, заменяя оригинальные файлы VirtueMart (скачать хак для Joomla 1.5) 2. В карточке товара, в закладке "Статус товара" есть поле "Дополнительный список свойств:" - в него добавляете синтаксис (список ниже) 3. Все в корзине появляется список дополнительных свойств... Некоторые известные проблемы и их решения: 1. товар не добавляется в корзину - снимите галочку в настройках шаблона "Use AJAX to add, update or delete products from the cart?" (поставить "нет"). После этого файл addtocart_form_no_ajax.tpl.php переименовываем на addtocart_form.tpl.php и заменяем... Должно работать. синтаксис свойств товара: Оригинал читайте здесь: второе и третье сообщения на форуме Name(attribute type)(tip text|tip location)(attribute data); add "-r" to attribute type to make it required. if no tip needed you must still add: Name(text)(|)(data); Attribute Types: price, text, textarea, line, date, file, checkbox, radio, select, multiple, number Tip Locations: title-hover, title-below, field-above, field-below Attribute Data: Price: Name(price)(tip here|location)(default price|price type); examples: Donation(price)(please enter donation|title-below)(10.00|+); Reduce By(price)(How much to subtract|field-below)(|-); Text & Textarea: Name(text)(tip here|location)(default text|price|charge type); charge types: char,char_nospace,word,all Note: add "-d" to end of charge type to show cost break down in cart examples: name(text)(1.00 per character|field-below)(|1.00|char); message(textarea)(5.00 per word|title-hover)(message here|5.00|word); Test(text)(1.50 per character|title-hover)(|1.50|char_nospace-d); Number: Name(number)(tip here|location)(default number|price); example: Number of chocolates(number)(enter # of chocolates|title-hover)(10|0.25); Date: Name(date)(tip here|location)(|); Checkbox & Radio & Select & Multiple: Name(checkbox)(tip here|location)(option1|image1,option2*|image2,option3 [+5.00]|image3); * = selected images work for checkboxes, radio buttons, and select boxes. examples: Donate(checkbox)(tip here|title-hover)(Widows [+5.00],Orphans [+10.00]); Colors(radio)(tip here|title-hover)(Blue [+5.00]|images/img_blue.jpg,Red [+10.00]|images/img_red.jpg); File: Name(file)(tip here|title-below)(directory|file types|charge|max file size|min file size); Max file size & Min file size measures in bytes. examples: File Upload(file)(upload file of type .jpg or .doc|title-below)(images/|.jpg,.doc); Art Work(file)(upload artwork, $20.00 charge|title-below)(images/|.jpg,.doc|20.00); Picture(file)(upload picture, $20.00 charge, max file of .5MB|title-below)(images/|.jpg|20.00|500000|300); Line: Name(line)(tip-here|field-below)(custom line code); examples: Further Options(line)(here are more options|field-below)(); (line)(|)(<b>--------------------------------</b>); Мне например удобнее использовать вот такой вот код : Date(date)(tip here|field-above)(|); Color Options(checkbox)(another tip|title-hover)(test1 [+10.00]|images/img_1.jpg,test2 [-20.00]|images/img_2.jpg,test3 [-10.00]|images/img_3.jpg,test4 [+30.00]*|images/img_4.jpg,test5 [-5.00]|images/img_5.jpg); Divide(line)(tip-here|field-below)(<b>---------------------------</b>); Engrave(text)(3.00 per character|field-below)(name here|3.00|char); Donation(price-r)(help us out|field-below)(25.00|+); File Upload(file)(20.00 for file upload|field-below)(images/|.jpg,.doc|20.00);