After reading this thread that is sort of what we need to achieve (and does it with a custom attribute), it’s not quite what I need and so I thought it would be good to ask the experts here. We have a table, let’s call it “customer_segment” with the following […]
Magento2
I want to display all payment methods in multi select field on customer edit page (Admin From). How it is possibe ? Darshit/ShipByCustomer/view/adminhtml/layout/customer_index_edit.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceBlock name="customer_form"> <block class="DarshitShipByCustomerBlockAdminhtmlCustomerEditTabView" name="disable_payment_method"> <arguments> <argument name="sort_order" xsi:type="number">100</argument> </arguments> </block> </referenceBlock> </body> </page> Darshit/ShipByCustomer/Block/Adminhtml/CustomerEdit/Tab/View.php <?php namespace DarshitShipByCustomerBlockAdminhtmlCustomerEditTab; use MagentoBackendBlockTemplate; use […]
I am a bigginer in magento 2 I came across with this error when hit sudo php bin/magento setup:di:compile Looks like the issue is inside the ClassLoader.php file so i remove the classLoader.php and past the code from this link https://github.com/composer/composer/blob/main/src/Composer/Autoload/ClassLoader.php into ClassLoader.php file which should work after this command […]
I installed a magento extension via composer require I can see the files in /vendor but when I click on the extension from the admin panel it gives me an Exception that the Class does not exist as the link to the extension is set to /app/code. If I copy […]
Thank you for taking time to read this. I have been trying to upgrade Magento 2.4.3 to 2.4.5 but getting these errors for example Root composer.json requires extprovider/extname ^1.14, found extprovider/extname[1.14.1] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the […]
my task sounds like : "Using a data patch to add the block into cms page" i have data patch cms block class CmcBlock implements DataPatchInterface { const CMC_BLOCK = 'first_cmc_block'; private ModuleDataSetupInterface $moduleDataSetup; private BlockFactory $block; public function __construct( ModuleDataSetupInterface $moduleDataSetup, BlockFactory $blockFactory, ) { $this->moduleDataSetup = $moduleDataSetup; $this->block […]
Perhaps there is a tutorial on how to add reward points? Please do not offer ready-made extensions, thank you!
Will this go wrong, i am developing a site in a live server (but not yet with DNS pointed at it, so its NOT SSL) I am accesing to the site directly to pub like this http://123.123.123.123/~domain/pub/ with apache mod_userdir after modifing the core config data table with that too. […]
I want to add a page by the controller, I have set the routes and controller files according to the guideline. However, it still cant show the page. app/code/Mymodule/OrderController/Controller/Page/View.php <?php namespace MymoduleOrderControllerControllerPage; use MagentoSalesModelResourceModelOrderCollectionFactory; use MagentoFrameworkControllerResultJsonFactory; use MagentoFrameworkAppActionContext; class View extends MagentoFrameworkAppActionAction { protected $jsonFactory; protected $collectionFactory; public function __construct( […]