Skip to content

Magento 2 checkout, I need to display or hide a shipping method depending on if a coupon code was entered and is valid. How can I do this?

I have a price rule attached to the flat rate shipping method as an option, and I want to intercept when the coupon is added, so that I can hide this flat rate method unless the coupon code matches the… Read More »Magento 2 checkout, I need to display or hide a shipping method depending on if a coupon code was entered and is valid. How can I do this?

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’