Layout Standard Product Image uses the following code to set a style attribute for the max-width:
The first BlockIf looks like:
and the second looks like:
This fails to generate anything if ProductImageMaxWidth is equal to ProductImageWidth, leading to an invalid style attribute.
Suggested fix is to change the first BlockIf to be:
Code:
style="max-width: <actinic:block if="%3cactinic%3avariable%20name%3d%22ProductImageMaxWidth%22%20%2f%3e%20%3d%3d%20%22%22%20OR%0d%3cactinic%3avariable%20name%3d%22ProductImageWidth%22%20%2f%3e%20%3c%20%3cactinic%3avariable%20name%3d%22ProductImageMaxWidth%22%20%2f%3e" ><actinic:variable name="ProductImageWidth" /></actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22ProductImageMaxWidth%22%20%2f%3e%20%21%3d%20%22%22%20AND%0d%3cactinic%3avariable%20name%3d%22ProductImageWidth%22%20%2f%3e%20%3e%20%3cactinic%3avariable%20name%3d%22ProductImageMaxWidth%22%20%2f%3e" ><actinic:variable name="ProductImageMaxWidth" /></actinic:block>px;"
Code:
ProductImageMaxWidth == "" OR ProductImageWidth < ProductImageMaxWidth
Code:
ProductImageMaxWidth != "" AND ProductImageWidth > ProductImageMaxWidth
Suggested fix is to change the first BlockIf to be:
Code:
ProductImageMaxWidth == "" OR ProductImageWidth <= ProductImageMaxWidth
Comment