<?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>https://forum.readyscript.ru/topic/858/gde-izmenit-razmer-glavnoi-kartinki-tovara/</link>
		<atom:link href="https://forum.readyscript.ru/feed/rss/topic/858/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Где изменить размер главной картинки товара?».]]></description>
		<lastBuildDate>Mon, 22 Aug 2016 15:49:07 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Где изменить размер главной картинки товара?]]></title>
			<link>https://forum.readyscript.ru/post/4356/#p4356</link>
			<description><![CDATA[<p>В файлах шаблонов. ищите product.tpl в папке Вашего шаблона и строку с примерно таким кодом </p><div class="codebox"><pre><code> &lt;div class=&quot;images&quot;&gt;
                {if !$product-&gt;hasImage()}
                    {$main_image=$product-&gt;getMainImage()}
                    &lt;span class=&quot;image&quot;&gt;&lt;img src=&quot;{$main_image-&gt;getUrl(310,310,&#039;xy&#039;)}&quot; alt=&quot;{$main_image.title|default:&quot;{$product.title}&quot;}&quot;/&gt;&lt;/span&gt;
                {else}
                    {* Главные фото *}
                    {$images=$product-&gt;getImages()}
                    {if $product-&gt;isOffersUse()}
                       {* Назначенные фото у первой комлектации *}
                       {$offer_images=$product.offers.items[0].photos_arr}  
                    {/if}
                    {foreach $images as $key =&gt; $image}
                        &lt;a href=&quot;{$image-&gt;getUrl(800,600,&#039;xy&#039;)}&quot; class=&quot;image main {if ($offer_images &amp;&amp; ($image.id!=$offer_images.0)) || (!$offer_images &amp;&amp; !$image@first)} hidden{/if}&quot; data-n=&quot;{$key}&quot; data-id=&quot;{$image.id}&quot; target=&quot;_blank&quot; {if ($offer_images &amp;&amp; in_array($image.id, $offer_images)) || (!$offer_images)}rel=&quot;bigphotos&quot;{/if} &gt;&lt;img src=&quot;{$image-&gt;getUrl(344,344,&#039;xy&#039;)}&quot; alt=&quot;{$image.title|default:&quot;{$product.title} фото {$key+1}&quot;}&quot;/&gt;&lt;/a&gt;
                    {/foreach}</code></pre></div><p>$image-&gt;getUrl(800,600,&#039;xy&#039;) - здесь проставте свои размеры</p>]]></description>
			<author><![CDATA[null@example.com (Ярослав)]]></author>
			<pubDate>Mon, 22 Aug 2016 15:49:07 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/4356/#p4356</guid>
		</item>
		<item>
			<title><![CDATA[Где изменить размер главной картинки товара?]]></title>
			<link>https://forum.readyscript.ru/post/4348/#p4348</link>
			<description><![CDATA[<p>Где изменить размер основной картинки товара?</p>]]></description>
			<author><![CDATA[null@example.com (Vladimir)]]></author>
			<pubDate>Mon, 22 Aug 2016 01:07:51 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/4348/#p4348</guid>
		</item>
	</channel>
</rss>
