Back to Top

PrestaShop Marketplace Block Product {User Guide}

Updated 22 May 2024

PrestaShop Marketplace Block Product offers sellers of the marketplace to block their product by customer IP or country.

In order to determine the country of the customers, this module reads the shipping address of the customer.

In case, if a customer is not logged in, then a customer will be able to add the product to the cart. However, the cart gets empty as soon as the customer logs in.

The cart becomes empty only if a customer country is in the block list.

This module will restrict the customer from buying/viewing the product if a product is not available on their IP address or country.

Searching for an experienced
Prestashop Company ?
Find out More

Features of the PrestaShop Marketplace Block Product module

  • Block products either on the basis of user’s country or IP address.
  • Admin can enable/disable the display of product page.
  • Admin can configure the message which will display on product page when the product is not available in the country.
  • Seller can select single or multiple countries to block the product.
  • Seller can specify the single or multiple IP addresses to block the product.
  • Admin can also block seller products for single/multiple countries or IP address.
  • Customer will see an alert message on the product page.
  • Customer will be able to know the availability of the product in their country.
  • The module is multi-shop compatible.

Note: PrestaShop Marketplace Block Product module is compatible with PrestaShop 8.x.x

How to install the PrestaShop Marketplace Block Product module

In order to install the module, you need to install the PrestaShop Advanced Multi-Vendor Marketplace module first.

After installing the marketplace module, you can now proceed to install the PrestaShop Marketplace Block Product module.

  • Firstly, go to the module manager in the back office and click on ‘upload a module’.
  • After that, drag and drop the module file or select the file from the system.
  • In this way, the module installation will be successful.
Click to Install Prestashop Marketplace Block Product module
Drop or upload the file of Prestashop Marketplace Block Product module from the system
Prestashop Marketplace Block Product module installed successfully

How to configure the PrestaShop Marketplace Block Product module

After successful installation of the module, an admin can also configure the module.

Module configuration

Note:

On selecting the IP address in “Get country” field, you will see a message. As per the new modification, now you need to download the geolocation data file from the MaxMind website.

In order to download the geolocation data file, you need to register on the MaxMind website first. After creating the account, you will be able to download the “GeoLite2City” file from the website.

Upon successful download of the file, proceed to extract the file in the given below directories.

  • In Prestashop 1.7/8, you need to extract it into app/Resources/GeoIP/ directory.

Workflow of the module

After the successful installation, a seller will get a new tab on the edit product page to block the product.

A seller can choose to block the product on the basis of the user’s country or for specific IP addresses.

Block product option

From the “Block Product” tab, a seller can block that product for particular/multiple countries & IP addresses.

But to do so, a seller needs to save the basic details of the product first.

block product not working before saving the product details

There are two options. Let’s see what happens if you enable or disable the settings.

If you disable the block product settings, then the product will be available for each and every country and IP address.

And, if you enable, then select the country or add the IP address for which the product will not be available.

Block product is active
Block product configuration on seller end

In this way, sellers can easily block the product for single/multiple countries or for the IP address. Back-End

Admin can also block the seller products from the back-end.

Go to marketplace management tab -> manage seller product -> edit/add seller product. Admin will also get a new tab named “block product”.

12
13
4-1

Front-end workflow

There are various cases according to the configuration settings. The view of the product page will differ as per various conditions.

When the admin chooses to block the product by customer’s address.

Case 1

  • Admin enables the display of product page.
  • Seller chooses to block the product in some specific countries.

Now, when a customer view the seller product and the shipping address of the customer is from one of the selected countries, then the product will display along with the configured message.

Note: Similarly, the following message will display when you block a product by the customer’s IP address. In this case, the IP address of the customer is from one of the selected countries.

case 1

Case 2

  • Admin disables the display of product page.
  • Seller chooses to block the product in some specific countries.

When a customer views the seller product and the shipping address of the customer is from one of the selected countries, then the customer will not be able to view the product page.

The “add to cart” button will not be available to the customer and when a customer clicks on the product to view the product detail page then the customer will be redirected to the home page.

Note: Similarly, the following message will display when you block the product by the customer’s IP address. In this case, the IP address of the customer is from one of the selected countries.

3-1

Case 3

  • Admin enables the display of product page.
  • Seller chooses to block the product in some specific countries.

But, now the customer is not logged-in i.e. store does not have a customer shipping address yet.

So, the customer can continue “add to cart” but after entering the shipping address for the order automatically the cart will get empty as the product is not available at that address.

When admin chooses to block the product by customer’s IP address

In the following case, the workflow of the module will differ from blocking done by shipping address.

  • Admin enables the display of product page.
  • Seller chooses to block the product in some specific countries.

But, now the customer is not logged in i.e., the store does not have the customer shipping address yet but the store has the customer’s IP address.

So, a customer cannot process the order as the add to cart button will not display and configured message will be visible on the product page.

Front end view of case 3

The “Add to Cart” button will not be visible on the products unavailable at customers location on seller shop page too.

2-14

These are some of the cases and they will depend on the configuration setting and restriction done by the admin and seller for the product.

In this way, the seller can easily block the product from the countries as per the customer shipping address or IP address.

So, this was all about the PrestaShop Marketplace Block Product module. I hope this document will help you in checking the functionality of the module in a better way.

Also, do let us know about your views in the comments.

Support

For any kind of technical assistance or query, please raise a ticket at http://webkul.uvdesk.com or send us a mail at [email protected]

Also, please explore our PrestaShop development services & vast range of featureful PrestaShop Addons.

Current Product Version - 5.0.4

Supported Framework Version - 8.x.x, 1.7.x.x

Blog Version - 8.x.x, 1.7.x.x
  • Version 8.x.x, 1.7.x.x
  • Version 1.7.x.x
  • Version 1.6.x.x
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

Table of Content