<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум ReadyScript &mdash; Не отображается зачеркнутая цена]]></title>
	<link rel="self" href="https://forum.readyscript.ru/feed/atom/topic/2046/" />
	<updated>2020-02-11T16:47:12Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.readyscript.ru/topic/2046/ne-otobrazhaetsya-zacherknutaya-tsena/</id>
		<entry>
			<title type="html"><![CDATA[Re: Не отображается зачеркнутая цена]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10951/#p10951" />
			<content type="html"><![CDATA[<p>Сам разобрался, вдруг кому пригодиться, нужно что бы в настройках модуля каталога товаров была указана зачеркнутая цена и все будет отображаться!</p>]]></content>
			<author>
				<name><![CDATA[Денис]]></name>
				<uri>https://forum.readyscript.ru/user/1535/</uri>
			</author>
			<updated>2020-02-11T16:47:12Z</updated>
			<id>https://forum.readyscript.ru/post/10951/#p10951</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Не отображается зачеркнутая цена]]></title>
			<link rel="alternate" href="https://forum.readyscript.ru/post/10950/#p10950" />
			<content type="html"><![CDATA[<p>Все товары добавил, цена зачеркнутая в карточке товара в админке есть, но на сайте ни в одной из стандартных тем ее не видно...</p><p>В демо у вас кстати тоже есть 1 товар с зачеркнутой ценой и ее тоже не видно...</p><p>Как ее показать?</p><p>Сами коды не правил, в кодах темы она есть</p><div class="quotebox"><blockquote><p>&lt;div class=&quot;card-price&quot;&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {$cur_cost = $product-&gt;getCost()}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {$old_cost = $product-&gt;getOldCost()}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $old_cost &amp;&amp; $old_cost != $cur_cost}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;card-price_old&quot;&gt;{$old_cost} {$product-&gt;getCurrency()}&lt;/span&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;card-price_new&quot;&gt;{$cur_cost} {$product-&gt;getCurrency()}&lt;/span&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {hook name=&quot;catalog-list_products:tableview-buttons&quot; product=$product title=&quot;{t}Просмотр категории продукции:кнопки, табличный вид{/t}&quot;}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $shop_config &amp;&amp; !$product.disallow_manually_add_to_cart}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $product-&gt;shouldReserve()}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $product-&gt;isOffersUse() || $product-&gt;isMultiOffersUse()}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a data-url=&quot;{$router-&gt;getUrl(&#039;shop-front-multioffers&#039;, [&quot;product_id&quot; =&gt; $product.id])}&quot; class=&quot;link link-more rs-in-dialog&quot;&gt;{t}Заказать{/t}&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {else}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a data-url=&quot;{$router-&gt;getUrl(&#039;shop-front-reservation&#039;, [&quot;product_id&quot; =&gt; $product.id])}&quot; class=&quot;link link-more rs-in-dialog&quot;&gt;{t}Заказать{/t}&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {else}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $check_quantity &amp;&amp; $product.num&lt;1}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;unobt pull-right&quot; title=&quot;{t}Нет в наличии{/t}&quot;&gt;{t}Нет в наличии{/t}&lt;/span&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {else}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {if $product-&gt;isOffersUse() || $product-&gt;isMultiOffersUse()}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a data-url=&quot;{$router-&gt;getUrl(&#039;shop-front-multioffers&#039;, [&quot;product_id&quot; =&gt; $product.id])}&quot; class=&quot;link link-more rs-in-dialog&quot;&gt;{t}В корзину{/t}&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {else}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;a data-url=&quot;{$router-&gt;getUrl(&#039;shop-front-cartpage&#039;, [&quot;add&quot; =&gt; $product.id])}&quot; class=&quot;link link-more rs-to-cart rs-no-show-cart&quot; data-add-text=&quot;{t}Добавлено{/t}&quot;&gt;{t}В корзину{/t}&lt;/a&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/if}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {/hook}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;/div&gt;</p></blockquote></div><p>Но как будет getOldCost не выдает цену</p><p>В чем может быть проблема?</p><p>Заранее спасибо!</p>]]></content>
			<author>
				<name><![CDATA[Денис]]></name>
				<uri>https://forum.readyscript.ru/user/1535/</uri>
			</author>
			<updated>2020-02-11T16:32:43Z</updated>
			<id>https://forum.readyscript.ru/post/10950/#p10950</id>
		</entry>
</feed>
