<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум ReadyScript &mdash; Как добавить название товара в блок комментариев]]></title>
		<link>http://forum.readyscript.ru/topic/495/kak-dobavit-nazvanie-tovara-v-blok-kommentariev/</link>
		<atom:link href="http://forum.readyscript.ru/feed/rss/topic/495/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Как добавить название товара в блок комментариев».]]></description>
		<lastBuildDate>Fri, 09 Oct 2015 16:19:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Как добавить название товара в блок комментариев]]></title>
			<link>http://forum.readyscript.ru/post/2075/#p2075</link>
			<description><![CDATA[<p>Спасибо тебе добрый человек <img src="http://forum.readyscript.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (Sergey T.)]]></author>
			<pubDate>Fri, 09 Oct 2015 16:19:50 +0000</pubDate>
			<guid>http://forum.readyscript.ru/post/2075/#p2075</guid>
		</item>
		<item>
			<title><![CDATA[Re: Как добавить название товара в блок комментариев]]></title>
			<link>http://forum.readyscript.ru/post/2073/#p2073</link>
			<description><![CDATA[<p>просто </p><div class="codebox"><pre><code>{$product.title}</code></pre></div><div class="codebox"><pre><code>{static_call var=product callback=[&#039;\Catalog\Model\Orm\Product&#039;, &#039;loadByWhere&#039;] params=[[&#039;id&#039;=&gt;$aid]]}{$product.title}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Ярослав)]]></author>
			<pubDate>Fri, 09 Oct 2015 14:36:54 +0000</pubDate>
			<guid>http://forum.readyscript.ru/post/2073/#p2073</guid>
		</item>
		<item>
			<title><![CDATA[Re: Как добавить название товара в блок комментариев]]></title>
			<link>http://forum.readyscript.ru/post/2071/#p2071</link>
			<description><![CDATA[<p>Эх, не силен я в php. Нашел где-то в тырнете, что можно выводить через функцию print_r вместо var_dump. Кавычки и стринги убрались, но теперь в конец добавляется цифра 1 <img src="http://forum.readyscript.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p><span class="postimg"><img src="http://i66.fastpic.ru/big/2015/1008/3f/fe21dd6fbf74e43393ab798bda43313f.jpg" alt="http://i66.fastpic.ru/big/2015/1008/3f/fe21dd6fbf74e43393ab798bda43313f.jpg" /></span></p>]]></description>
			<author><![CDATA[null@example.com (Sergey T.)]]></author>
			<pubDate>Thu, 08 Oct 2015 13:14:04 +0000</pubDate>
			<guid>http://forum.readyscript.ru/post/2071/#p2071</guid>
		</item>
		<item>
			<title><![CDATA[Re: Как добавить название товара в блок комментариев]]></title>
			<link>http://forum.readyscript.ru/post/2066/#p2066</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>заголовок вывелся, но также вывелись кавычки и &quot;string(98)&quot;, от них можно избавиться?</p></blockquote></div><p>var_dump() - это для примера. Это функция php которая выводит содержимое любой переменной с её типом.</p><p>Просто вытащите её из var_dump<br />А вот документация по <a href="http://www.php.su/var_dump">var_dump </a></p>]]></description>
			<author><![CDATA[null@example.com (Александр)]]></author>
			<pubDate>Thu, 08 Oct 2015 07:59:05 +0000</pubDate>
			<guid>http://forum.readyscript.ru/post/2066/#p2066</guid>
		</item>
		<item>
			<title><![CDATA[Re: Как добавить название товара в блок комментариев]]></title>
			<link>http://forum.readyscript.ru/post/2053/#p2053</link>
			<description><![CDATA[<p>Сделал так:<br /></p><div class="codebox"><pre><code>{static_call var=product callback=[&#039;\Catalog\Model\Orm\Product&#039;, &#039;loadByWhere&#039;] params=[[&#039;id&#039;=&gt;$aid]]}{var_dump($product.title)}</code></pre></div><p>заголовок вывелся, но также вывелись кавычки и &quot;string(98)&quot;, от них можно избавиться?</p><p><span class="postimg"><img src="http://i68.fastpic.ru/big/2015/1007/b5/a402dded5b164b6db1176aa2436039b5.jpg" alt="http://i68.fastpic.ru/big/2015/1007/b5/a402dded5b164b6db1176aa2436039b5.jpg" /></span></p><p>Заранее спасибо за ответ.</p>]]></description>
			<author><![CDATA[null@example.com (Sergey T.)]]></author>
			<pubDate>Wed, 07 Oct 2015 12:14:39 +0000</pubDate>
			<guid>http://forum.readyscript.ru/post/2053/#p2053</guid>
		</item>
		<item>
			<title><![CDATA[Re: Как добавить название товара в блок комментариев]]></title>
			<link>http://forum.readyscript.ru/post/2051/#p2051</link>
			<description><![CDATA[<p><strong>var_dump</strong> здесь для примера, чтобы показать весь объект. static_call вернёт Вам объект товара. Поэтому Вы же можете потом сделать </p><div class="codebox"><pre><code>$product.title</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Александр)]]></author>
			<pubDate>Wed, 07 Oct 2015 12:02:25 +0000</pubDate>
			<guid>http://forum.readyscript.ru/post/2051/#p2051</guid>
		</item>
		<item>
			<title><![CDATA[Re: Как добавить название товара в блок комментариев]]></title>
			<link>http://forum.readyscript.ru/post/2050/#p2050</link>
			<description><![CDATA[<p>Попробовал добавить эту конструкцию в comment_block.tpl вывелось полное описание товара, а перед ним и после строк по 10 кракозябриков, а хотелось бы только название <img src="http://forum.readyscript.ru/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><div class="codebox"><pre><code>{addjs file=&quot;{$mod_js}comments.js&quot; basepath=&quot;root&quot;}
&lt;section class=&quot;comments&quot;&gt;
    &lt;div class=&quot;head&quot;&gt;
        &lt;span class=&quot;text&quot;&gt;Отзывы ({$total}) 
            {static_call var=product callback=[&#039;\Catalog\Model\Orm\Product&#039;, &#039;loadByWhere&#039;] params=[[&#039;id&#039;=&gt;$aid]]}{var_dump($product)}&lt;/span&gt;
 &lt;/div&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Sergey T.)]]></author>
			<pubDate>Wed, 07 Oct 2015 10:48:22 +0000</pubDate>
			<guid>http://forum.readyscript.ru/post/2050/#p2050</guid>
		</item>
		<item>
			<title><![CDATA[Re: Как добавить название товара в блок комментариев]]></title>
			<link>http://forum.readyscript.ru/post/2047/#p2047</link>
			<description><![CDATA[<p>В шаблоне есть <strong>$aid</strong> переменная. В ней хранится <strong>id</strong> товара. Вам надо подгрузить товар по данному <strong>id</strong>. Вы можете воспользоваться <strong>static_call</strong> нашим плагином для смарти.</p><p>Например вот так попробовать можно:<br /></p><div class="quotebox"><blockquote><p>{static_call var=product callback=[&#039;\Catalog\Model\Orm\Product&#039;, &#039;loadByWhere&#039;] params=[[&#039;id&#039;=&gt;$aid]]}<br />{var_dump($product)}</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Александр)]]></author>
			<pubDate>Wed, 07 Oct 2015 10:35:47 +0000</pubDate>
			<guid>http://forum.readyscript.ru/post/2047/#p2047</guid>
		</item>
		<item>
			<title><![CDATA[Как добавить название товара в блок комментариев]]></title>
			<link>http://forum.readyscript.ru/post/2040/#p2040</link>
			<description><![CDATA[<p>Как выводить в блоке с комментариями название товара {$product.title} если вставить в comment_block.tpl, то название не выводится. Хочу после &quot;Отзывы (8)&quot; добавить еще название товара.</p><p><span class="postimg"><img src="http://i67.fastpic.ru/big/2015/1007/7c/2f265ef2e8f2e3071b8d9bd51f4e5a7c.jpg" alt="http://i67.fastpic.ru/big/2015/1007/7c/2f265ef2e8f2e3071b8d9bd51f4e5a7c.jpg" /></span></p>]]></description>
			<author><![CDATA[null@example.com (Sergey T.)]]></author>
			<pubDate>Wed, 07 Oct 2015 08:17:35 +0000</pubDate>
			<guid>http://forum.readyscript.ru/post/2040/#p2040</guid>
		</item>
	</channel>
</rss>
