Jump to content

Помогите срочно нужно буду очень благодарен


Recommended Posts

На самом деле не очень. Есть такие магазины, которые специально не публикуют цены - в моей практике было 2 случая, которые отвечали данной задаче:
1. магазин, который работал только с оптовиками, и публиковать цены было неразумно, т.к. обычных пользователей цены только вводили в заблуждение
2. закрытый раздел по 1 производителю, по логике тоже не на розницу рассчитанный, а по сути сетевой маркетинг (типа того же Avon или Oriflame).

Link to post
Share on other sites

Ну да, согласен. Только с оптовиками проще, я клиенту развязывал оптовиков и обычных клиентов на разные шаблоны и разные расчеты. Каждый из пользователей видел то, что его касается.

Link to post
Share on other sites

В шаблоны с ценой, т.е. products.tpl, product.tpl ну и хиты... Переменная {$user} указывает на то, что в системе есть пользователь, т.е. он авторизован.

Link to post
Share on other sites

<td>
{if $v->compare_price > 0}<span
class="compare_price">{$v->compare_price|convert}</span>{/if}
<span class="price">{$v->price|convert} <span
class="currency">{$currency->sign|escape}</span></span>
</td>
Что куда вставить ? я реально тупой !

Link to post
Share on other sites

{if $user}
{if $v->compare_price > 0}class="compare_price">{$v->compare_price|convert}{/if}
{$v->price|convert} class="currency">{$currency->sign|escape}
{else}Цены видны после авторизации
{/if}



class="currency"> только лишнее

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...