Questions tagged [enable-disable]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

How to disable a knockout generated dropdown option by default

I am trying to disable a certain option of select generated from knockout on the checkout page. I tried what was mentioned on the knockout documentation i.e. to call optionsAfterRender. But this gives ...
user avatar
  • 107
0 votes
1 answer
50 views

Is there any way to get enabled and disabled simple product of configurable product in Magenoto 2?

Is there any way to get enabled and disabled simple product of configurable product in Magento 2. I need to get all id of enable and disabled product by using SQL query or object manager approach. Can ...
user avatar
  • 526
2 votes
2 answers
41 views

How can I Disable "Add To Cart Button" in Magento 2?

Any help would be greatly appreciated.
user avatar
0 votes
0 answers
20 views

How to display only enable products on search page or auto suggest in magento 2 using search-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->...
user avatar
0 votes
1 answer
60 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 ...
user avatar
0 votes
1 answer
24 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: ...
user avatar
0 votes
1 answer
75 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 ...
user avatar
0 votes
2 answers
254 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="...
user avatar
1 vote
0 answers
31 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?
user avatar
0 votes
1 answer
71 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
user avatar
  • 700
0 votes
1 answer
36 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?
user avatar
  • 176
2 votes
0 answers
243 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 ...
user avatar
0 votes
0 answers
18 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, ...
user avatar
  • 169
1 vote
0 answers
108 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 ...
user avatar
0 votes
3 answers
160 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 ...
user avatar
3 votes
1 answer
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 ...
user avatar
  • 413
5 votes
1 answer
2k 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 ...
user avatar
  • 87
4 votes
3 answers
892 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.
user avatar
  • 410
0 votes
1 answer
96 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 ...
user avatar
  • 1