Questions tagged [restriction]
The restriction tag has no usage guidance.
14
questions
0
votes
1
answer
25
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 ...
1
vote
1
answer
192
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
1
answer
507
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
0
answers
169
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
1
answer
600
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 ...
0
votes
0
answers
31
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
1
answer
605
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
336
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
1
answer
196
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
0
answers
85
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 ...
1
vote
0
answers
346
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
0
answers
15
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
723
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, ...