mltest/module-developertest

ML DeveloperTest Extension for allow the admin to block the product from being ordered from one or more countries

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:magento2-module

2.0.0 2023-10-31 15:38 UTC

This package is auto-updated.

Last update: 2024-04-30 00:56:57 UTC


README

This module enables the admin to restrict products at a product level, It is allow the admin to BLOCK the product from being ordered from one or more countries. Used IPinfo PHP Client Library to retrieve the country from the visitors IP to obtain the country for the current customer.

Download & Install

You can download from the following resouces:

Install via composer (recommend)

composer require mltest/module-developertest:dev-master

composer require ipinfo/ipinfo:2.2.0

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy -f

User Guide

How to config

Login to the Magento admin, choose Stores > Settings > Configuration > ML DevelopmentTest > Block Product.

1. Block Product Configurations

  • In the Enable field, select “Yes” to enable this extension.
  • In the Error Message field, Enter the error message, It will show when customer will not eligible to buy.

2.IPinfo Configurations

  • In Access Token, You'll need an IPinfo API access token, which you can get by signing up for a free account at https://ipinfo.io/signup.

How to Block Product At a product level

  • Login to the Magento admin, choose Catalog > Products. From product listing select the product and edit it, Then check "Block product by countries" attribute and select countries.

Note

This extension is tested on magento version 2.4.6-p3

Review recorded of testing this extension in magento version 2.4.6-p3 : Link