Category Image Not Showing on frontend in magento2Magento2 RC - Frontend theme not showingMagento 2: Product Import Error - Product Type is invalid or not supported. Duplicates found in column names [SOLVED]magento2 not showing changes in frontendMagento2 custom filter not showing in frontendProduct Category Thumbnail Image Not WorkingCategory not showing on frontendsome category image not showing magento 2Magento 2.3: category image gets overwrittenImport a csv file in Bo magento 2How to get category image based on category ID?
*CoS Spolier* How is it possible for Mordenkainen to be alive during the Curse of Strahd adventure?
Is it OK to bring delicacies from hometown as tokens of gratitude for an out-of-town interview?
Please help me identify this plane
Why use water tanks from a retired Space Shuttle?
Opposite of "Squeaky wheel gets the grease"
Why does my electric oven present the option of 40A and 50A breakers?
How to provide realism without making readers think grimdark
Incremental Ranges!
Pros and cons of writing a book review?
California: "For quality assurance, this phone call is being recorded"
Have powerful mythological heroes ever run away or been deeply afraid?
Computing the differentials in the Adams spectral sequence
Comma Code - Ch. 4 Automate the Boring Stuff
How can Iron Man's suit withstand this?
Imperfective Aspect in German "not since" constructions
How can I make 20-200 ohm variable resistor look like a 20-240 ohm resistor?
Is the capacitor drawn or wired wrongly?
How to detach yourself from a character you're going to kill?
Is there any Biblical Basis for 400 years of silence between Old and New Testament?
Sucuri detects malware on wordpress but I can't find the malicious code
Is it legal in the UK for politicians to lie to the public for political gain?
What happens if you do emergency landing on a US base in middle of the ocean?
How to decline physical affection from a child whose parents are pressuring them?
Is American Express widely accepted in France?
Category Image Not Showing on frontend in magento2
Magento2 RC - Frontend theme not showingMagento 2: Product Import Error - Product Type is invalid or not supported. Duplicates found in column names [SOLVED]magento2 not showing changes in frontendMagento2 custom filter not showing in frontendProduct Category Thumbnail Image Not WorkingCategory not showing on frontendsome category image not showing magento 2Magento 2.3: category image gets overwrittenImport a csv file in Bo magento 2How to get category image based on category ID?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I Am Using Below Code
When i Debug by Zend_Debug::dump($sub_category->getData())
Then image showing 'null' value.
Image uploaded in adminarray(30)
["entity_id"] => string(2) "88"
["attribute_set_id"] => string(2) "11"
["parent_id"] => string(2) "39"
["created_at"] => string(19) "2018-10-31 13:26:40"
["updated_at"] => string(19) "2019-05-25 06:42:17"
["path"] => string(9) "1/2/39/88"
["position"] => string(1) "1"
["level"] => string(1) "3"
["children_count"] => string(1) "4"
["description"] => NULL
["custom_layout_update"] => NULL
["is_active"] => string(1) "1"
["landing_page"] => NULL
["is_anchor"] => string(1) "1"
["include_in_menu"] => string(1) "1"
["custom_use_parent_settings"] => string(1) "0"
["custom_apply_to_products"] => string(1) "0"
["name"] => string(6) "Aprons"
["url_key"] => string(6) "aprons"
["image"] => NULL
["meta_title"] => string(20) "Aprons for All Needs"
["display_mode"] => string(17) "PRODUCTS_AND_PAGE"
["custom_design"] => NULL
["page_layout"] => NULL
["thumbnail"] => string(10) "subcat2.jpg"
["custom_design_from"] => NULL
["custom_design_to"] => NULL
<?php
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$category = $objectManager->get('MagentoFrameworkRegistry')->registry('current_category');
$subcats = $category->getChildrenCategories();
?>
<?php foreach ($subcats as $subcat)
$sub_category = $objectManager->create('MagentoCatalogModelCategory')->load($subcat->getId());
?>
<img src="<?php echo $sub_category->getImageUrl() ?>">
<?php ?>
magento2 category-image
add a comment |
I Am Using Below Code
When i Debug by Zend_Debug::dump($sub_category->getData())
Then image showing 'null' value.
Image uploaded in adminarray(30)
["entity_id"] => string(2) "88"
["attribute_set_id"] => string(2) "11"
["parent_id"] => string(2) "39"
["created_at"] => string(19) "2018-10-31 13:26:40"
["updated_at"] => string(19) "2019-05-25 06:42:17"
["path"] => string(9) "1/2/39/88"
["position"] => string(1) "1"
["level"] => string(1) "3"
["children_count"] => string(1) "4"
["description"] => NULL
["custom_layout_update"] => NULL
["is_active"] => string(1) "1"
["landing_page"] => NULL
["is_anchor"] => string(1) "1"
["include_in_menu"] => string(1) "1"
["custom_use_parent_settings"] => string(1) "0"
["custom_apply_to_products"] => string(1) "0"
["name"] => string(6) "Aprons"
["url_key"] => string(6) "aprons"
["image"] => NULL
["meta_title"] => string(20) "Aprons for All Needs"
["display_mode"] => string(17) "PRODUCTS_AND_PAGE"
["custom_design"] => NULL
["page_layout"] => NULL
["thumbnail"] => string(10) "subcat2.jpg"
["custom_design_from"] => NULL
["custom_design_to"] => NULL
<?php
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$category = $objectManager->get('MagentoFrameworkRegistry')->registry('current_category');
$subcats = $category->getChildrenCategories();
?>
<?php foreach ($subcats as $subcat)
$sub_category = $objectManager->create('MagentoCatalogModelCategory')->load($subcat->getId());
?>
<img src="<?php echo $sub_category->getImageUrl() ?>">
<?php ?>
magento2 category-image
$sub_category->getImageUrl() Showing "UNKNOWN" in img src
– Jugal Kishor
May 25 at 6:51
Do other values come through such as$sub_category->getName()
– Dominic Xigen
May 25 at 21:36
add a comment |
I Am Using Below Code
When i Debug by Zend_Debug::dump($sub_category->getData())
Then image showing 'null' value.
Image uploaded in adminarray(30)
["entity_id"] => string(2) "88"
["attribute_set_id"] => string(2) "11"
["parent_id"] => string(2) "39"
["created_at"] => string(19) "2018-10-31 13:26:40"
["updated_at"] => string(19) "2019-05-25 06:42:17"
["path"] => string(9) "1/2/39/88"
["position"] => string(1) "1"
["level"] => string(1) "3"
["children_count"] => string(1) "4"
["description"] => NULL
["custom_layout_update"] => NULL
["is_active"] => string(1) "1"
["landing_page"] => NULL
["is_anchor"] => string(1) "1"
["include_in_menu"] => string(1) "1"
["custom_use_parent_settings"] => string(1) "0"
["custom_apply_to_products"] => string(1) "0"
["name"] => string(6) "Aprons"
["url_key"] => string(6) "aprons"
["image"] => NULL
["meta_title"] => string(20) "Aprons for All Needs"
["display_mode"] => string(17) "PRODUCTS_AND_PAGE"
["custom_design"] => NULL
["page_layout"] => NULL
["thumbnail"] => string(10) "subcat2.jpg"
["custom_design_from"] => NULL
["custom_design_to"] => NULL
<?php
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$category = $objectManager->get('MagentoFrameworkRegistry')->registry('current_category');
$subcats = $category->getChildrenCategories();
?>
<?php foreach ($subcats as $subcat)
$sub_category = $objectManager->create('MagentoCatalogModelCategory')->load($subcat->getId());
?>
<img src="<?php echo $sub_category->getImageUrl() ?>">
<?php ?>
magento2 category-image
I Am Using Below Code
When i Debug by Zend_Debug::dump($sub_category->getData())
Then image showing 'null' value.
Image uploaded in adminarray(30)
["entity_id"] => string(2) "88"
["attribute_set_id"] => string(2) "11"
["parent_id"] => string(2) "39"
["created_at"] => string(19) "2018-10-31 13:26:40"
["updated_at"] => string(19) "2019-05-25 06:42:17"
["path"] => string(9) "1/2/39/88"
["position"] => string(1) "1"
["level"] => string(1) "3"
["children_count"] => string(1) "4"
["description"] => NULL
["custom_layout_update"] => NULL
["is_active"] => string(1) "1"
["landing_page"] => NULL
["is_anchor"] => string(1) "1"
["include_in_menu"] => string(1) "1"
["custom_use_parent_settings"] => string(1) "0"
["custom_apply_to_products"] => string(1) "0"
["name"] => string(6) "Aprons"
["url_key"] => string(6) "aprons"
["image"] => NULL
["meta_title"] => string(20) "Aprons for All Needs"
["display_mode"] => string(17) "PRODUCTS_AND_PAGE"
["custom_design"] => NULL
["page_layout"] => NULL
["thumbnail"] => string(10) "subcat2.jpg"
["custom_design_from"] => NULL
["custom_design_to"] => NULL
<?php
$objectManager = MagentoFrameworkAppObjectManager::getInstance();
$category = $objectManager->get('MagentoFrameworkRegistry')->registry('current_category');
$subcats = $category->getChildrenCategories();
?>
<?php foreach ($subcats as $subcat)
$sub_category = $objectManager->create('MagentoCatalogModelCategory')->load($subcat->getId());
?>
<img src="<?php echo $sub_category->getImageUrl() ?>">
<?php ?>
magento2 category-image
magento2 category-image
edited May 25 at 8:41
Rakesh Donga
2,744318
2,744318
asked May 25 at 6:51
Jugal KishorJugal Kishor
585114
585114
$sub_category->getImageUrl() Showing "UNKNOWN" in img src
– Jugal Kishor
May 25 at 6:51
Do other values come through such as$sub_category->getName()
– Dominic Xigen
May 25 at 21:36
add a comment |
$sub_category->getImageUrl() Showing "UNKNOWN" in img src
– Jugal Kishor
May 25 at 6:51
Do other values come through such as$sub_category->getName()
– Dominic Xigen
May 25 at 21:36
$sub_category->getImageUrl() Showing "UNKNOWN" in img src
– Jugal Kishor
May 25 at 6:51
$sub_category->getImageUrl() Showing "UNKNOWN" in img src
– Jugal Kishor
May 25 at 6:51
Do other values come through such as
$sub_category->getName()
– Dominic Xigen
May 25 at 21:36
Do other values come through such as
$sub_category->getName()
– Dominic Xigen
May 25 at 21:36
add a comment |
1 Answer
1
active
oldest
votes
image
is store view scope attribute means you can set the image store view wise.
Change your scope to your Store view from All Store Views and check this Image
field value.
and it image is not exits then it means your code giving the right value. So, in that case, you need to upload image for this store view.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f276075%2fcategory-image-not-showing-on-frontend-in-magento2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
image
is store view scope attribute means you can set the image store view wise.
Change your scope to your Store view from All Store Views and check this Image
field value.
and it image is not exits then it means your code giving the right value. So, in that case, you need to upload image for this store view.
add a comment |
image
is store view scope attribute means you can set the image store view wise.
Change your scope to your Store view from All Store Views and check this Image
field value.
and it image is not exits then it means your code giving the right value. So, in that case, you need to upload image for this store view.
add a comment |
image
is store view scope attribute means you can set the image store view wise.
Change your scope to your Store view from All Store Views and check this Image
field value.
and it image is not exits then it means your code giving the right value. So, in that case, you need to upload image for this store view.
image
is store view scope attribute means you can set the image store view wise.
Change your scope to your Store view from All Store Views and check this Image
field value.
and it image is not exits then it means your code giving the right value. So, in that case, you need to upload image for this store view.
answered May 27 at 6:58
Amit Bera♦Amit Bera
60.6k1682181
60.6k1682181
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f276075%2fcategory-image-not-showing-on-frontend-in-magento2%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$sub_category->getImageUrl() Showing "UNKNOWN" in img src
– Jugal Kishor
May 25 at 6:51
Do other values come through such as
$sub_category->getName()
– Dominic Xigen
May 25 at 21:36