Tuesday, February 9, 2016

Installing xDebug on Mac OSX with AMPPS

Hi Dear reader!

You may be wondering why I am writing yet another article about xDebug installation on Mac OSX, but in fact, I am writing this more because of myself as I want to remember the easiest way on how to build and install custom xDebug without additional troubles in short time. (As I am sure I will forget it if not in written form :-p)

Usually when installing xDebug to make it work with AMPPS on Mac OSX, I downloaded Komodo Remote Debugging Package and selected version which fit my PHP version and put xdebug.so in my PHP modules directory.

Everything was just fine during the time, until the moment I started to play with Magento 2. I switched the AMPPS PHP version to 5.6 and installed Komodo xDebug as usual. But when tried to debug in PHPStorm, some weird errors appeared and debugging was practically impossible ....

Read more
, ,

Wednesday, March 18, 2015

Magento 2 playground: Rendering Page View

Hi. To be honest, I just started to investigate Magento 2 and it's structure these days.
As starting point, I decided to follow this great article by Ash Smith about "Creating Simple Magento 2 Controller Module".

And everything was just fine until the moment I needed to render view from my newly created controller like in above post.

In fact, everything still worked fine, just one thing was not right:
Read more
, , ,

Tuesday, February 3, 2015

Magento REST API- filtering results

Like in SOAP web services, Magento also offers some kind of filtering results as part of REST web services.

We have sevaral possibilities available as described on official website.

Let's show sample REST request made to Magento (without filters):
 (Skipping part how we get oAuth token and saved it in session, because it is out of scope of this article ...)
Read more
, , ,

Saturday, January 31, 2015

Custom order holded status in Magento

Ever needed to add one more hold status in Magento?

For example:

Let's say that we have some order processing logic integrated with third party shipping provider. We make API call and it fails.

If we put order on regular onHold status, it will mix up with orders that are put onHold by site administrator and we will not be able to filter them later if we want to re-try processing etc.

I suppose that most convenient way would be to use "holded" state and create additional status, for example: "order_processing_error".
Read more
, ,

Tuesday, January 6, 2015

Magento collection caching

When we talk about Magento, we should try to optimize site loading speed as much as possible.

Sometimes block caching is not enough and we should also use collection caching to achieve best results.

Here is simple way to use cached collection in Magento.
Read more
, ,

Wednesday, December 31, 2014

Magento - archiving log files

Hi, I suppose that most of you had some situation when logging is turned On on high traffic Magento site. If you need to check the logs using FTP access, sometimes that could be a time - consuming task because log files are large and we need to wait to download complete file every time.
Read more
,

Thursday, December 4, 2014

How to Un-Cancel Magento order

Hi,
I know that there is possibility that we could find some articles on the internet with this thematic, but let me add my own version.
Let’s first say that programmatic Un-Canceling orders should not be the best way to resolve issues with order cancelled by mistake.

Read more
,