View Issue Details

IDProjectCategoryView StatusLast Update
0006004OXID eShop (all versions)1.01. Products (product, categories, manufacturer, promotions etc.)public2019-06-04 16:02
Reporterwiedeking 
PrioritylowSeveritymajorReproducibilityalways
Status acknowledgedResolutionreopened 
Product Version4.8.7 / 5.1.7 
Target VersionFixed in Version 
Summary0006004: Alternative Template is not used with variants
DescriptionHi, This is a reopen of 0005403

the alterative Template is only used for the father article but not for the variants!
Steps To ReproduceThis is how you can reproduce it:
1.) create a alternative product template.
2.) create a father article and assign alternative template
3.) create variants

If you now go in the show and view the father article, the alternative template will be used.
But if you select an variant, than the original template is used.
This is very confusing for the customer.

It can be seen here: http://www.abendtuete.de/Unsere-Tueten/FAMILIENTUETEN/vegetarische-Familientuete.html
TagsNo tags attached.
ThemeAzure
BrowserAll
PHP VersionNot defined
MySQL VersionNot defined

Relationships

related to 0005504 acknowledged individual template for one article doesn't work anymore without adapting code 

Activities

wiedeking

2014-12-18 10:01

reporter   ~0010540

Please see here: http://www.abendtuete.de/Unsere-Tueten/GESCHENKETUeTEN/Gutschein-Verschenke-das-pure-Kochvergnuegen.html

wiedeking

2014-12-18 14:44

reporter   ~0010557

I think this is not a duplicate of 0005504 because alternative templates work very well in my shop. it is only, that they do not work with variants!
this is a different bug, i think!

thanx
peter

leofonic

2019-06-04 16:02

reporter   ~0012906

Possible solution from forums, in Application/views/flow/tpl/widget/product/details.tpl:

[{assign var="oDetailsProduct" value=$oView->getProduct()}]
[{assign var="template" value=$oDetailsProduct->oxarticles__oxtemplate->value}]

[{if $template==''}]
    [{include file="page/details/details.tpl" blWorkaroundInclude=true}]
[{else}]
    [{include file=$template blWorkaroundInclude=true}]
[{/if}]

[{insert name="oxid_tracker" title="PRODUCT_DETAILS"|oxmultilangassign product=$oDetailsProduct cpath=$oView->getCatTreePath() }]
[{oxscript widget=$oView->getClassName()}]