<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://ngcms.ru/forum/extern.php?action=feed&amp;tid=2746&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Next Generation CMS :: Форум поддержкиНаглядный пример по запуску магазина на NG]]></title>
		<link>https://ngcms.ru/forum/viewtopic.php?id=2746</link>
		<description><![CDATA[Самые свежие сообщения в Наглядный пример по запуску магазина на NG.]]></description>
		<lastBuildDate>Wed, 05 Aug 2015 12:57:02 +0000</lastBuildDate>
		<generator>FluxBB 1.5.11</generator>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=40469#p40469</link>
			<description><![CDATA[<p><strong>infinity237</strong>, Огромное спасибо.<br />просто предложу ..<br />Может нужна ссылка на FAQ (поста) или возможно вложить faq.txd в сам плагин. <br />Дабы не отвечать 100500 раз на вопросы таких &quot;как я&quot; с раздела &quot;как сделать&quot; !? <img src="https://ngcms.ru/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (ahatomik)]]></author>
			<pubDate>Wed, 05 Aug 2015 12:57:02 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=40469#p40469</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=40467#p40467</link>
			<description><![CDATA[<p>Супер</p>]]></description>
			<author><![CDATA[dummy@example.com (irbees2008)]]></author>
			<pubDate>Wed, 05 Aug 2015 05:27:07 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=40467#p40467</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=40466#p40466</link>
			<description><![CDATA[<p><span class="bbu"><strong>1/</strong></span><br />Предположим у нас есть каталог продукции, с различными параметрами не влияющими на стоимость (например размер или цвет).<br /><strong>Задача:</strong> сделать вывод этого параметра в корзину и в письмо feedback&#039;a. Решение задачи, когда параметр влияет на стоимость представлено <a href="/forum/go.php?link=http://ngcms.ru/forum/viewtopic.php?pid=40338#p40338" rel="nofollow">в другой теме</a>. </p><p>1) Создаем в xfields дополнительное текстовое поле: Новости → табличные данные. Например, size (Размер модели).<br /><span class="postimg"><img src="http://i.snag.gy/rl5J9.jpg" alt="rl5J9.jpg" /></span><br />2) Заполняем таблицу из одного столбца для каждого продукта. Если продукт не имеет такого показателя, оставляем незаполненным.<br />3) Редактируем basket/lib/librpc.php, для того чтобы плагин мог работать с таблицами без &quot;ценового столбца&quot;.<br />Найти <a href="/forum/go.php?link=https://github.com/vponomarev/ngcms-plugins/blob/master/basket/lib/librpc.php#L130-L139" rel="nofollow">https://github.com/vponomarev/ngcms-plu … #L130-L139</a><br />Заменить на:</p><div class="codebox"><pre><code>$xc = xf_configLoad();
$xfData = xf_decode($nrec[&#039;xfields&#039;]);
$xfTData = unserialize($rec[&#039;xfields&#039;]);
// Get price
if (pluginGetVariable(&#039;basket&#039;, &#039;ntable_price&#039;) &amp;&amp; isset($xfTData[pluginGetVariable(&#039;basket&#039;, &#039;ntable_price&#039;)])) {
	$price = $xfTData[pluginGetVariable(&#039;basket&#039;, &#039;ntable_price&#039;)];
} elseif (pluginGetVariable(&#039;basket&#039;, &#039;news_price&#039;) &amp;&amp; isset($xfData[pluginGetVariable(&#039;basket&#039;, &#039;news_price&#039;)])) {
	$price = $xfData[pluginGetVariable(&#039;basket&#039;, &#039;news_price&#039;)];
} else {
	$price = 0;
}</code></pre></div><p>4) Выводим в news.full.tpl элементы - radio переключатели выбора параметра: </p><div class="codebox"><pre><code>{% if p.xfields._table.countRec &gt; 0 %}
	{% for xdata in p.xfields._table.data %}
		&lt;input id=&quot;{{ xdata.id }}&quot; type=&quot;radio&quot; name=&quot;size&quot; value=&quot;{{ xdata.field_size }}&quot;&gt;
		&lt;label for=&quot;{{ xdata.id }}&quot;&gt;{{ xdata.field_size }}&lt;/label&gt;
	{% endfor %}
&lt;hh&gt;
{% endif %}</code></pre></div><p>5) Выводим кнопку/ссылку &quot;Добавить в корзину&quot; (в news.full.tpl):</p><div class="codebox"><pre><code>&lt;a href=&quot;#&quot; class=&quot;purchase&quot;&gt;Добавить В корзину&lt;/a&gt;</code></pre></div><p>6) Пишем обработчик на JS + TWIG (в news.full.tpl):<br />Работает по принципу: если таблица размеров в новости заполнена, то заставить пользователя выбрать размер и добавить продукт в корзину. Если таблица не заполнена, то добавить продукт в корзину. TWIG конструкции можно переписать на JS/JQ, если в этом есть необходимость.</p><div class="codebox"><pre><code>&lt;script&gt;
$(document).ready(function() {

	$(&quot;.purchase&quot;).click(function(e){
		{% if p.xfields._table.countRec &gt; 0 %}
		var count = 1;
		var tblid = 0;
		tblid = $(&quot;input[type=&#039;radio&#039;]:checked&quot;).attr(&#039;id&#039;);
		if(typeof tblid == &quot;undefined&quot;){
			alert(&#039;&lt;red&gt;Вы не выбрали размер!&lt;/red&gt;&#039;);
			return false;
		}
		rpcBasketRequest(&#039;plugin.basket.manage&#039;, {&#039;action&#039;: &#039;add&#039;, &#039;ds&#039;:51,&#039;id&#039;:tblid,&#039;count&#039;:count});
		return false;
		{% else %}
		rpcBasketRequest(&#039;plugin.basket.manage&#039;, {&#039;action&#039;: &#039;add&#039;, &#039;ds&#039;:1,&#039;id&#039;:{news-id},&#039;count&#039;:1});
		{% endif %}	
		
		e.preventDefault();
	});

});
&lt;/script&gt;</code></pre></div><p>7) Вывести переменную в таблицу&#160; в шаблонах /plugins/basket/list.tpl и /plugins/basket/lfeedback.tpl</p><div class="codebox"><pre><code>{{ entry.xfields.tdata.size }}</code></pre></div><p><span class="bbu"><strong>2/</strong></span><br />Предположим у нас есть каталог продукции, с различными параметрами среди которых есть изображения.<br /><strong>Задача:</strong> сделать вывод изображения продукта в корзине, сделать возможным использовать ссылку на новость в письмах-заказах feedback&#039;a.</p><p>0) Важно не забывать, что в шаблонах&#160; /plugins/basket/list.tpl и /plugins/basket/lfeedback.tpl, как и в любых других TWIG шаблонах работают функции debagValue() и debugContext(), которые позволяют вывеси все возможные для использования переменные. Например:</p><div class="codebox"><pre><code>{{ debugValue(entries) }}</code></pre></div><p>Однако, к некоторым данным из новости нет доступа из шаблонов /plugins/basket/list.tpl и /plugins/basket/lfeedback.tpl (например ссылка на новость или изображения новости).<br />1) Редактируем basket/basket.php, для того чтобы плагин мог доставать нужные данные из таблиц news и images.<br />Требуется найти функциях plugin_basket_list(), onShow($formID, $formStruct, $formData, &amp;$tvars), onProcess($formID, $formStruct, $formData, $flagHTML, &amp;$tvars):</p><div class="codebox"><pre><code>$total += round($rec[&#039;price&#039;] * $rec[&#039;count&#039;], 2);</code></pre></div><p>Ниже добавить:</p><div class="codebox"><pre class="vscroll"><code>$linked_ds = $rec[&#039;linked_ds&#039;];
$linked_id = $rec[&#039;linked_id&#039;];
// Check if linked item is available            

switch ($linked_ds) {
	case $DSlist[&#039;news&#039;]:
		// Retrieve news record
		$recf = $mysql-&gt;record(&quot;select * from &quot;.prefix.&quot;_news where id = &quot;.db_squote($linked_id));
		if (!is_array($recf)) {
			return array(&#039;status&#039; =&gt; 0, &#039;errorCode&#039; =&gt; 3, &#039;errorText&#039; =&gt; &#039;Item [news] with ID (&#039;.$linked_id.&#039;) is not found&#039;);
		}
		
		$rec_img = array();
		$img_urls = array();                            
		foreach ($mysql-&gt;select(&quot;select * from &quot;.prefix.&quot;_images where (plugin = &#039;xfields&#039;) AND (linked_id = &quot;.db_squote($linked_id).&quot;)&quot;) as $irec) {
			$rec_img []= $irec;
		}
		foreach ($rec_img as $imgInfo) {
			$img_urls[] = ($imgInfo[&#039;storage&#039;]?$config[&#039;attach_url&#039;]:$config[&#039;images_url&#039;]).&#039;/&#039;.$imgInfo[&#039;folder&#039;].&#039;/&#039;.$imgInfo[&#039;name&#039;];
		}          

		$xc = xf_configLoad();
		$xfData = xf_decode($recf[&#039;xfields&#039;]);
		
		$rec[&#039;news&#039;] = $recf;
		$rec[&#039;images&#039;] = $img_urls;
		$rec[&#039;news_url&#039;] = home.newsGenerateLink($recf);

	case $DSlist[&#039;#xfields:tdata&#039;]:
		// Retrieve XFields record
		$recf = $mysql-&gt;record(&quot;select * from &quot;.prefix.&quot;_xfields where id = &quot;.db_squote($linked_id));
		if (!is_array($recf)) {
			return array(&#039;status&#039; =&gt; 0, &#039;errorCode&#039; =&gt; 4, &#039;errorText&#039; =&gt; &#039;Item [tdata] with ID (&#039;.$linked_id.&#039;) is not found&#039;);
		}

		// Retrieve joined record (assume that it can be only news
		if ($recf[&#039;linked_ds&#039;] != $DSlist[&#039;news&#039;]) {
			return array(&#039;status&#039; =&gt; 0, &#039;errorCode&#039; =&gt; 5, &#039;errorText&#039; =&gt; &#039;Sorry, only news related XFields tables are supported now&#039;);
		}

		$nrec = $mysql-&gt;record(&quot;select * from &quot;.prefix.&quot;_news where id = &quot;.db_squote($recf[&#039;linked_id&#039;]));
		if (!is_array($nrec)) {
			return array(&#039;status&#039; =&gt; 0, &#039;errorCode&#039; =&gt; 6, &#039;errorText&#039; =&gt; &#039;Item found, but related [news] is lost&#039;);
		}

                $rec_img = array();
                $img_urls = array();
		foreach ($mysql-&gt;select(&quot;select * from &quot;.prefix.&quot;_images where (plugin = &#039;xfields&#039;) AND (linked_id = &quot;.db_squote($nrec[&#039;id&#039;]).&quot;)&quot;) as $irec) {
			$rec_img []= $irec;
		}
		foreach ($rec_img as $imgInfo) {
			$img_urls[] = ($imgInfo[&#039;storage&#039;]?$config[&#039;attach_url&#039;]:$config[&#039;images_url&#039;]).&#039;/&#039;.$imgInfo[&#039;folder&#039;].&#039;/&#039;.$imgInfo[&#039;name&#039;];
		}                    

		$xc = xf_configLoad();
		$xfData = xf_decode($nrec[&#039;xfields&#039;]);
		$xfTData = unserialize($recf[&#039;xfields&#039;]);
		
		$rec[&#039;news&#039;] = $nrec;
		$rec[&#039;images&#039;] = $img_urls;
		$rec[&#039;news_url&#039;] = home.newsGenerateLink($nrec);
}</code></pre></div><p>+ добавить $DSlist в global.</p><p>Внимание, решение делает в наихудшем случае 2n запросов к БД на действие, где n - число продуктов в корзине, что может повысить нагрузку на БД при больших количествах заказов.</p><p>2) После этого в шаблонах /plugins/basket/list.tpl и /plugins/basket/lfeedback.tpl появится возможность доставать данные из массивов news и images.<br />Например вывод изображения:</p><div class="codebox"><pre><code>{% for entry in entries %}
...
{{ entry.images[0] }}
...
{% endfor %}</code></pre></div><p>Вывод ссылки на новость:</p><div class="codebox"><pre><code>{% for entry in entries %}
...
{{ entry.news_url }}
...
{% endfor %}</code></pre></div><p><strong>Результат:</strong><br /><span class="postimg"><img src="http://i.snag.gy/2vXfR.jpg" alt="2vXfR.jpg" /></span></p>]]></description>
			<author><![CDATA[dummy@example.com (infinity237)]]></author>
			<pubDate>Wed, 05 Aug 2015 00:23:07 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=40466#p40466</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38731#p38731</link>
			<description><![CDATA[<div class="quotebox"><cite>nimiko пишет:</cite><blockquote><div><p><strong>irbees2008</strong>, спасибо, но я говорил о странице товара и списка товаров (news.full и news.table).</p></div></blockquote></div><p><a href="/forum/go.php?link=http://ngcmshak.ru/nastroika-plaginov/basket-esze-odna-modifikaciya-dlya-uvelicheniya-kolichestva-tovara-pri-dobavlenii.html" rel="nofollow">http://ngcmshak.ru/nastroika-plaginov/b … lenii.html</a> <br />вот реализация для страници товара<br />посмотреть как работает <a href="/forum/go.php?link=http://liv.ngcmshak.ru/dekorativnye-elementy/100-ballov-burgundiya-steklo-nabor-2-sht.html" rel="nofollow">http://liv.ngcmshak.ru/dekorativnye-ele … 2-sht.html</a></p>]]></description>
			<author><![CDATA[dummy@example.com (irbees2008)]]></author>
			<pubDate>Thu, 02 Oct 2014 17:53:52 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38731#p38731</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38690#p38690</link>
			<description><![CDATA[<div class="quotebox"><cite>nimiko пишет:</cite><blockquote><div><p><strong>irbees2008</strong>, спасибо, но я говорил о странице товара и списка товаров (news.full и news.table). А в плагине корзины я плюсы-минусы реализовал лёгким jQuery плагином.<br />Баг с отправкой исправлен? Исправления уже включены в ночные сборки?</p></div></blockquote></div><p>На странице с товаром надо сделать через форму <br />да изменения в свн есть</p>]]></description>
			<author><![CDATA[dummy@example.com (irbees2008)]]></author>
			<pubDate>Sun, 28 Sep 2014 08:54:50 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38690#p38690</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38689#p38689</link>
			<description><![CDATA[<p><strong>irbees2008</strong>, спасибо, но я говорил о странице товара и списка товаров (news.full и news.table). А в плагине корзины я плюсы-минусы реализовал лёгким jQuery плагином.<br />Баг с отправкой исправлен? Исправления уже включены в ночные сборки?</p>]]></description>
			<author><![CDATA[dummy@example.com (nimiko)]]></author>
			<pubDate>Sun, 28 Sep 2014 08:29:25 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38689#p38689</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38688#p38688</link>
			<description><![CDATA[<div class="quotebox"><cite>nimiko пишет:</cite><blockquote><div><p>На странице корзины (шаблон list.tpl) маленьким плагином jquery добавил возможность регулировать кол-во при помощи + и - <br />Но на странице товаров (новостей) нет инпут=текст с кол-вом. Там только:</p><div class="codebox"><pre><code> [basket]&lt;a href=&quot;#&quot; onclick=&quot;rpcBasketRequest(&#039;plugin.basket.manage&#039;, {&#039;action&#039;: &#039;add&#039;, &#039;ds&#039;:1,&#039;id&#039;:{news-id},&#039;count&#039;:1}); return false;&quot;&gt;В корзину&lt;/a&gt;[/basket]</code></pre></div><p>В этом самом &#039;count&#039;:1 - эту единичку возможно завернуть в виде какой-нить переменной для js? Чтобы добавленный мною инпут=текст синхронизировался с этим count.<br />Меня интересует как сделать переменную. Синхронизировать с input я смогу.</p></div></blockquote></div><p>Вот реализация - + это файл list.tpl,ну стили и стили под себя,проверенно работает.<br /><span class="postimg"><img src="http://фото-хост.рф/img/2014-09/28/f3seatdy4c3m3lsx2gn8sg5ty.gif" alt="f3seatdy4c3m3lsx2gn8sg5ty.gif" /></span></p><div class="codebox"><pre class="vscroll"><code>&lt;div id=&quot;cont-4&quot; role=&quot;main&quot;&gt;
      &lt;h1&gt;Ваша &lt;br&gt;корзина &lt;/h1&gt;
	  {% if (recs &gt; 0) %}
	&lt;p class=&quot;nocommand&quot;&gt;Ваши товары&lt;/p&gt;
		&lt;aside id=&quot;shippinginfos&quot;&gt;
	&lt;style type=&quot;text/css&quot;&gt;
		span {cursor:pointer; }
		.number{
			margin:100px 30%;
		}
		.minus, .plus{
			width:12px;
			height:12px;
			background:#f2f2f2;
			padding:3px 5px 3px 5px;
			border:1px solid #ddd;
		}
		
	&lt;/style&gt;
			&lt;form method=&quot;post&quot; action=&quot;/plugin/basket/update/&quot;/&gt;
				&lt;table class=&quot;table&quot;  style=&quot;width: 100%;&quot;&gt;
					&lt;tr style=&quot;border-bottom: 1px solid #E5E5E5;color: #787878;width: 100%;&quot;&gt;
						&lt;th style=&quot;
    padding: 10px 0;&quot;&gt;#&lt;/th&gt;
						&lt;th style=&quot;
    padding: 10px 0;&quot;&gt;Наименование&lt;/th&gt;
						&lt;th style=&quot;
    padding: 10px 0;&quot;&gt;Цена&lt;/th&gt;
						&lt;th style=&quot;
    padding: 10px 0;&quot;&gt;Кол-во&lt;/th&gt;
						&lt;th align=&quot;right&quot; style=&quot;
    padding: 10px 0;&quot;&gt;Стоимость&lt;/th&gt;
					&lt;/tr&gt;
					{% for entry in entries %}
					&lt;tr  style=&quot;border-bottom: 1px solid #E5E5E5;color: #787878;width: 100%;&quot;&gt;
						&lt;td class=&quot;f11&quot;&gt;{{ loop.index }}|&lt;/td&gt;
						&lt;td&gt;{{ entry.title }}&lt;/td&gt;
						&lt;td align=&quot;center&quot;&gt;&lt;strong&gt;{{ entry.price }}&lt;/strong&gt;&lt;/td&gt;
						&lt;td align=&quot;center&quot;&gt;&lt;span class=&quot;minus&quot;&gt;-&lt;/span&gt;&lt;input name=&quot;count_{{ entry.id }}&quot; type=&quot;text&quot; maxlength=&quot;5&quot; style=&quot;width: 35px;&quot; value=&quot;{{ entry.count }}&quot;/&gt;&lt;span class=&quot;plus&quot;&gt;+&lt;/span&gt;&lt;/td&gt;
						&lt;td align=&quot;right&quot; class=&quot;blue_t&quot;&gt;{{ entry.sum }}&lt;/td&gt;
						&lt;td align=&quot;right&quot;&gt;&lt;input type=&quot;submit&quot; name=&quot;count_{{ entry.id }}&quot;value=&quot;очистить&quot; onclick=&quot;this.form.reset(); &quot;&gt;&lt;/td&gt;
					&lt;/tr&gt;
					{% endfor %}
					&lt;tr class=&quot;muted&quot;  style=&quot;border-bottom: 1px solid #E5E5E5;color: #787878;width: 100%;&quot;&gt;
						&lt;td style=&quot;
    padding: 10px 0;&quot;&gt;Итого:&lt;/td&gt;
						&lt;td style=&quot;
    padding: 10px 0;&quot;&gt;&lt;strong class=&quot;green_t&quot;&gt;{{ total }}&lt;/strong&gt;&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/table&gt;
				&lt;div class=&quot;btn-group&quot;&gt;
					&lt;input type=&quot;submit&quot; class=&quot;btn&quot; value=&quot;Пересчитать&quot;/&gt; &lt;input type=&quot;button&quot; value=&quot;Оформить заказ&quot; class=&quot;btn btn-primary&quot; onclick=&quot;document.location=&#039;{{ form_url }}&#039;;&quot;/&gt;
				&lt;/div&gt;
			&lt;/form&gt;
			&lt;script type=&quot;text/javascript&quot; &gt;
		$(document).ready(function() {
			$(&#039;.minus&#039;).click(function () {
				var $input = $(this).parent().find(&#039;input&#039;);
				var count = parseInt($input.val()) - 1;
				count = count &lt; 1 ? 1 : count;
				$input.val(count);
				$input.change();
				return false;
			});
			$(&#039;.plus&#039;).click(function () {
				var $input = $(this).parent().find(&#039;input&#039;);
				$input.val(parseInt($input.val()) + 1);
				$input.change();
				return false;
			});
		});
	&lt;/script&gt;
			&lt;div class=&quot;clear20&quot;&gt;&lt;/div&gt;
			{% else %}
				&lt;div class=&quot;msge&quot;&gt;Ваша корзина пуста!&lt;/div&gt;



{% endif %}
		&lt;/aside&gt;
		&lt;/div&gt;</code></pre></div><div class="quotebox"><cite>nimiko пишет:</cite><blockquote><div><p>Вопрос по некорректной отправке заказа на почту ещё в силе: <a href="/forum/go.php?link=http://ngcms.ru/forum/viewtopic.php?pid=38412#p38412" rel="nofollow">http://ngcms.ru/forum/viewtopic.php?pid=38412#p38412</a></p></div></blockquote></div><p>Исправлено.Спасибо <strong> infinity237</strong></p>]]></description>
			<author><![CDATA[dummy@example.com (irbees2008)]]></author>
			<pubDate>Sun, 28 Sep 2014 05:11:55 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38688#p38688</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38435#p38435</link>
			<description><![CDATA[<p>На странице корзины (шаблон list.tpl) маленьким плагином jquery добавил возможность регулировать кол-во при помощи + и - <br />Но на странице товаров (новостей) нет инпут=текст с кол-вом. Там только:</p><div class="codebox"><pre><code> [basket]&lt;a href=&quot;#&quot; onclick=&quot;rpcBasketRequest(&#039;plugin.basket.manage&#039;, {&#039;action&#039;: &#039;add&#039;, &#039;ds&#039;:1,&#039;id&#039;:{news-id},&#039;count&#039;:1}); return false;&quot;&gt;В корзину&lt;/a&gt;[/basket]</code></pre></div><p>В этом самом &#039;count&#039;:1 - эту единичку возможно завернуть в виде какой-нить переменной для js? Чтобы добавленный мною инпут=текст синхронизировался с этим count.<br />Меня интересует как сделать переменную. Синхронизировать с input я смогу.</p><p>Вопрос по некорректной отправке заказа на почту ещё в силе: <a href="/forum/go.php?link=http://ngcms.ru/forum/viewtopic.php?pid=38412#p38412" rel="nofollow">http://ngcms.ru/forum/viewtopic.php?pid=38412#p38412</a></p>]]></description>
			<author><![CDATA[dummy@example.com (nimiko)]]></author>
			<pubDate>Sat, 19 Jul 2014 17:55:34 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38435#p38435</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38424#p38424</link>
			<description><![CDATA[<div class="quotebox"><cite>irbees2008 пишет:</cite><blockquote><div><p>кнопка удаления <a href="/forum/go.php?link=http://ngcms.ru/forum/viewtopic.php?pid=36533#p36533" rel="nofollow">http://ngcms.ru/forum/viewtopic.php?pid=36533#p36533</a> демка <a href="/forum/go.php?link=http://oriflame.vv.si/" rel="nofollow">http://oriflame.vv.si/</a></p></div></blockquote></div><p>Благодарю, добавил себе в функционал <img src="https://ngcms.ru/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (nimiko)]]></author>
			<pubDate>Wed, 16 Jul 2014 17:29:26 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38424#p38424</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38423#p38423</link>
			<description><![CDATA[<p>кнопка удаления <a href="/forum/go.php?link=http://ngcms.ru/forum/viewtopic.php?pid=36533#p36533" rel="nofollow">http://ngcms.ru/forum/viewtopic.php?pid=36533#p36533</a> демка<a href="/forum/go.php?link=http://oriflame.vv.si/" rel="nofollow">http://oriflame.vv.si/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (irbees2008)]]></author>
			<pubDate>Wed, 16 Jul 2014 17:19:47 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38423#p38423</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38422#p38422</link>
			<description><![CDATA[<div class="quotebox"><cite>irbees2008 пишет:</cite><blockquote><div><p>Тоже заметил этот косяк,при добавлении формы в баскет ничего кроме инфы по товару на почту не приходит,если не указывать форму в баскет то фидбэк работает нормально.<br />Видимо когда переводили на твиг где то появилась ошибка.</p></div></blockquote></div><p>Скрины несмотрибельны, но там вроде бы есть кнопки &quot;удалить продукт&quot; или товар.. Сам добавлял? script&#039;ом удаляешь?</p><p>Кстати, при пересчёте товаров: если увеличить кол-во любого товара, то общая сумма пересчитывается, а общее кол-во единиц товара - нет <img src="https://ngcms.ru/forum/img/smilies/sad.png" width="15" height="15" alt="sad" /><br />Пока других косяков не нашёл.</p><p>Хотелось бы ещё иметь возможность сразу добавлять любое кол-во единиц товара.<br />Как об этом говорилось выше, на странице товара и в таблице всех товаров - кнопки &quot;+&quot; и &quot;-&quot; и &lt;input type=&quot;text&quot; /&gt;, в котором можно вводить кол-во вручную.<br />И те же возможности в форме заказа: удалить товар из заказа, увеличить и уменьшить кол-во (кнопками), &lt;input type=&quot;text&quot; /&gt; уже есть.<br />Вот, тогда корзина была бы практически готова к широкому использованию, а NG - к использованию в качестве магазина.</p><p>Кстати, порадовало то, что форму feedback&#160; при оформлении заказов можно автозаполнять данными из xfields <br />из профиля пользователя, если они заполнил эти доп.поля в профиле.</p>]]></description>
			<author><![CDATA[dummy@example.com (nimiko)]]></author>
			<pubDate>Wed, 16 Jul 2014 16:18:53 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38422#p38422</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38416#p38416</link>
			<description><![CDATA[<p>Тоже заметил этот косяк,при добавлении формы в баскет ничего кроме инфы по товару на почту не приходит,если не указывать форму в баскет то фидбэк работает нормально.<br />Видимо когда переводили на твиг где то появилась ошибка.<br /><a href="/forum/go.php?link=http://fotohosting.ucoz.kz/_ph/54/2/753810393.jpg?1405407934" rel="nofollow"><span class="postimg"><img src="http://fotohosting.ucoz.kz/_ph/54/1/753810393.jpg?1405407934" alt="753810393.jpg?1405407934" /></span></a><br /><a href="/forum/go.php?link=http://fotohosting.ucoz.kz/_ph/54/2/406649270.jpg?1405407989" rel="nofollow"><span class="postimg"><img src="http://fotohosting.ucoz.kz/_ph/54/1/406649270.jpg?1405407989" alt="406649270.jpg?1405407989" /></span></a><br /><a href="/forum/go.php?link=http://fotohosting.ucoz.kz/_ph/54/2/930050803.png?1405408020" rel="nofollow"><span class="postimg"><img src="http://fotohosting.ucoz.kz/_ph/54/1/930050803.jpg?1405408020" alt="930050803.jpg?1405408020" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (irbees2008)]]></author>
			<pubDate>Tue, 15 Jul 2014 04:54:48 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38416#p38416</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38414#p38414</link>
			<description><![CDATA[<p>В шаблоне плагина feedback в mail.html.tpl </p><div class="codebox"><pre><code>			{% for entry in entries %}
			&lt;tr style=&quot;background: #FFFFFF;&quot; valign=&quot;top&quot;&gt;
				&lt;td style=&quot;background: #EFEFEF;&quot;&gt;{{ entry.id }}&lt;/td&gt;
				&lt;td style=&quot;background: #EFEFEF;&quot;&gt;{{ entry.title }}&lt;/td&gt;
				&lt;td style=&quot;background: #EFEFEF;&quot;&gt;{{ entry.value }}&lt;/td&gt;
			&lt;/tr&gt;
			{% endfor %}</code></pre></div><p>почему-то обрабатывается плагином basket, поэтому вместо имени, фамилии и прочего приходит информация о товаре.<br />Почему так происходит? Как сделать, чтобы этот кусок обрабатывался как полагается, feedback&#039;ом?</p>]]></description>
			<author><![CDATA[dummy@example.com (nimiko)]]></author>
			<pubDate>Mon, 14 Jul 2014 22:40:20 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38414#p38414</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38412#p38412</link>
			<description><![CDATA[<p>0.9.3 + SVN [SVN1295+]<br />basket+feedback не отправляют данные о пользователе.</p><p>форма с личной информацией есть:<br /><a href="/forum/go.php?link=http://radikal.ru/fp/00a0cba573634d82a73c6e52c3b1c4e5" rel="nofollow"><span class="postimg"><img src="http://s005.radikal.ru/i212/1407/83/0a622f4ee850t.jpg" alt="0a622f4ee850t.jpg" /></span></a><br />но данных в письме нет:<br /><a href="/forum/go.php?link=http://radikal.ru/fp/535954a47afe4da5bcbe01644817f677" rel="nofollow"><span class="postimg"><img src="http://s013.radikal.ru/i325/1407/77/cb58ce8329f4t.jpg" alt="cb58ce8329f4t.jpg" /></span></a></p>]]></description>
			<author><![CDATA[dummy@example.com (nimiko)]]></author>
			<pubDate>Mon, 14 Jul 2014 12:35:40 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38412#p38412</guid>
		</item>
		<item>
			<title><![CDATA[Re: Наглядный пример по запуску магазина на NG]]></title>
			<link>https://ngcms.ru/forum/viewtopic.php?pid=38405#p38405</link>
			<description><![CDATA[<p>Долго прыгал с бубном, но так и не вышло получить на почту и таблицу с товарами, и таблицу с инфой о заказчике =/</p>]]></description>
			<author><![CDATA[dummy@example.com (nimiko)]]></author>
			<pubDate>Sun, 13 Jul 2014 12:28:54 +0000</pubDate>
			<guid>https://ngcms.ru/forum/viewtopic.php?pid=38405#p38405</guid>
		</item>
	</channel>
</rss>
