Skip to content

Update Magento default product placeholder images within theme files

I’m trying to override the default Magento logo product placeholder images within my theme, however, the results are inconsistent. I added 4 image files in the following location app/design/frontend/[VENDOR]/[THEME]/Magento_Catalog/web/images/product/placeholder/ image.jpg small_image.jpg swatch_image.jpg thumbnail.jpg Then I ran the following just to… Read More »Update Magento default product placeholder images within theme files

Knockout template : how to provide function parameter/s for looped object, also function call ‘is not defined’

I am trying to edit an existing payment method module template: This is a looped object option (which is information about the current loop iteration payment method). The original template loop: <ul class=”types”> <!– ko foreach: { data: JSON.parse(getPaymentTypesList()), as:… Read More »Knockout template : how to provide function parameter/s for looped object, also function call ‘is not defined’

Magento 2: Controller Invalid return type for Account Controller

Just wrote the following controller: namespace MySiteMyCustomModuleControllerDashboard; use MagentoCustomerControllerAccountInterface; use MagentoFrameworkAppActionHttpGetActionInterface as HttpGetActionInterface; use MagentoFrameworkViewResultPageFactory; class Index implements AccountInterface, HttpGetActionInterface { /** * @var PageFactory */ protected $resultPageFactory; /** * @param PageFactory $resultPageFactory */ public function __construct( PageFactory $resultPageFactory )… Read More »Magento 2: Controller Invalid return type for Account Controller