Перейти к содержимому


raperok2495

Регистрация: 01 Dec 2014
Offline Активность: Dec 04 2014 07:28 PM
-----

Мои темы

Как убрать старую цену в кратком описание

04 December 2014 - 02:49 PM

Подскажите какой код нужно убрать чтобы в кратком описание товара старую цену не показывало.тоисть когда переходить в полное описание товара и только там была старая цена(зачеркнута ) и новая.
{* шаблон короткого описния товара *}
{if $product_info ne NULL}
{if $smarty.const.CONF_MOD_REWRITE eq 1}
{assign var="tlink" value="<a href='product_`$product_info.productID`.html'><span class='designer'>`$product_info.name`</span></a>"}
{else}
{assign var="tlink" value="<a href='index.php?productID=`$product_info.productID`'><span class='designer'>`$product_info.name`</span></a>"}
{/if}
{assign var="preheader" value=""}
{if $isadmin eq "yes"}{assign var="postheader" value=`$preheader``$tlink`}{else}{assign var="postheader" value=$tlink}{/if}
<div class="tov" style="width:180px;margin-bottom:40px;">
<div class="tovimg" style="height:170px;">{if $smarty.const.CONF_DISPLAY_FOTO eq 0}
		  {if $product_info.picture}
		  <a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}product_{$product_info.productID}.html{else}index.php?productID={$product_info.productID}{/if}"><img width="150" src="data/small/{$product_info.picture}" alt="{$product_info.name}"></a>
		  {else}
		  {if $smarty.const.CONF_DISPLAY_NOPHOTO eq 1}
		 <a href="{if $smarty.const.CONF_MOD_REWRITE eq 1}product_{$product_info.productID}.html{else}index.php?productID={$product_info.productID}{/if}"><img src="data/empty.gif" alt="no photo"></a>
		  {/if}
		  {/if}</div>
<div class="tovname" style="height:70px;">{$postheader}</div>{if $product_info.list_price}
<div class="tovprice" style="font-size:18px;text-decoration:line-through">{$product_info.list_price} руб.</div>{/if}
<div class="tovprice">{$product_info.PriceWithUnit}</div>
<div class="tovcart">				  <form action="index.php?categoryID={$product_info.categoryID}&amp;prdID={$product_info.productID}" method=post name="HiddenFieldsForm_{$product_info.productID}" id="HiddenFieldsForm_{$product_info.productID}">
				    {if $smarty.const.CONF_OPEN_SHOPPING_CART_IN_NEW_WINDOW eq 1}
				    {if $smarty.const.CONF_SHOW_ADD2CART eq 1 && ( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
				    <a href="#" onclick="open_window('index.php?do=cart&amp;addproduct={$product_info.productID}{counter name='select_counter_hidden' start=0 skip=1 print=false}{counter name='select_counter_hidden_extra' start=0 skip=1 print=false}{section name=i loop=$product_info.product_extra}{if $product_info.product_extra[i].option_type eq 1}{section name=s loop=$product_info.product_extra[i].option_show_times}&amp;option_select_hidden_{counter name=select_counter_hidden}='+document.HiddenFieldsForm_{$product_info.productID}.option_select_hidden_{counter name=select_counter_hidden_extra}_{$product_info.productID}.value+'{/section}{/if}{/section}&amp;multyaddcount='+document.HiddenFieldsForm_{$product_info.productID}.multyaddcount.value+'',550,300); return false"><img src="data/{$smarty.const.TPL}/crt.gif" alt=""></a>
					   <input type={if $smarty.const.CONF_MULTYCART==0}hidden{else}text{/if} value="1" name="multyaddcount" {if $smarty.const.CONF_MULTYCART==1}size="2" style="margin-right: 4px; width: 16px;"{/if}>
						  <a href="#" onclick="open_window('index.php?do=cart&amp;addproduct={$product_info.productID}{counter name='select_counter_hidden' start=0 skip=1 print=false}{counter name='select_counter_hidden_extra' start=0 skip=1 print=false}{section name=i loop=$product_info.product_extra}{if $product_info.product_extra[i].option_type eq 1}{section name=s loop=$product_info.product_extra[i].option_show_times}&amp;option_select_hidden_{counter name=select_counter_hidden}='+document.HiddenFieldsForm_{$product_info.productID}.option_select_hidden_{counter name=select_counter_hidden_extra}_{$product_info.productID}.value+'{/section}{/if}{/section}&amp;multyaddcount='+document.HiddenFieldsForm_{$product_info.productID}.multyaddcount.value+'',550,300); return false">{$smarty.const.ADD_TO_CART_STRING}</a>
					
				    {/if}
				    {else}
				    {if $smarty.const.CONF_CART_METHOD eq 2}
				    {if $smarty.const.CONF_SHOW_ADD2CART eq 1 && ( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
<input type=hidden value="1" name="multyaddcount" {if $smarty.const.CONF_MULTYCART==1}size="2" style="margin-right: 4px; width: 16px;"{/if}>
						  <a href="#" onclick="doLoad('do=cart&amp;addproduct={$product_info.productID}{counter name='select_counter_hidden' start=0 skip=1 print=false}{counter name='select_counter_hidden_extra' start=0 skip=1 print=false}{section name=i loop=$product_info.product_extra}{if $product_info.product_extra[i].option_type eq 1}{section name=s loop=$product_info.product_extra[i].option_show_times}&amp;option_select_hidden_{counter name=select_counter_hidden}='+document.HiddenFieldsForm_{$product_info.productID}.option_select_hidden_{counter name=select_counter_hidden_extra}_{$product_info.productID}.value+'{/section}{/if}{/section}&amp;xcart=yes&amp;multyaddcount='+document.HiddenFieldsForm_{$product_info.productID}.multyaddcount.value+''); return false"> <img src="/images/buy.png"></a>
					
				    {/if}
				    {else}
				    {if $smarty.const.CONF_SHOW_ADD2CART eq 1 && ( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
				   <input type="hidden" name="cart_{$product_info.productID}_x" value="{$product_info.productID}">
						  <a href="#" onclick="document.getElementById('HiddenFieldsForm_{$product_info.productID}').submit(); return false"><img src="data/{$smarty.const.TPL}/crt.gif" alt=""></a>
					    <input type={if $smarty.const.CONF_MULTYCART==0}hidden{else}text{/if} value="1" name="multyaddcount" {if $smarty.const.CONF_MULTYCART==1}size="2" style="margin-right: 4px; width: 16px;"{/if}>
						  <a href="#" onclick="document.getElementById('HiddenFieldsForm_{$product_info.productID}').submit(); return false">{$smarty.const.ADD_TO_CART_STRING}</a>
					
				    {/if}
				    {/if}
				    {/if}
				    {counter name='select_counter_hidden' start=0 skip=1 print=false}
				    {section name=i loop=$product_info.product_extra}
				    {if $product_info.product_extra[i].option_type eq 1}
				    {section name=s loop=$product_info.product_extra[i].option_show_times}
				    <input type=hidden name='option_select_hidden_{counter name=select_counter_hidden}_{$product_info.productID}' value='1'>
				    {/section}
				    {/if}
				    {/section}
				  </form>  
					  </div>
</div>

		    {if $select_counter_var != 0}
		    <form action="index.php?productID={$product_info.productID}" method=post name="MainForm2_{$product_info.productID}">
			  <input type=hidden value="{php}echo(getPriceUnit());{/php}" name="priceUnit_{$product_info.productID}">
		    </form> {/if}
{if $select_counter_var != 0}
		    <script type="text/javascript">
function GetCurrentCurrency_{$product_info.productID}()
{literal}
{
{/literal}
_selectionCount={$select_counter_var};
_sum = {$product_info.PriceWithOutUnit};
{counter name='select_counter2' start=1 skip=1 print=false assign='select_counter_var2'}
{section name=i loop=$product_info.product_extra}
{section name=k loop=$product_info.product_extra[i].option_show_times}
_value=document.MainForm1_{$product_info.productID}.option_select_{$select_counter_var2}_{$product_info.productID}.value;
price_surplus = ( _value.split(":") )[0];
  _sum += new Number( price_surplus );
variantID = ( _value.split(":") )[1];
document.HiddenFieldsForm_{$product_info.productID}.option_select_hidden_{$select_counter_var2}_{$product_info.productID}.value = variantID;
{counter name=select_counter2}
{/section}
{/section}
_sum = Math.round(_sum*100)/100;
_sumStr = new String(_sum);
_commaIndex = _sumStr.indexOf(".");
if ( _commaIndex == -1 )
_sumStr = _sum;
else
_sumStr = _sumStr.substr(0, _commaIndex + 3);
{php}
echo("locationPriceUnit=".getLocationPriceUnit().";\n");
{/php}
_sumStr = _formatPrice(_sumStr, {$currency_roundval});
if ( locationPriceUnit )
document.getElementById('optionPrice_{$product_info.productID}').innerHTML = _sumStr + document.MainForm2_{$product_info.productID}.priceUnit_{$product_info.productID}.value;
else
document.getElementById('optionPrice_{$product_info.productID}').innerHTML = document.MainForm2_{$product_info.productID}.priceUnit_{$product_info.productID}.value + _sumStr;
{literal}
}
{/literal}
GetCurrentCurrency_{$product_info.productID}();
</script>
		    {/if}
{/if}

{/if}

как вернуться к оплате заказа

02 December 2014 - 12:31 PM

Всем привет,я новенький извините если не там создал тему.
но у меня 2 вопроса подскажите как сделать чтобы покупатель мог вернуться на страницу оплата
ну например к той странички где (Спасибо подвердите свой заказ ....лалала.....оплатить сейчас)
ну или как информировать покупателя что оплата не прошла и он может перейти на страничку для оплаты (ссылка) ...Ну короче я думаю вы поняли меня :)

======================
второй вопрос
Изображение
Почему у меня товары вот так показывают лесенкой ?а не в один ряд
в общих настройках
Максимальное количество товаров на странице (16)
уже незнаю что редактировать