Hello,
I was able to add additional images to each product, but I'm wondering how can I get them displayed in the product details page.
Any thoughts?
Thanks,
Hello guys,
Any thoughts???
additional images should appear on the product detail page under the main image, does yours not show this?
JOhn
Hello John,
The page does not display additional images!
Should do, are you using the free edition perhaps, this may not show additional images. You may be able to show them in product options, in options, variants click the + sign at the side of the variant and add the image in there. Not ideal if you have lots but works. Additional images can be imported in the pro version though easily.
John
Where are you adding your additional images and how? Are you clicking on the images tab and then only adding the popup/larger image? That is what you need to do.
Have you changed any skin files? Are you using a custom skin?
If you view the source of your page or use Firebug, do you see any code that should be pulling it up?
Do you have a URL you could share?
Thanks,
Brandon
Hello,
What I'm trying to do is to display featured products on home page, and display the additional image for each product instead of the main image. So, what I'm looking for is the smarty code that retrieves secondary/additional images.
I add those additional images by going to the images tab on the product page.
I have 2 files involved in listing featured products on the home page. Here they are:
File #1: products_multicolumns_small.tpl
{* $Id: products_multicolumns_small.tpl 8351 2009-12-03 13:38:37Z angel $ *}
{** block-description:multicolumns_small **}
{script src="js/exceptions.js"}
{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}
{include file="blocks/list_templates/small_list.tpl"
products=$items
columns=$block.properties.number_of_columns
form_prefix="block_manager"
no_sorting="Y"
no_pagination="Y"
obj_prefix="`$block.block_id`000"
item_number=$block.properties.item_number
show_trunc_name=true
show_price=false
show_add_to_cart=$_show_add_to_cart
show_list_buttons=false}
File #2: small_list.tpl
```php
{* $Id: small_list.tpl 11940 2011-02-28 10:02:55Z alexions $ *}
{if $products}
{if $show_price_values && $settings.General.allow_anonymous_shopping == “P” && !$auth.user_id}
{assign var=“show_price_values” value=“0”}
{else}
{assign var=“show_price_values” value=“1”}
{/if}
{if !$no_sorting}
{include file=“views/products/components/sorting.tpl”}
{/if}
{if !$no_pagination}
{include file=“common_templates/pagination.tpl”}
{/if}
{if $products|@sizeof < $columns}
{assign var=“columns” value=$products|@sizeof}
{/if}
{split data=$products size=3|default:“2” assign=“splitted_products”}
{assign var=“img_width” value=“2”}
{assign var=“space_width” value=“2”}
{math equation=“(100 + space_width) / x - space_width - img_width” x=$columns|default:“2” assign=“cell_width” space_width=$space_width img_width=$img_width}
{math equation=“cell_width + img_width” cell_width=$cell_width img_width=$img_width assign=“2_cell_width”}
{if $item_number == “Y”}
{assign var=“cur_number” value=1}
{/if}
{foreach from=$splitted_products item="sproducts" name="splitted_products"}
{foreach from=$sproducts item="product" name="sproducts"}
{assign var="obj_id" value=$product.product_id}
{assign var="obj_id_prefix" value="`$obj_prefix``$product.product_id`"}
{include file="common_templates/product_data.tpl" product=$product}
{if !$smarty.foreach.sproducts.last}
{/if}
{/foreach}
{/foreach}
{if $product} {assign var="form_open" value="form_open_`$obj_id`"} {$smarty.capture.$form_open} {hook name="products:product_small_list"}
{/hook} {assign var="form_close" value="form_close_`$obj_id`"} {$smarty.capture.$form_close} {else} {/if} |
{if !$no_pagination}
{include file="common_templates/pagination.tpl"}
{/if}
{/if}
{capture name="mainbox_title"}{$title}{/capture}
```
Hello guys,
No one can help!
Great idea.
Did you fix this, what version are you using etc
John