Skip to content

magento man

Changing Magento 2 Page Builder Images to use and srcset

I am trying to change the magento2 page builder image to include picture and source set tag. I made a module app/code/[Vendor]/PageBuilder/view/adminhtml/web/template/content-type/image/full-width/master.html I want to changed this code: <figure attr=”data.main.attributes” ko-style=”Object.assign({}, data.main.style())” css=”data.main.css”> <a if=”data.link.attributes().href” attr=”data.link.attributes” ko-style=”data.link.style” css=”data.link.css”> <img attr=”data.desktop_image.attributes”… Read More »Changing Magento 2 Page Builder Images to use and srcset

GraphQL Error in Magento 2.4.1: Cannot query field “uid” on type “ConfigurableProductOptionsValues”

I’m having trouble getting the uid for my Configurable product options via GraphQL. Testing with this simplified query: { products(filter: { url_key: { eq: “test-product” } }) { items { sku … on ConfigurableProduct { configurable_options { attribute_code values {… Read More »GraphQL Error in Magento 2.4.1: Cannot query field “uid” on type “ConfigurableProductOptionsValues”

Possible reasons for occasional incomplete execution of javascript from a custom odule

I have developed a custom module for magento 2.4.6, which loads 3 javascript files through requirejs config. var config = { map: { “*”: { ‘Magento_Checkout/template/billing-address/details.html’: ‘Iwdata_AddressExt128e/web/template/billing-address/details.html’ } }, paths: { ‘leaflet’: ‘Iwdata_AddressExt128e/js/leaflet’, ‘custom’: ‘Iwdata_AddressExt128e/js/custom’, ‘Iwdatacustom_customer’: ‘Iwdata_AddressExt128e/js/Iwdatacustom_customer’ }, shim: {… Read More »Possible reasons for occasional incomplete execution of javascript from a custom odule

How to parse or convert array to Magento classes in custom renderer webapi

I’m trying to implement a Renderer for the Webapp, an addition to the existing ‘application/json’ and ‘application/xml’ renderers. Implementation of the RendererInterface: class CustomRender implements MagentoFrameworkWebapiRestResponseRendererInterface { /** * Render the data * * @param object|array|int|string|bool|float|null $data * @return string… Read More »How to parse or convert array to Magento classes in custom renderer webapi