Magento 1.9.3.9 Please make sure your passwords match

Some customers are seeing an issue with Magento 1.9.3.9 but actually I think it can be any version above 1.9.1

Step 1: Open This file /app/code/core/Mage/Customer/Model/Customer.php

Step 2: Find This line in Customer.php $confirmation = $this->getPasswordConfirmation();

Step 3: Replace That that line with $confirmation = $this->getConfirmation();

Obviously any changes should be made within app/code/local rather than app/code/core so copy the file to that folder first.

Magento 2.2.4 Issues with Multistore Emails

If you have taken the plunge to Magento 2.2.4 and you are running multiple stores within Magento you may have noticed a few issues, if not you should check your transactional emails for a start.

There’s a well known bug with Magento 2.2.4 whereby it ignores your email sender values for store views if you use different values per view.

There is one way to get around this issue and that’s too use the different store email address options. If you go to Stores > Configuration > General > Store Email Addresses and then populate one Contact for each store (hopefully you don’t have more than 5 stores). Once you have done that go to Sales > Sales Emails  and change the Sender for the different store views.

Magento 1 blank page frontend and backend

Ever noticed your website go completely white? Both frontend and backend? How long before panic set in? How long did it take you to discover that going to /var/cache/ and doing rm rf * gets the website back?

The annoying thing about this bug is it can randomly happen when you least expect it and you might have to wait weeks to see it again.

The best way to get rid of this bug is to upgrade your Magento version, this bug only seems to exist in version earlier than 1.9.2.0.

If this still continues get in touch and I’ll provide another potential fix.

Startup Ecommerce Websites

I get asked a lot about recommendations for startup companies wishing to pursue there ecommerce ventures. I’m going to start a series of posts on my recommendations for websites in their early days looking to grow quickly. Of course there is no exact formula and there are some tools better suited to certain industries but here goes!

Let’s start with the basics. Platform.

Lot’s of personal preference here but I’ll run through the big 3 in my eyes.

First up. Magento

Great platform for those looking to scale quickly, I’ve seen companies go from £0 to £15million on the same platform, yes they evolved but the core remained the same. Not the cheapest or easiest to develop but will save you time and money in your 5 year plan. For those starting out don’t even consider Enterprise or Commerce as it is now know. Stick to Community. Magento 1 was well proven with a massive community behind it and more modules/extensions than you can shake a stick at. The new Magento 2 platform is still in it’s early days but looks to be gaining momentum. Magento 1 extensions are getting converted to Magento 2 extensions, more agencies are making more sites and Magento themselves are releasing new versions to iron out all the bugs that were discovered in the early days. I will do a more in depth article on Magento later.

Next – Woocommerce

This is a great platform for those wishing to get something live quick. Magento sites can take a while to develop where as Woocomerce you can very quickly plug and play a lot of modules/extensions/plugins and themes and be setup in hours if you really wanted. There’s a massive collection of people developing on this platform (thanks to it being WordPress based) and modules/extensions/plugins and themes range from free to thousands of pounds. I’d recommend this platform for those who are little unsure where they are heading on their ecommerce journey and want to test things quickly and cheaply.

Finally. Shopify.

I’m pretty sure everyone will have heard of Shopify, this is slightly different to the platforms above as it’s the only one that isn’t free and open source. You can find their pricing here. Again another great platform to get setup very quickly this one comes with the added benefit of it being hosted so no third party hosting to worry about.

 

Any questions shout!

Magento 2 Using Google Fonts

In your theme folder> Magento_Theme > layout > default_head_blocks.xml

Make it look like the following replacing your Google Fonts link

<?xml version=”1.0″?>
<!–
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
–>
<page xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:framework:View/Layout/etc/page_configuration.xsd”>
<head>
<link src=”http://fonts.googleapis.com/css?family=Montserrat” src_type=”url” rel=”stylesheet” type=”text/css” />
</head>
</page>

 

Then in your web > source > _typography.less file update it to be the following

 

@import url(‘http://fonts.googleapis.com/css?family=Montserrat’);
@font-family-name__base:’Montserrat’;
@font-family__base: @font-family-name__base, @font-family__sans-serif;

 

You should now have your Google font across your website

Magento 2 Cronjob Plesk

Go to scheduled task in Plesk

 

Click on add new

NbgAX

 

Choose run a php script

If you click the folder icon you can select the bin/magento folder

You then need to add an argument of cron:run

Choose cron style from the run dropdown and add */1 * * * *

Give it a description and click save.

Your Magento 2 cronjob should now be running

cumPM

Magento 2 install module without CLI

Need to install a module but don’t have command line tools? I found this handy script that will do the leg work for you.

Create a file I called mine upgrade.php in the file place the following script you can change what command you want to run by changing the variable $k[1]= ”; all you then need to do is run the file from your browser.

 

<?php

use Magento\Framework\App\Bootstrap;

require __DIR__ . '/app/bootstrap.php';

$bootstrap = Bootstrap::create(BP, $_SERVER);

$obj = $bootstrap->getObjectManager();

$state = $obj->get('Magento\Framework\App\State');
$state->setAreaCode('frontend');
$k[0]='bin/magento';
$k[1]='cache:status'; // write your proper command like setup:upgrade,cache:enable etc...
$_SERVER['argv']=$k;
try {
    $handler = new \Magento\Framework\App\ErrorHandler();
    set_error_handler([$handler, 'handler']);
    $application = new Magento\Framework\Console\Cli('Magento CLI');
    $application->run();
} catch (\Exception $e) {
    while ($e) {
        echo $e->getMessage();
        echo $e->getTraceAsString();
        echo "\n\n";
        $e = $e->getPrevious();
    }
}

Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/wwwwebam/public_html/blog/wp-includes/functions.php on line 4339