This is the code snippet responsible for adding new attribute public function createAllowRequestSampleCustomerAttribute($setup) { $code = 'allow_request_sample'; /** @var EavSetup $eavSetup */ $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); $eavSetup->addAttribute( Customer::ENTITY, 'allow_request_sample', [ 'type' => 'int', 'label' => 'Allow request sample', 'input' => 'select', 'source' => Boolean::class, 'required' => false, 'visible' => […]
Magento2
We’ve recently updated a customer Magento2 to 2.4.5-p5, now the cart page added a confirmation popup when clicking the empty cart button: Magento_Checkout/js/shopping-cart.js _confirmClearCart: function () { var self = this; confirm({ content: $.mage.__('Are you sure you want to remove all items from your shopping cart?'), actions: { /** * […]
My site is with Magento 2.4.4 multilingual and I use the ElasticSuite search module. Every time I go to edit a category for each store view and try to search for that edited category in the elasticsuite search bar I find that the link to the category is wrong and […]
I’m currently working as an Adobe Commerce Cloud developer and have recently transitioned to MacOS. I’ve successfully set up my Adobe Commerce project in Docker using Warden and I’m using Vs Code as my primary IDE for development. Now, I’m facing challenges in adding PHP Xdebug for my local setup. […]
I am fetching data and populating radioset options for an admin form. I can populate the options but I want to have them checked based on the fetched data. I tried putting ‘checked’ attribute but was not successful. Can someone please guide me in the right direction? <?php namespace HaywardSchedulePageBuilderUiComponentForm; […]
Problem 1 – Root composer.json requires stripe/stripe-payments ^3.3.0, found stripe/stripe-payments[3.3.0] in the lock file but not in remote repositories, make sure you avoid updating this package to keep the one from the lock file. Problem 2 – Root composer.json requires weltpixel/module-google-tag-manager ^1.10.18, found weltpixel/module-google-tag-manager[1.10.18] in the lock file but not […]
I’m using graphql to get data to my PWA frontend project.Following is my schema.graphqls type Query { comparelist: [ComparelistOutput] @resolver(class: "NeoSolax\CompareList\Model\Resolver\ComparelistItemResolver") @doc(description: "An array of items in the customer's compare list") } type ComparelistOutput { id:String sku:String url_key:String } ComparelistItemResolver.php class ComparelistItemResolver implements ResolverInterface { use NeoSolaxCompareListHelpergetCompareList; public function __construct( […]
I’m facing a peculiar issue with my Magento 2.3.6 application where products with customizable options are being removed from Elasticsearch after indexing. I’ve tried various customizable option types such as field, dropdown, and checkboxes, but the problem persists. Upon debugging, I found that when I use var_dump($product->hasOptions()), it returns null. […]
magento2.4.5 CE Before generating the order, I need to call the erp third-party system to verify whether the inventory is satisfied and whether the product is removed from the shelves. How should I operate