Zipcode Pricing in Magento 2. How to use zipcode pricing


Zipcode Pricing Module: The zip code pricing module allows the admin to set the price of any product in any specific zip code and location according to their need.

Zip code pricing includes tier price, special price, and base price.

  • The admin can enable module configuration.
  • The module helps set the zip code price of simple products, virtual products, and downloadable products.
  • The price of the product zip code can be specified manually or by uploading a .csv file.
  • Customers can enter their zip code and based on the displayed price of the product.
  • Admin can set zip code -based pricing for products as standard price, special price, and tier price.

Install the Extension from the Webkul Store

# 1 Download Module

First, you need to log in to the Webkul Store, go to My Account>My Purchased Products section, check and then download and extract the contents of this zip folder to the system.

# 2 Folder Upload

Once the zip module is removed, follow the path src> app and then copy the app folder to Magento 2 root server directory as shown below:

# 3 Running Commands

After uploading the module folder, you need to run the following commands in the Magento 2 root Directory:

  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile
  • php bin/magento setup:static-content:deploy
  • php bin/magento indexer:reindex
  • php bin/magento cache:flush

Install the Extension from the Magento Marketplace

If you purchased this extension from Magento Marketplace then please follow the process below or visit it CONNECT

# 1 Getting Access Keys

You need to get access keys, navigate to My Profile in the Magento Marketplace, then select Access Keys on My Products section

my profile

Go to Magento 2 and then you need to copy both Access Keys – Public Key and Private Key. These access keys are required in the next steps for authentication.


If the access keys were not created earlier, click Create a New Access Key, enter any name and click OK.


# 2 Update the file to composer.json

To find the component name and version number, go to your Magento Marketplace account section, My Profile> My Purchases, then search for this extension to see the details.

Please note – Below is an example image, each extension has a unique component name and version.


Afterwards, go to your Magento project directory and update your composer.json file to the following format.

composer requires :

For example, to install version 5.0.0 of this extension you need to run the following command:

Composer requires webkul / module-zipcode-based-product-pricing: 2.0.0

# 3 Enter the Access Keys

Now you need to enter Access Keys which you obtained as explained in first step # 1 Obtaining Access Keys. Wait for Composer to finish updating your project trusts and make sure there are no errors.

# 4 Run Command

You need to run the following commands:

  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile
  • php bin/magento setup:static-content:deploy
  • php bin/magento indexer:reindex
  • php bin/magento cache:flush

Language Translation

For the language translation module, navigate src / app / code / Webkul / ZipcodePricing / i18n and change the en_US.csv file

Afterwards, name the CSV “en_SA.csv” and translate all the text on the right side after the comma in Arabic. After editing the CSV, save it.

Then upload it to the stream src / app / code / Webkul / ZipcodePricing / i18nwhere Magento2 is installed on the server. The module is translated into Arabic. It supports both RTL and The LTR languages


Module Repair

End Admin

After successful installation of the module, the admin can navigate, Stores> Configuration> Zipcode Pricing configuration.

For reference, please check out the image below:


Here the admin sets the default zip code price settings below in steps:

  • Enabling the Zipcode Pricing Module: Select Yes to enable.
  • Enter the Google Map API key.
  • The location pops up in the website window.
  • Select Special price: – Special product price or special price based on zipcode.

Put the Zipcode price on the product

Now to edit the product go catalog> Products. After this product grid will be visible. From here click on edit to edit the product.

If you see the product edit page, scroll down to the bottom and click the drop-down on Zipcode Based Product Pricing.

For reference see the image below:


From the drop-down select any method: Manual way or Use CSV file Import method.

Manual Procedure

Once the admin selects the Manual way clicking on Add Row. Now the admin needs to fill in the following parameters. The parameters are ZipCode from, Zipcode to, Zipcode-based price, Special Price.

zipcode manully pricing added

As a result, the manually added row looks like the image below.


Use CSV file Import method

If the admin has selected the CSV method then click select the file and select the .CSV file and click upload.

CSV file upload

Here the special price is always lower than the zip code price.

Zipcode Base Product Tier price

If the admin wants to add the price tier for the product zipcode they have two methods for it. That’s it Manual way and using the import CSV file method.


Manual Procedure

Then select Manual way fill in the admin the following parameters: – Website, customer group, zipcode from, zipcode to, Quantity, class price range, and amount.


Use CSV file Import method

If the admin has selected the CSV method then click select the file and select the .CSV file and click upload.


Once the admin has set up the priced product zipcode from the above mentioned method, then click conservation to save trusts.

Now we will discuss the price of Zipcode Base Product Tier For Not logged in customer

The image below is given the Zipcode Base Product Tier price grid.zipcode-tier-base-price-grid

Now if the customer enters the given zipcode from the storefront and adds the same number where the tier price is set. Then while continuing to check he will see the same price for the same quantity.

For reference see the image below:


Customer End

When a customer visits the website he will enter the specific zipcode. For more reference see the image below.

zipcode for location

When a customer searches for the product he will only see the price of the product set by the admin.

For example, Customers searched for the Joust Duffle Bag as a product, with the price set at $ 50 in the zipcode-based product price while editing the product.

Now to the front-end finding the Joust Duffle Bag and go to the product page. Here customers will see $ 50 as the product price of a specific Pincode.

final zipcode pricing price

Now click on Add to Cart. As a result the product will be added to the cart. After this click on the cart icon Proceed to checkout.

paying the zipcode price

Fill in the details of address and phone number, zip code. After this the customer will be redirected to the payment page.

zipcode payment method

As a result the order can be successfully placed.

That’s all from Zipcode Pricing for Magento 2. Also, please visit our availability Magento 2 Extension.


Have any questions, do not hesitate to reach us at [email protected] You can also upload a ticket through our Help Desk system

Leave a Comment

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

This div height required for enabling the sticky sidebar