Jump to content

Условие "если есть бренды или свойства"


Recommended Posts

Здравствуйте.

 

Подскажите, как сделать условие чтобы текст выводился если есть бренды или свойства (или и то и другое).

 

Другими словами как совместить {if $category->brands} {if $features}

Link to post
Share on other sites
{if $category->brands || $features}

 

как выше написано - верное, но простое условие

просто проверяет наличие.

может и другое {IF} пригодиться

 

{if $smarty.server.REQUEST_URI|regex_replace:"/\?.*/":"" == $smarty.server.REQUEST_URI && !$brand}

    в products Ничего не выбрано из фильтров

{else}

    выбран или бренд или любая характеристика

{/if}

Edited by ST_RU
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...