Plugin guide - On customers IP country
Buy Now🛠️ Installation & Configuration
To ensure proper functionality, this plugin requires the NopAdvance.Core plugin to be installed first. Please follow the instructions on how to install a plugin as you proceed with the setup.
Once the plugin has been installed, you will see the plugin menu under NopAdvance > Discount rules > On customers IP country in your nopCommerce admin menu, similar as displayed in the image below.
Selecting the Configure menu item will bring up the configuration page. On the configuration page there will be two fields, as shown in the image below.
- Enabled: When checked, this enables the plugin functionality to determine and store the customer's country based on their IP address.
- Cookie Expires (in hours): This setting controls the duration (in hours) for which the country data (fetched from the customer’s IP address) is stored in the customer's browser cookie. (eg. If the value is 24, the IP-based country information will be remembered for 24 hours. After that period, the plugin will re-fetch the customer's country again based on their IP address.)
How to Use
Upon successful installation, you will find a new Discount requirement type under Admin Area > Promotions > Discounts, named as Discount on customers IP country
This discount requirement can be used with any other discount type.
To use this discount rule, the discount requirement type should be configured as on customer IP country and need to select a country in which you want this discount rule to be applied as displayed in the image below.
Once saved, the discount requirement will be added to the discount.
That's all you need to do in order to use this discount requirement in your nopCommerce store.