Debugging PHP app using Xdebug and Remote Docker PHP Container

No so long ago I’ve started using Docker as my primary development environment. Before that I had everything (WEB-server, PHP, MySql, etc) installed on my Mac and being run natively. Docker brings more flexibility and it is just fun. So now my setup includes Mac OS with PhpStorm installed and remote Ubuntu server running Docker containers needed for my WEB application.

Docker Development Environment

Continue reading “Debugging PHP app using Xdebug and Remote Docker PHP Container”

Custom actions in Magento Catalog Price Rules. Price rule based on cost.

Magento Catalog Price Rules is great feature that can be used to significantly increase sales. It allows you to set customer group discounts, season sales discount, etc. The main difference from Shopping Cart Price Rules is that customers are able to see discounted prices on catalog pages. To make rules even more effective I would like to share an approach of adding custom actions to rule. Continue reading “Custom actions in Magento Catalog Price Rules. Price rule based on cost.”

Magento. Fix Paypal “Unable to process payment”

When you enable Paypal payment method in your Magento store for the first time it might not work as expected. Pressing Place Order button redirects you to Paypal, but instead of login form you get error “Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.”. Below you can find solution to your problem. Continue reading “Magento. Fix Paypal “Unable to process payment””