Question: Shopping Cart Price Rule - By using ZIP Code and Subtotal - Free shipping Not Working

**Shipping Method : Webshop Matrix Rate**

I am applied Shopping Cart Price Rule using zipcode,

[![enter image description here](https://i.stack.imgur.com/37TXe.png)](https://i.stack.imgur.com/37TXe.png)
[![enter image description here](https://i.stack.imgur.com/vyKJn.png)](https://i.stack.imgur.com/vyKJn.png)
[![enter image description here](https://i.stack.imgur.com/u23W5.png)](https://i.stack.imgur.com/u23W5.png)

May I know where I did the error?

Error Log:

```
2018-10-03T10:47:02+00:00 ERR (3): Warning: include(): Failed opening 'Mage/Displayfreeprice/Model/Freeprice.php' for inclusion (include_path='/home/abc/public_html/app/code/local:/home/abc/public_html/app/code/community:/home/abc/public_html/app/code/core:/home/abc/public_html/lib:.:/opt/cpanel/ea-php70/root/usr/share/pear')  in /home/abc/public_html/lib/Varien/Autoload.php on line 94

```

Answer: 
First Open “Validator.php” file located as the following path.
vendor\magento\framework\View\Element\Template\File\Validator.php

find the function :

```
protected function isPathInDirectories($path, $directories)

```

Now inside this function find this line of code.

```
$realPath = $this->fileDriver->getRealPath($path);

```

And replace this line of code with the below code.

```
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));

```

Now compile your Magento by using commands:

```
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento cache:flush

```
***Windows 10 Env Run deploy and compilation***

As per discussion, you are already in ***developer*** mode. 

* Try to install ***git bash*** or you can use ***powershell***  

My choice is ***git bash***.
* Go to ***Magento*** Root directory.  

Need to give permission when you run:  

`php bin/magento setup:di:compile`  

Try to give permission on,  

`chmod 777 -R generated/ var/ pub/static`
* Even you have to give permission after  

`php bin/magento cache:flush`