Jump to content

Как в шаблоне vamshop5 на странице карточки товара сделать открытие картинок в popup окне, без zoom'a?


support

Recommended Posts

support

В /templates/vamshop5/module/product_info/product_info_v1.html меняйте:

                  <div class="product-gallery-preview-item active" id="image0"><img itemprop="image" class="image-zoom" src="{$PRODUCTS_IMAGE}" {if $PRODUCTS_POPUP_LINK!=''}data-zoom="{$PRODUCTS_POPUP_IMAGE}"{/if} alt="{if $PRODUCTS_IMAGE_DESCRIPTION !=''}{$PRODUCTS_IMAGE_DESCRIPTION}{else}{$PRODUCTS_NAME}{/if}">
                    <div class="image-zoom-pane"></div>
                  </div>
    {foreach name=slide item=slides from=$mo_img}
                  <div class="product-gallery-preview-item" id="image{counter name=1}"><img itemprop="image" class="image-zoom" src="{$slides.PRODUCTS_MO_IMAGE}" {if $slides.PRODUCTS_MO_POPUP_LINK !=''}data-zoom="{$slides.PRODUCTS_MO_POPUP_IMAGE}"{/if} alt="{if $slides.PRODUCTS_MO_IMAGE_DESCRIPTION !=''}{$slides.PRODUCTS_MO_IMAGE_DESCRIPTION}{else}{$PRODUCTS_NAME}{/if}">
                    <div class="image-zoom-pane"></div>
                  </div>
    {/foreach}

на:

                  <div class="product-gallery-preview-item active" id="image0">{if $PRODUCTS_POPUP_LINK!=''}<a href="{$PRODUCTS_POPUP_IMAGE}" title="{$PRODUCTS_NAME}" class="lightbox image-zoom">{/if}<img itemprop="image" src="{$PRODUCTS_IMAGE}" alt="{if $PRODUCTS_IMAGE_DESCRIPTION !=''}{$PRODUCTS_IMAGE_DESCRIPTION}{else}{$PRODUCTS_NAME}{/if}">{if $PRODUCTS_POPUP_LINK!=''}</a>{/if}
                  </div>
    {foreach name=slide item=slides from=$mo_img}
                  <div class="product-gallery-preview-item" id="image{counter name=1}">{if $slides.PRODUCTS_MO_POPUP_LINK !=''}<a href="{$slides.PRODUCTS_MO_POPUP_IMAGE}" title="{$PRODUCTS_NAME}" class="lightbox image-zoom">{/if}<img itemprop="image" src="{$slides.PRODUCTS_MO_IMAGE}" alt="{if $slides.PRODUCTS_MO_IMAGE_DESCRIPTION !=''}{$slides.PRODUCTS_MO_IMAGE_DESCRIPTION}{else}{$PRODUCTS_NAME}{/if}">{if $slides.PRODUCTS_MO_POPUP_LINK !=''}</a>{/if}
                  </div>
    {/foreach}
Link to post
Share on other sites
×
×
  • Create New...