3

Please follow below InstallData script to add customer attribute and display in customer admin form. It is working for me. <?php namespace {VendorName}\{ModuleName}\Setup; use Magento\Eav\Setup\EavSetup; use Magento\Eav\Setup\EavSetupFactory; use Magento\Customer\Setup\CustomerSetupFactory; use Magento\Customer\Model\Customer; use Magento\Eav\Model\...


3

Below is the code which useful to get store credit.. <?php use \Magento\Framework\App\Bootstrap; require __DIR__ . '/app/bootstrap.php'; $bootstrap = Bootstrap::create(BP, $_SERVER); $objectManager = $bootstrap->getObjectManager(); $instance = \Magento\Framework\App\ObjectManager::getInstance(); $state = $objectManager->get('\...


2

Open desired category edit form in admin, update the Layout Update XML value inside the Design section this way: <body> <referenceContainer name="content"> <referenceBlock name="product_list_toolbar"> <action method="setData"> <argument name="key" xsi:type="string">_current_grid_mode</...


2

If your ERP stock update happens often enough, and your website isn't creating large amounts of sales in the gap between updates, you can just disable the reservation step EITHER by making the Magento orders "shipped" at the point the orders get passed on to the ERP (there are modules with "auto ship on invoicing" for example)(that doesnt disable the step ...


2

The \Magento\Customer\Model\ResourceModel\Customer\Collection class has no method setWebsiteId. If you want to filter customer collection by website id you must set website_id as a filter field: /** @var \Magento\Customer\Model\ResourceModel\Customer\Collection $customerCollection */ $customer = $customerCollection->addFilter('website_id', $websiteId) ...


1

This could be the max_input_vars problem but without seeing more of your code I am not sure. Set max_input_vars to 10000 in php.ini and restart your web server (or php-fpm) and then give it another go.


1

Please Refer this link you will see the difference https://docs.magento.com/m2/ee/user_guide/marketing/rewards-loyalty.html


1

You can use jQuery to do this, just check for change on the text field and update the main image with the image you get. require(['jQuery'], function($){ $('#textFiledId').on('change', function(){ let src = 'img.jpg'; // get image using ajax //set src to main image }); }


1

You have to assign this field at to adminhtml customer form Have to assign the Attribute set for this attribute So, create a data patch and add below code.: Code <?php namespace {VendorName}\{ModuleName}\Setup\Patch\Data; use Magento\Framework\Setup\Patch\DataPatchInterface; use Magento\Framework\Setup\Patch\PatchInterface; class Abc implements ...


1

Please Replace your oct_login_index.xml with this code <?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> <referenceContainer name="content"> <block class="oct\oct\...


1

You need to debug this to get where the issue is . Open in your local envoirment vendor/magento/module-backend/App/Action/Plugin/Authentication.php vendor/magento/module-backend/App/AbstractAction.php and add this : $backtrace = []; $debugBackTrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); foreach ($debugBackTrace as $item) { $backtrace[] = @$...


Only top voted, non community-wiki answers of a minimum length are eligible