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
$subCategoryImage = $subcateg->getData('weltpixel_sc_image');
if (!$subCategoryImage) {
$subCategoryImage = $block->getViewFileUrl('Magento_Catalog::images/product/placeholder/image.jpg');
} else {
$subCategoryImage = $block->getMediaUrl() . $subCategoryImage;
}
?>
-
Official comment
To display Subcategories of a certain Category as images, head into Admin -> Catalog -> Categories -> Choose your Category -> WeltPixel Options
• Category Layout - Choose between Default or Subcategories with Images.
• Number of Columns - Choose the number of columns you want displayed.
• Subcategory title position - Choose the position in which the Subcategory's title is displayed.
To configure the images displayed for each Subcategory, head into the Subcategory configuration -> WeltPixel Options -> Subcategory Image and upload your image.Comment actions
Please sign in to leave a comment.
Comments
2 comments