Questions tagged [enable-disable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
7 views

How to display only enable products on search page or auto suggest in magento 2 using serach-criteria

Find the below code for your reference but it's showing both enable and disable products. I want to display only enable products. //Code for fetch products based on search term. $this->...
0
votes
1answer
41 views

enabling module error in vendor after installing with composer by CLI

I add a module with composer and then try to enable it by writing the command php bin/magento module:enable SR_UnicodeUrl but I get a long error in response that starts with this phrase Unknown ...
0
votes
1answer
19 views

How can Enable Product (a [website] scope property) can have different values in one specific store view vs All Store?

I have 1 website, 1 store and 2 store views (for English and Finnish languages.), If "Enable product" scope is website. Then how come it can have different values between these Scope: ...
0
votes
0answers
39 views

How to disable COD payment method based on product attribute?

I want to hide COD payment method based on the Product attribute. I tried payment_method_is_active event method to disable using observer like below. My observer file is here public function execute( ...
0
votes
1answer
40 views

ui component modifier

I'm using Modifier class to disable some ui components on admin screen. But when I implemented modifyMeta() method, some of the needed ui components not included in the metadata array (eg: gallery) So ...
0
votes
2answers
140 views

How to add Enable Disable functionality for a referenceBlock in Magento 2

I want to add Enable/disable functionality for a referenceBlock. <referenceBlock name="product_recommendations_pdp" remove="false" /> The referenceBlock can be remove="...
1
vote
0answers
28 views

disable button download [closed]

I have a module for download file, and have a button "Download", now I want when I click on "Download", button will disable and when finish button will enable. How can I do that?
0
votes
1answer
46 views

How to disallow my customer to not purchase any product from my site magento 2

For temporary purpose, i want none of my customer should place order on my site. They can browse on my website but cant place any order. How can i do that in magento 2
0
votes
1answer
32 views

How to disable the categories sidebar in the product detail page in Magento 2?

Is there an option in the admin area of Magento 2, to disable the sidebar on the left with the list of categories in the product detail page of the frontstore?
1
vote
0answers
162 views

Magento 2 : "My billing and shipping address are the same" checkbox remain unchecked

I have created a custom extension for product based cash on delivery. I have followed the below link for creating the extension. Disable payment method programmatically in Magento2 Everything works ...
0
votes
0answers
17 views

Products not appearing

So here is a strange thing: we uploaded a few thousand products but some products refused to show up in the front end. All products were enabled and had stock inventory. I reindexed a dozen times, ...
1
vote
0answers
65 views

Disable Magento Gift Card Extension

I want to disable (complecty remove everything that comes with this module, I mean options in My account, checkout, cart etc) but disabling it by command seems problematic beacuse of modules that ...
0
votes
3answers
117 views

Unable to change value in config.php

I have a Magento Cloud server. In which I need to disable a Module. From my local environment, I have changed the app/etc/config.php "My_Module" => 0. And committed the changes. But my changes not ...
3
votes
1answer
1k views

How to disable PayPal express payment method on one of the store

I got 2 variations of the store - EU and USA. I need to disable the PayPal Express method on the EU store, how can I do that? There no option to disable Payment on EU store: But avaliable on default ...
5
votes
1answer
1k views

Disable product attribute from admin edit in magento 2

I have create an attribute viewed_count, I will write a code to update it from observer. Now I don't want anyone to edit it from admin, So I want to make it disabled from admin edit. How can I ...
4
votes
3answers
654 views

How to add Enable/Disable extention functionality in admin side in custom extention magento 2.3

We want to create one custom extension which has functionality in admin side for Enable/Disable. Any one help me how to add this functionality in my custom extension.
0
votes
1answer
60 views

How to set a start and end time for Product Status

Am I able to set a start and end time for product status? I'm running an ecom store and would like to know if I can set a date & time for product to enable/disable. For example, if I am ...