Questions tagged [restriction]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 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
29 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
247 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
40 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
68 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
40 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
54 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, ...