View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006569 | Flow theme | Theme | public | 2017-01-06 10:38 | 2024-04-03 09:02 |
Reporter | vanilla thunder | Assigned To | |||
Priority | normal | Severity | tweak | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 2.0.0 | ||||
Fixed in Version | 2.3.2 | ||||
Summary | 0006569: "Specifications" heading for attributes is displayed even if there are no attributes | ||||
Description | product template for list view contains attributes, but the if-condition for displaying "specifications" heading only if product has attributes is wrong, this heading is always visible even if there are no attributes. | ||||
Steps To Reproduce | http://demoshop.oxid-esales.com/professional-edition/Wakeboarding/Sets/?ldtype=line | ||||
Additional Information | the code from listitem_line.tpl: [{assign var="oAttributes" value=$product->getAttributes()}] [{if $oAttributes}] ... [{/if}] but getAttributes() always returns oxAttributeList object, which is evaluated as true by this if-condition. In my Opinion, this condition should be changed to [{if $oAttributes->count()}] or [{if $oAttributes|@count}] | ||||
Tags | Solution Provided | ||||