Make product variant selection as images

Hello, I’m new here on the forum :slight_smile:

As far as I’ve seen OXID CE has (v4.8.3) no way for the variants selection on the product detail template to be displayed as variant images, or am I wrong?

The customer for whom I develop a theme wants a selection of the variants to be presented as an image for each variant.

The code I have used and modified until now is in “widget/product/selectbox.tpl” template file.

[B][I]Ex. code:[/I][/B]


[{foreach from=$oSelections item=oSelection}]
                    <li class="[{if $oSelection->isDisabled()}]js-disabled disabled[{/if}]">
                        <a data-selection-id="[{$oSelection->getValue()}]" href="[{$oSelection->getLink()}]"
                           class="[{if $oSelection->isActive()}]selected[{/if}]">[{$oSelection->getName()}]</a>
                        [{*<img class="img-responsive" src="[{$oSelection->getImageUrl()}]" alt="Image"/>*}]
                        <div class="debug hidden">
                            [{$oSelection|var_dump}]
                        </div>
                    </li>
                [{/foreach}]  

The problem is that the “oSelection” object, doesn’t have and image URL attribute. I need it badly though. Is there a way to get out one or more images for the variant?

Thanks in advance

Hi,

actually, this is available from basic shop features: Just edit the variants :wink:
Do you know how to do it?

Best

[QUOTE=Marco Steinhaeuser;144485]Hi,

actually, this is available from basic shop features: Just edit the variants :wink:
Do you know how to do it?

Best[/QUOTE]

Editing the variants? How? I mean, I know how to set the images for each variant, but, to enable the selection of each variant by its picture on the product details page, that i don’t.

Could you explain please?

How can i setup variant images?

http://forum.oxid-esales.com/showthread.php?t=40031