on Magento backend admin can create a new order on behalf of the customer. Admin can also set a custom price for each item by clicking on the “custom price” checkbox right under the price. I’m trying to recreate the same feature for the cart quote instead of an order, […]
Magento
I’ve made this file: catalog_category_view.xml in the app/code/Namespace/Products/view/frontend/layout/ folder , with this content: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="category.products.list"> <arguments> <argument name="viewModel" xsi:type="object">NamespaceProductsViewModelListProductStock</argument> </arguments> </referenceBlock> </body> </page> In the list.phtml I have this: $viewModel = $block->getData('viewModel'); echo $viewModel->getTest(); and I am getting an error that it doesn’t […]
I have attached screenshot, I want to add default values in position, for example when I add product in category position should show 100. Thanks in advance
I am using Magento 2.3.6 and I am currently in the research phase to use something interchangeably with Varnish as a Full Page Cache. Due to the fact that we use the AWS architecture, we are considering the possibility of using Cloudfront for this purpose (Magento 2 <-> Cloudfront FPC) […]
Wednesday I began working on an interface for a local application to manage product categorization rather than the Magento console. The documentaiton instructs you to pack multiple request bodies into an array for the bulk request. The response contains a serialized_data key which is documented as: An array of serialized […]
Price is overwritten in the product detail page to 0.00 for non-English/United States locale options. I tried to find a solution to solve this problem but found nothing on the forum. There are several discussions but no real solution that works. It’s really annoying because I can’t move forward in […]
I have a UI form component, which contains a single child UI component that defines region, which in turn contains multiple form field components. When one of the form fields is updated by the user, I want to trigger some logic in the grandparent form component, this will require the […]
I’ve added a new field UI component to an existing form, using layout XML, but I’d like that new field to be visible only under certain conditions. In my module’s layout XML I can manually switch that field on or off using <item name="visible" xsi:type="boolean">true</item> In various core modules, I’ve […]
What’s your approach to upgrading Magento Community 2.1 to 2.4? Incremental approach (2.1 to 2.2 to 2.3 to 2.4) Direct upgrade to 2.4 As this involves infrastructural upgrades and module/package addition/upgrades, what’s your take on approach and why?