msearch2--хрень какая-то

Не отображает имедж, артикул, цену----только pagetitle
вызываю так
[[!mSearchForm?
    &pageId=3550
    &element=msProducts
    &tplForm=tpl.mSearch2.form.Custom
    &tpl=tpl.mSearch2.ac.Custom
    &limit=999
  &autocomplete=0
    &showLog=1
]]
<div class="ms2_product">
    <form method="post" class="ms2_form">
        <input type="hidden" name="id" value="{$id}">
        <input type="hidden" name="count" value="1">
        <input type="hidden" name="options" value="[]">
         <div class="prod_tab img col-md-2">
[[!If?
   &subject=`[[+image]]`
   &operator=`notempty`

   &then=`<img src="[[+image]]" class="mw-100" alt="{$pagetitle}" title="{$pagetitle}"/>`
   &else=`<img src="/assets/images/no-image.png" class="mw-100" alt="{$pagetitle}" title="{$pagetitle}"/>`
]]                  
          
</div>
        
<div class="prod_tab art col-md-1">

<span>{$article}{$_modx->resource.id | resource : 'article'}</span>
 <!--<span style="color:red">[[+sort-norm.value]]</span>-->
                  
</div>
       

 <a href="{$id | url}" class="ajax-popup-link">{$pagetitle}</a>

</div    
<div class="prod_tab vendor col-md-1">
                  [[!+vendor.name]]        
</div>        
<div class="prod_tab price col-md-1">
                 {$price} {'ms2_frontend_currency' | lexicon}
</div>                           
<div class="prod_tab pack col-md-1">
             <span style="text-align: center;width: 100%;">[[+pack-norm.value]]</span>
</div> 
             <div class="prod_tab total col-md-1">
 <span class='number-wrapper'>              
<input type="number" name="count"  class="product_count form-control" value=""/>
</span>
            </div>
            <div class="prod_tab buy col-md-2">
                <button class="btn btn-primary" type="submit" name="ms2_action" value="cart/add" style="width:100%;">
                    {'ms2_frontend_add_to_cart' | lexicon}
                </button>
            </div>
    </form>
</div>
<!--msearch2_weight  ([[%mse2_weight]]: [[+weight]])-->
<!--msearch2_intro <p>[[+intro]]</p>-->
Alexander
26 января 2020, 10:26
modx.pro
743
-2

Комментарии: 2

Тимур
26 января 2020, 10:36
0
Вы целенаправленно и осознанно используете fenom и вызовы modx вместе?
    Тимур
    26 января 2020, 11:26
    0
    Вызов на fenom:
    {'!mSearchForm' | snippet : [
        'pageId' => 3550,
        'element' => 'msProducts',
        'tplForm' => 'tpl.mSearch2.form.Custom',
        'tpl' => 'tpl.mSearch2.ac.Custom',
        'limit' => 0,
        'autocomplete' => 0
    ]}
    
    <div class="ms2_product">
        <form method="post" class="ms2_form">
            <input type="hidden" name="id" value="{$id}">
            <input type="hidden" name="count" value="1">
            <input type="hidden" name="options" value="[]">
            
            <div class="prod_tab img col-md-2">
                {if $image}
                    <img src="{$image}" class="mw-100" alt="{$pagetitle}" title="{$pagetitle}"/>
                {else}
                    <img src="/assets/images/no-image.png" class="mw-100" alt="{$pagetitle}" title="{$pagetitle}"/>
                {/if}
            </div>
            
            {if $article}
                <div class="prod_tab art col-md-1">
                    <span>{$article}</span>
                </div>
            {/if}
           
            <a href="{$id | url}" class="ajax-popup-link">{$pagetitle}</a>
            
            <div class="prod_tab vendor col-md-1">
                {$_pls['vendor.name']}      
            </div>
            
            <div class="prod_tab price col-md-1">
                {$price} {'ms2_frontend_currency' | lexicon}
            </div>
            
            <div class="prod_tab pack col-md-1">
                <span style="text-align: center;width: 100%;">{$_pls['pack-norm.value']} </span>
            </div>
            
            <div class="prod_tab total col-md-1">
                <span class='number-wrapper'>              
                    <input type="number" name="count" class="product_count form-control" value=""/>
                </span>
            </div>
            
            <div class="prod_tab buy col-md-2">
                <button class="btn btn-primary" type="submit" name="ms2_action" value="cart/add" style="width:100%;">
                    {'ms2_frontend_add_to_cart' | lexicon}
                </button>
            </div>
        </form>
    </div>
      Авторизуйтесь или зарегистрируйтесь, чтобы оставлять комментарии.
      2