Skip to content
Rakesh Jesadiya

Rakesh Jesadiya

3x Magento Master

  • Magento 2
    • PHPUnit
  • GraphQl
  • Git
  • Javascript
  • Magento 2 Certification
  • Contact Us

Tag: Placeholder

Posted on November 18, 2018May 23, 2023

Get Placeholder image url in Magento 2.

Native Magento 2 has four types of placeholder images called, small_image, image, thumbnail, and swatch_image.

Placeholder image URL is used when you want to display default images for a site.
Magento 2 gets a placeholder image URL using below simple code snippet. Continue reading “Get Placeholder image url in Magento 2.”

Share this:

  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to print (Opens in new window) Print

Recent Posts

  • Magento 2 How to fetch product row_id from product collection?
  • Magento Setup upgrade error for smile elasticsuite database table not found error.
  • How to Managing Guest Cart Billing address (V1/guest-carts/:cartId/billing-address) by REST API Magento 2?
  • How to get customer id from API header bearer token Magento 2?
  • How to use insertFromSelect query in database Magento 2 with best practice?
  • How to check is database table exists or not by Magento 2?
  • How to fix Magento custom patch throws an error while patch applied?
  • How product website relation are stored in catalog_product_website table Magento 2?
  • How to get store code by store cookie Magento 2?
  • How to fix TypeError: target.extend is not a function mixins in Magento 2?
Protected by Copyscape
  • © 2020 Rakesh Jesadiya. All Rights Reserved.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.I Agree.