A Complete Tutorial On Configuring FPT On Magento 2

On the previous article, we described what is Fixed Product Tax (FPT) in Magento 2. In this article, we will explain a tutorial on Configuring FPT On Magento 2 admin panel.

The tutorial on how to set up a fixed product tax for your store, using “eco-tax” as an example. After setting the tax scope and the countries and states, the input fields can change according to the local requirements and depend on the options you choose. Read an article about Creating Attributes to learn more.

Step 1: Enable Fixed Product Tax

On the Admin sidebar, click Store. Under Settings, click Configuration. On the left of the panel under Sales, click Tax. Open the Fixed Product Taxes tab and follow these steps:

  1. Set Enable FPT to “Yes.”
  2. Select the FPT setting for each of the following price display locations to decide how fixed product taxes are used in store prices. (The selections are the same for each location.)
  • Product View Page
  • Sales Modules
  • Emails
Including FPT Only

Including FPT and FPT description

Excluding FPT. Including FPT description and final price

Excluding FPT

  1. Set Apply Tax to FPT as needed.
  2. Set Include FPT in Subtotal as needed.
Fixed Product Taxes configuring FPT in Magento 2
Fixed Product Taxes

Click Save after completed.

Step 2: Create an FPT Attribute

On the Admin Sidebar click Stores. Under Attributes click Product. In the upper-right corner, click Add New Attribute and follow these steps:

  1. To identify an attribute, input Default Label
  2. Set Catalog Input for Store Owner to “Fixed Product Tax.”

Open the Advanced Attribute Properties and follow these steps:

  1. In the Attribute Code field, input a unique identifier in lowercase, spaces or special characters are not allowed. The maximum length is 30 characters. You can leave the area blank to the text from the Default Label field.
  2. Set Add to Column Options to “Yes” if you want the FPT field to appear in the Inventory grid.
  3. Set Use in Filter Options to “Yes” if you want to filter products in the grid based on the FPT field’s value.
Advanced Attribute Properties configuring FPT in magento 2
Advanced Attribute Properties
  1. On the left of the panel, select Manage Labels. Then, input a label to use instead of the default label for each store view. (Optional)
Manage Labels configuring FPT in magento 2
Manage Labels
  1. Click Save Attribute after completed and clear the cache.

Step 3: Add the FPT Attribute to an Attribute Set

On the Admin Sidebar, click Stores. Under Attribute, click Attribute Set. Click the attribute set on the list to open the record in edit mode.

Move the FPT attribute from the Unassigned Attributes list to the Groups list. Each group folder compares to a section of product information. You can place the attribute wherever you want it to display when the product is open in edit mode.

Edit Attribute Set configuring FPT in magento 2
Edit Attribute Set

Click Save after completed.

For each attribute set that needs to include fixed product tax, do this step again.

Step 4: Apply FPT to Specific Products

On the Admin Sidebar click Products, Under Inventory, click Catalog. Open the product that needs a fixed product tax in edit mode. Find the FPT section of fields that you added to the attribute set. Click Add Tag and follow these steps:

Fixed Product Tax for Belgium configuring FPT in magento 2
Fixed Product Tax for Belgium
  1. If your Magento installation has multiple websites, select the Website that you want to apply settings and base currency. In this example, the field is set by default to “All Websites [USD],”
  2. Set Country/State to the region where the fixed product tax applies.
  3. Enter the fixed product tax as a decimal amount in the Tax field.
  4. Click Add Tag and do the process again if you want to add more fixed product taxes

Save after completed

How To Use A Custom Admin URL in Magento 2

As a security best practice, the default “admin” link or “backend” link is not recommended for your Magento 2 platform web store. Instead of that, you should use custom Admin URL. It will not completely protect your web store from a bad actor, but at least it will avoid to be gain unauthorized access from bad script.

Before executing a custom Admin URL, check with your hosting provider . Some hosting providers require a standard URL to meet firewall protection rules.

In a general Magento installation, the Admin URL and path is under the Magento base URL. The Admin path is one directory under the root.

Default Base URL


Default Admin URL and Path


You can edit the Admin URL and path to another location, however if you have any mistake in editing progress, the access to admin will be removed, and must be fixed from the server. So do not do it by yourself unless you know how to edit configuration files on the server.

Method 1: Change from the Magento Admin

  1. On the Admin sidebar, click Stores. Under Settings, click Configuration. On the left of the panel under Advanced, click Admin
  2. Open the Admin Base URL tap and follow these steps:
  • Uncheck all Use system value checkboxes
  • Set Use Custom Admin URL to “Yes”
  • Input the Custom Admin URL in the following example: http://yourdomain.com/magento/

The Admin URL must be in the same Magento installation, and have the same document root as the storefront.

  • Set Custom Admin Path to “Yes”
  • Input the Custom Admin Path. The path that you enter is appended to the Custom Admin URL after the last forward slash: sample_custom_admin
Admin Base URL Custom Admin URL In Magento 2
Admin Base URL
  1. Click Save after completing
  2. Sign out then log back using the new Admin URL and path.

Method 2: Change from the Server Command Line

Use notepad or any text editor to open app/etc/env., edit the name of the [admin] path using lowercase only. Save the file.

Clear cache by System > Tools > Cache Management > Flush Magento Cache. Or delete the content of cache folder in var/cache folder.

A Complete Guideline of Adding Stores In Magento 2

In Magento 2 installation, many stores that share the same Admin can be included in a single installation. Stores that are on the same website share the same domain, IP address, security certificate and a single checkout process.

Remember that the stores also share the same Magento code and admin backend. Store administrators can allow the store to share the same catalog or have a separate catalog. To have a different main menu for each store, each store can have a separate root category. Stores can have different branding, presentation, and content. You have to spend some time preparing a plan for your store hierarchy with future growth in mind because your plan will be used throughout the configuration.

Multiple Stores Adding Store in Magento 2
Multiple Stores

In these examples, URLs can be configured for multiple stores:

yourdomain.com/store1 Each store shares the same domain and has a different path
store1.yourdomain.com Each store has a separate subdomain of the primary domain.

Step 1: Select a Store Domain

  • Set up a subdomain of your primary domain.
  • Set up a different primary domain.

Step 2: Create a New Store:

  1. On the Admin Sidebar, click Stores. Under Settings, click All Stores.
  2. Click Create Store and follow these steps:
  • Select the Web Site that is to be the parent container of the new store.  If the installation has one web site, select the “Main Website” default mode.
  • Input the Name and Code for the new store. The name is for internal reference only, the Code has lowercase character.
  • Set Root Category that defines the category structure for the main menu of the new store. You can select a specific root category for the store or “Default Category”. Of course, you can come back and update the setting later.
store information adding store in magento 2
store information
  1. Click Save after completed.
new store adding store in magento 2
new store

Step 3: Create A Default Store View

  1. Click Create Store View
  • Change Store to the created store
  • Input Name and Code
  • Change Status to Enabled
  • In the Sort Order field, enter a number of the store’s place on the list of stores.
  1. Click Save Store View

This is the new default view of your store in Edit mode

new store with default view adding store in magento 2
new store with default view

Step 4: Configure the Store URL

  1. Click Store > Configuration. Under General click Web
  2. Set Store View to the created view for the new store. Click OK after confirmed scope switching.
choose the new store view adding store in magento 2
choose the new store view

Open the Base URLs tab, follow these steps:

  • Uncheck the Use Website checkbox.
  • Input the Base URL for the Store
base urls adding store in magento 2
base urls
  1. Open the Secure Base URLs tab, repeat the previous step to configure the store’s secure URL.
  2. Click Save Config after completed.

Try These 2 Methods To Use Cookies Features In Magento 2 Web Store

What are cookies?

Cookies are saved files on the computer of the visitor to your site; it’s a temporary saving place for data. To personalize customer’s experience, information that is saved in cookies is used to link customers to their shopping carts, count traffic patterns, and enhance the effectiveness of the promotions. To follow requirements of legislation in many countries regarding the use of cookies and to obtain customer consent, Magento suggests store owners a selection of these two methods :

Method 1: Implied Consent

In this method, customers have a clear understanding that cookies are an essential part of online store operations, and by visiting your web store, have indirectly granted permission to use them. The reason for taking implied consent is to provide enough information for a customer to make an informed decision. The web store will make a pop-up message at the top of first-page customers visit, explains how cookies are used, include a link to the privacy policy of web store. In the privacy policy page, store owners should tell what kind of information that your online store collects, and how is it used.

Method 2: Expressed Consent

In cookie restriction mode, the operating of your online store requires customers to confirm their approval of any cookies can be saved to their devices. Without access granted, many store features will not allow. For example, if Google Analytics is available in your store, it can be activated only after the customer has granted permission to use cookies.

Above is an article about cookies in Magento 2 and two solutions to obtain customer consent. We hope that you can consider the best method for your web store, provide the best experience for customers and completely protect customers information. If you have any question, feel free to leave a comment. Share the article if you think it is useful, and subscribe Magestandard to read more guidelines. In these next posts, we will describe Cookie Restriction Mode and Cookie Reference.

How to Edit Your Privacy Policy in Magento 2

What is Privacy Policy?

A Privacy Policy in Magento 2 is a document that describes the policy of merchant for handling customer information. In Magento 2 default, your store displays a sample form of privacy policy and it can be updated with your information. In your privacy policy, you should describe the type of information that you must collect from customers, and how it is used. The cookies files of the computers that visit your store, and additional cookies that are associated with third-party extensions should be included in the list too.

In this article, we will describe how to edit your privacy policy in Magento 2. To modify your Privacy Policy, follow these steps:

Firstly, in Admin sidebar, click Content. Under Element tab, click Page.

In the table grid, find Privacy Policy section. In Action column, choose Edit in Select.

Open the Content tab, edit the content following your requirements.

magento 2 privacy policy content

If you need to change URL key of privacy policy page, you have to create a custom URL rewrite to redirect traffic to the new URL key. Without this step, the footer privacy policy link will get error 404, and customers can not reach your privacy policy page.

Click Save page after completed the edit.

Above is a description of the privacy policy in Magento 2, and tutorial on how to edit privacy policy of your Magento 2 web store. We hope that you can create your privacy policy and respect the privacy of customers data to make the e-commerce world safer and better. If you have any question, feel free to leave a comment. If you think this article is useful, don’t forget to share it. And remember to subscribe Magestandard to read more Magento guidelines. In the next post, we will describe the Cookie Law Compliance for Magento 2 web store.