Invalid model for shipping method: msmultiflat – Magento

Tuesday, 28. February 2012

Came across this error while upgrading Magento Invalid model for shipping method: msmultiflat – and here is a solution on how to solve it.

In this case, the shipping module in question was no longer needed, so the solution was to delete it from the system.

Open your phpmyadmin OR similar DB IDE of your choice and run the following script

DELETE FROM core_config_data WHERE path LIKE '%carriers/msmultiflat%'

*** CLEAR YOUR MAGENTO CACHE after running your script ***

NOTE:
Similar script can be used to delete any other missing model for that matter.. just replace msmultiflat with the missing model!

Set Price Navigation in Magento layered Navigation Step Calculation

Tuesday, 28. February 2012

Magento layered navigation is quite nice and I am sure you will agree with that! However there are times you would want to stop the automatic process and define your own settings especially for price ranges in layered navigation.

If you have come access the need to change price ranges in layered navigation and wondered how you could easily achieve that, here is how:

Navigate to
System > Configuration > Catalog > Catalog > Layered Navigation.

If Price Navigation Step Calculation is set to Automatic – then change is to Manual

Now add your group number. I.e if you set the group number to 50 then the sets/ranges will be like this

0-49
50-99 etc

Diagram

SagePay Payment has failed, please reload checkout page and try again. Your card has not been charged

Sunday, 26. February 2012

Had this issue while configuring SagePay suite extension. When you went to place an order through Magento onepage checkout Sagepay throws an error: Payment has failed, please reload checkout page and try again. Your card has not been charged.

Seemed rather strange at first with everything seeming rather usual. After sometime of debugging, I decided to upload the sagepage suite files manually via FTP and whallaaah! issues solved!

Issue

Seems to be installing SagePay suite via Magento Connect.

Solution

Install SagePay files manually via FTP. Clean cache and give it another Go.

Hope you will find a little smile after this :)

Successful Linnworks Magento Ebay Amazon integration

Thursday, 23. February 2012

If you are looking for specialist in Magento, eBay, Amazon and Linnworks integration, then you have come to the right place.

We at Zone-Connect specializes in providing solutions for Linnworks Integration with various sales channels such as ebay, Amazon and Magento and can help you quickly get up to speed with selling on these platforms with Linnworks acting as a central player to your order and inventory management.

Linnworks is a proven key player for multi-channels sales integration and we have been well impressed by their dedication to helping online retailers retain competitive edge in what they do, hence our decision to join as solution partners.

Our core focus at Zone-Connect is to help you and all online retailers do what they do best and that’s selling stuff online! When it comes to the technical side of things we will step in and iron things out for you just to guarantee your valuable time goes purely into your core business strategy and expanding your brand online.

If you would like to chat more about how we can help you start selling online and into multiple channels environment, please get in touch with us today! and we will make sure we get you to a flying start in no time!

We promise to work hard for you so you don’t have to!!

There was a problem with reindexing process – Magento

Thursday, 23. February 2012

For anyone working with Magento, I am sure you have come across There was a problem with reindexing process error at least once in your life time using Magento.

As you can tell, the error is not always very explicit on what the issues is and more than often its because MySQL database has encountered an error and could not proceed with the process.

Best way I have found to deal with this is get a bit more information is to run the PHP shell script for re-indexing the database that comes with your Magento install. This will throw detailed message to you on what went wrong!

Open your command line tool and navigate to the root of your Magento site (htdocs or publich_html etc) and type this commend.

php shell/indexer.php reindexall

Sit back and observe!

SAFE-MODE-Restriction-script-whose-uid-not-allowed-to-access

Wednesday, 22. February 2012

Had this error Warning: realpath() [function.realpath]: SAFE MODE Restriction in effect. The script whose uid is 10008 is not allowed to access /tmp owned by uid 0 in lib/Zend/Cache/Backend.php

This is a user security issues and for this specific server, PHP was configured to run as fastcgi. This means that all files must be owned by the same user running the PHP script.

So if the file that is being accessed has owner 0:0 and the script accessing it has an owner 10008; you are more likely to find this error.

Making these changes, should hopefully help with this sort of problems.

Passing Parameter Value To PHP Block From Magento CMS Pages

Friday, 10. February 2012

If you are developing a custom feature in Magento and wanted to pass a parameter/value to your PHP block class, these tips may help you greatly!

Passing Parameter Value From Inline Block Declaration

{{block type="catalog/product_list" category_id="3" template="catalog/product/list.phtml"}}

Access the parameter From you PHP script

  public function doSomethingWithPassedParameter() {
    echo $this->getCategoryId();
  }

Passing Parameter Value From Custom XML Declaration

  <reference name="content">
     <block type="catalog/product_list" name="new-arrival-products" alias="arrival_products" template="catalog/product/new_arrival.phtml">
	....
        <action method="setData"><key>category_id</key><value>6</value></action>
     </block>
  </reference>

Access the Parameter From you PHP script

  public function doSomethingWithPassedParameter() {
     echo $this->getData('category_id')
  }

Gateway error: This transaction cannot be accepted – Authorize.net – Magento

Thursday, 9. February 2012

I started to receive this payment gateway error from authorize method right after completing an upgrade of Magento to 1.6.2.0. Every time I was placing an order, “Gateway error: This transaction cannot be accepted” error popped out.

After a bit of log reading it was obvious the issue has something to do with account credentials. The issue appeared to be because of transaction key.

For some reasons, using the same key as it was before the upgrade didnt seem to work.

[TO SOLVE IT] – Log in to your authorize.net account and create a new transaction Key.

Enter this key into your Magento admin panel and all should be good to get from there

Enjoy

Another way to Get Current page layout in Magento

Saturday, 4. February 2012

Here is a little snippet for getting the current page layout in Magento

echo str_replace(array('page/','.phtml'),array('',''),$this->getLayout()->getBlock('root')->getTemplate());

enjoy!

Database Export Error domains_databases_phpMyAdmin_export

Wednesday, 1. February 2012

Came across this error today while trying to export the database via PhpMyAdmin and took sometime to reliaze that the error had nothing to do with the actual file but rather the fact that the Db itself was of high size to be exported with the current settings on the server, notably memory size

Solution:

Simply increase your memory_limit as to something a big.

This can be found in your php.ini for the server – probably /etc/php.ini

Locate and change: memory_limit = 128M – to big amount as is possible for your server.

Enjoy!