diff --git a/studio/template/scripts/BxBaseStudioStore.php b/studio/template/scripts/BxBaseStudioStore.php index 6e9f9d2c29..5591a04cbc 100644 --- a/studio/template/scripts/BxBaseStudioStore.php +++ b/studio/template/scripts/BxBaseStudioStore.php @@ -820,13 +820,21 @@ protected function displayProducts($mixedItems, $aParams = array()) $bIcon = strpos($sIcon, '.') !== false; $sImage = ''; - if(!empty($aItem['cover']['medium'])) - $sImage = $aItem['cover']['medium']; - else if(!empty($aItem['cover']['large'])) - $sImage = $aItem['cover']['large']; - else if(!empty($aItem['cover']['big'])) - $sImage = $aItem['cover']['big']; - $bImage = !empty($sImage) && strpos($sImage, '.') !== false; + $bImage = $bImageRaw = false; + if(empty($aItem['cover_raw'])) { + if(!empty($aItem['cover']['medium'])) + $sImage = $aItem['cover']['medium']; + else if(!empty($aItem['cover']['large'])) + $sImage = $aItem['cover']['large']; + else if(!empty($aItem['cover']['big'])) + $sImage = $aItem['cover']['big']; + + $bImage = !empty($sImage) && strpos($sImage, '.') !== false; + } + else { + $sImage = $aItem['cover_raw']; + $bImageRaw = true; + } $aTmplVarsRate = array(); $bTmplVarsRate = $bShowRating && !$bShoppingCart; @@ -861,7 +869,7 @@ protected function displayProducts($mixedItems, $aParams = array()) ), ), 'bx_if:no_image' => array ( - 'condition' => !$bImage, + 'condition' => !$bImage && !$bImageRaw, 'content' => array( 'description_plain' => $aItem['description_plain'], 'strecher' => mb_strlen($aItem['description_plain']) > 240 ? '' : str_repeat('      ', round((240 - mb_strlen($aItem['description_plain'])) / 6)) @@ -874,6 +882,12 @@ protected function displayProducts($mixedItems, $aParams = array()) 'strecher' => str_repeat('      ', 40) ), ), + 'bx_if:image_raw' => array ( + 'condition' => $bImageRaw, + 'content' => array( + 'image_raw' => $sImage, + ), + ), 'title' => $aItem['title'], 'bx_if:show_vendor' => array( 'condition' => !$bShoppingCart, diff --git a/studio/template/str_product_v2.html b/studio/template/str_product_v2.html index 2568dc6041..e9b898477a 100644 --- a/studio/template/str_product_v2.html +++ b/studio/template/str_product_v2.html @@ -12,6 +12,11 @@
__strecher__
+ +
+ __image_raw__ +
+