Skip to content

magento man

Magento 2: Create order programmatically using carrier containing underscore (PostNL)

I am unable to create an order programmatically with the carrier PostNL. The carrier code is “tig_postnl” and the method “regular”. Normally I set the shipping address simply using: $shippingAddress = $quote->getShippingAddress(); $shippingAddress->setCollectShippingRates(true) ->collectShippingRates() ->setShippingMethod(‘freeshipping_freeshipping’); (for full code please see… Read More »Magento 2: Create order programmatically using carrier containing underscore (PostNL)

Modify Product Title Display

I want to prepend a text before the product name is displayed. I’ve created a file product-title.phtml in my local template and referenced this in catalog_product_view.xml like so: <referenceBlock name=”page.main.title”> <arguments> <argument name=”template” xsi:type=”string”>Local/argento-stripes-custom/Magento_Catalog::product/view/product-title.phtml</argument> </arguments> </referenceBlock> Unfortunately it’s still rendering… Read More »Modify Product Title Display