Ebizmarts Sagepaysuite Onestepcheckout Place Order Form Key Issue

We had a client who migrated his domain from http to https. And his other payment methods in onestepcheckout page started failing. The issue was that his sagepaysuite/checkout/review/info.phtml was being rendered however in this file you can see an if condition where it checks Magento version. <?php if($this->helper('sagepaysuite')->isMagentoEE113OrUp() or $this->helper('sagepaysuite')->isMagentoCE1800rUp()): ?> <script type="text/javascript"> //<![CDATA[ review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder', array('form_key' => Mage::getSingleton('core/session')->getFormKey())) ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements')); //]]> </script> <?php else: ?> <script type="text/javascript"> //<![CDATA[ review = new Review('<?php echo $this->getUrl('checkout/onepage/saveOrder') ?>', '<?php echo $this->getUrl('checkout/onepage/success') ?>', $('checkout-agreements')); //]]> </script> <?php endif; ?> Our client’s Magento version was CE 1.6.1.0, but we fully patched up the website so no matter we had to use form_key since SUPEE-6788, the part with form_key wasn’t being loaded.

Introduction to Behat and Behaviour Driven Development

Origins of BDD (Behaviour Driven Development) This derives from TDD (Test Driven Development) which is very similar but focuses more on unit tests and smaller parts of the software whereas BDD will be used to work on the bigger processes you might expect to have in the software you are developing. BDD also concentrates on how the software should actually behave. Before the software is actually built you would first need to define how the end user would actually use the software once it is complete, it could be as simple as working out how a user would log in. Read On →

Magento Module Version Checker

Magento Module Version Checker (mmv) is a simple script to check Magento Connect (or other custom sources) for the latest version of a module.

Read On →

Exploring Streets Of York and Participation in First Ever PHP Yorkshire conference

When something unbelievable happens, people tend to say “you were in the right place at the right time” that’s why you’re lucky. That is how I feel what happened to me here at Edmonds Commerce Ltd. Within first few weeks since I started working on Magento projects here at Edmonds. Nolwenn came to me with a question. “Hey Tadas, development team is going to this conference ‘PHP Yorkshire’, they don’t know what to expect, but it will be fun, will you join them?” And then in my head I am like “Wow, my first weeks and I got this promising opportunity to spend the weekend knowing my colleagues better and listen to these passionate people who loves PHP”. Read On →

Magento 1 Php7 Core Bug and Fix

We recently came across an issue with a client that had previously upgraded to PHP7 from PHP5.x for their Magento 1 CE store. The issue came to light when the client tried to create a new store in the admin and found that their store name was left blank when they hit the save button. No errors were displayed as the site was in production mode and the logs did not give any useful information. Read On →

Phpstorm Paste Without Escaping

One really great annoying feature of PHPStorm is that by default, when copying and pasting a chunk of code, it will automatically escape everything. There are certain times when this can be a time saver, but often it is just getting in the way. There is a solution though: Simply enough - instead of just hitting [ctrl]+[v] you have a right click menu option for “simple paste” and this will just paste the text as is, without any escaping yay!