Add New Product Template

Hi There,

I am adding a new product template for our store. I am using the following link to add a new view, but when i add the thumbnails there then it will display the following class:

ty-no-image__icon ty-icon-image

How can i fix this to display the thumbnails?

Thanks in advance.

screenshot.png

Hi There,

I am adding a new product template for our store. I am using the following link to add a new view, but when i add the thumbnails there then it will display the following class:

ty-no-image__icon ty-icon-image

How can i fix this to display the thumbnails?

Thanks in advance.

Hello,

How do you add thumbnails? Please send a piece of code.

{include file="common/image.tpl" image_width="70" image_height="70" images=$product.main_pair obj_id=$obj_id_prefix no_ids=true class="ty-thumbnail-list__img"}

I use the code from links_thumb.tpl as a exemple.

I am using the following code to display the products as a grid list. This is a copy of links_thumbs.tpl

/list_template/cards.tpl

{foreach from=$products item="product" name="products"} {assign var="obj_id" value=$product.product_id} {assign var="obj_id_prefix" value="`$obj_prefix``$product.product_id`"} {include file="common/product_data.tpl" product=$product}
{include file="common/image.tpl" image_width="70" image_height="70" images=$product.main_pair obj_id=$obj_id_prefix no_ids=true class="ty-thumbnail-list__img"}
{if $block.properties.item_number == "Y"}{$smarty.foreach.products.iteration}. {/if} {assign var="name" value="name_$obj_id"}{$smarty.capture.$name nofilter}
        {$smarty.capture.$price nofilter}
    
{/foreach}

/products/products_card.tpl

{** block-description:cards **}

{if $block.properties.hide_add_to_cart_button == “Y”}
{assign var=“_show_add_to_cart” value=false}
{else}
{assign var=“_show_add_to_cart” value=true}
{/if}

{assign var=“_show_name” value=“true”}

{include file=“blocks/list_templates/cards.tpl”
products=$items
obj_prefix=“$block.block_id000”
item_number=$block.properties.item_number
show_name=$_show_name
no_pagination=true
show_price=false
show_rating=false
show_add_to_cart=$_show_add_to_cart
show_list_buttons=false
add_to_cart_meta=“text-button-add”
but_role=“text”}

I am still getting the no-images class. Do i something wrong or missing something?