Questions tagged [restriction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
32 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/...
1
vote
0answers
20 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
vote
1answer
116 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: ...
1
vote
1answer
687 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 ...
0
votes
0answers
13 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?
1
vote
1answer
150 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
2answers
275 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> &...
1
vote
1answer
94 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 ...
1
vote
0answers
70 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 ...
0
votes
0answers
118 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 ...
0
votes
0answers
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
1answer
192 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, ...