Questions tagged [restriction]

The tag has no usage guidance.

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

Allow special product only to be purchased alone, not mixed with other products

My Magento 2 store has special products, which shouldn't be bought mixed with other products. How would I achieve the following: Don't allow other products in cart if special product in cart already. ...
  • 111
0 votes
1 answer
9 views

Coupon code definition and usage restriction

Please Suggest a method to restrict the coupon code for 1 time only, even if the coupon codes are bulk generated using the Manage Coupon Codes functionality. All individual codes needed to be ...
0 votes
1 answer
58 views

Magento2: url redirection in controller_action_predispatch observer with setting post parameters

I am working on cms page restriction for specific customer group.I am using controller_action_predispatch event observer to check whether the current page is set for restriction and the current ...
0 votes
0 answers
51 views

Store Website specific, access to Rest API user - Restrict API user for specific Website/Store

Basically, we have multiwebsite in our magento 2 & would like to setup in a way that a rest api user should have access to store/website specific data such as order, products, etc ie. Under ...
0 votes
1 answer
217 views

Magento 2.3 - Disable Payment Method for Certain Customer Groups by using Observer

Source : https://www.magedelight.com/resources/how-to-disable-payment-method-for-certain-customer-groups-in-magento-2/ Stright opposite i just enable certain customer group, app/code/Gta/...
  • 105
1 vote
0 answers
77 views

how to restrict order place if virtual product in cart with another product type magento 2?

I want to restrict order place on the checkout page if the virtual product in cart with another product type like Simple, Configurable, etc. Users can place the order when either virtual product in ...
  • 1,965
1 vote
1 answer
490 views

Magento2 restrict cc number in the form fields

I would like to restrict CC number (Ex: 4111111111111111) in the customer form fields in the magento2 frontend. Could you please advise me on how to do the step by step in Magento2. Expected Results: ...
2 votes
2 answers
2k views

How to create ACL for customer user in magento 2?

I have a customer with custom attribute as merchant. I want to let that customer to see only my custom module features. How can I restrict a user to some custom features ? Edit: Actually I have ...
  • 1,561
0 votes
0 answers
28 views

Magento 1 : Is it possible restrict admin user view only selected store details by using observer or anything?

How can i restrict admin user view only selected store details by using observer or anything?
  • 105
1 vote
1 answer
436 views

Magento 2 - How to create a module that adds a flag to the product and restricts adding it to the cart before logging in?

I'm new to magento 2 and would like to know if it is possible to make a module that generates flags on products with purchase restriction? For example, the product can only be added to the cart when ...
7 votes
2 answers
307 views

Magento Custom Module for add-to-cart Not Working - Observer Triggered

Created module like No other products add to cart if restricted product available in cart and vice versa. My Module : app/etc/modules/Brst_Test.xml <?xml version="1.0"?> <config> &...
  • 105
1 vote
1 answer
184 views

How to add condition in add-to-cart button function? Magento 1.9

How to Add PHP script in add-to-cart function like if other products are trying to add add-to-cart, supposed selected id based products[restricted products] already available in add-to-cart here ...
  • 105
1 vote
0 answers
72 views

How to do selected single product should be purchase alone?

I have one restricted product, here how to do selected single product should be purchased alone? No other products are eligible to add add-to-cart if this product available in the add-to-cart, same if ...
  • 105
0 votes
0 answers
256 views

Restrict access to Customer API Magento 2

My website is getting 300+ spam users for a day, On checking it seems to be from Customer API which Magento provides. How can I stop this users, Is there any way that I can restrict the customer ...
  • 434
0 votes
0 answers
13 views

Restrict buying of only the related product

I'm using Magento 2.3. I need to have the feature, where I've a two products A & B. Now, a customer can buy product A and can buy product B only with product A. Product B cannot be sold ...
2 votes
1 answer
533 views

How to insert specific invoice items in sales_invoice_item Table?

Actually, I created a multi-vendor site. I did most of the things but now am stuck in invoice creation. I filter the invoice items in the New Invoice page shown in the screenshot In this order, ...
  • 1,535