Image path bug found on WeltPixel Options > Subcategory Image
Hi there,
When I upload an image to the category using the WeltPixel Options > Subcategory Image the output shows a broken image path.
The incorrect path is:
https://domain.com/media//media/catalog/tmp/category/image.png
The correct path should be:
https://domain.com/media/catalog/tmp/category/image.png
I used template hints to locate the file in question
/app/code/WeltPixel/NavigationLinks/view/frontend/templates/category/subcategories.phtml
The issue seems to be with this php statement
<?php
$subCategoryImage = $subcateg->getData('weltpixel_sc_image');
if (!$subCategoryImage) {
$subCategoryImage = $block->getViewFileUrl('Magento_Catalog::images/product/placeholder/image.jpg');
} else {
$subCategoryImage = $block->getMediaUrl() . $subCategoryImage;
}
?>
$subCategoryImage = $subcateg->getData('weltpixel_sc_image');
if (!$subCategoryImage) {
$subCategoryImage = $block->getViewFileUrl('Magento_Catalog::images/product/placeholder/image.jpg');
} else {
$subCategoryImage = $block->getMediaUrl() . $subCategoryImage;
}
?>
Can you confirm and replicate this issue? Is this a bug or something I've done wrong in my installation?
Cheers, Sas
Please sign in to leave a comment.
Comments
0 comments