Category / Magento

Ibiza anyone? 2 days to go!

Ibiza anyone? 2 days to go!

Three Inchooers are impatiently awaiting June 4th when they will start the journey to this years Magento Developers Paradise that will take place in Ibiza, Spain. This will be a great opportunity to meet fellow developers as we did last year and get first insight for Magento 2. Check out the interviews with the speakers.
Read more

11

Automatically cancel pending orders older than 90 minutes

Automatically cancel pending orders older than 90 minutes

There are situations where you might with to automatically cancel orders older than 90 minutes. They stay in “pending_payment” state. This usually happen when the customer didn’t complete the checkout due any reason.
Read more

29

Flat tables in Magento and product collection

Flat tables in Magento and product collection

You probaly know that Magento uses EAV database structure for categories, products. In some cases this solution is not the best or fastest.

Read more

6

How to create custom attribute source type?

How to create custom attribute source type?

Have you ever need to create custom attribute source type? This is small example which will help you to create custom source type. I hope that it will be helpful.
Read more

3

Guide through Magento’s timezones

Guide through Magento’s timezones

I’ll guide you through Magento’s timezone behavior, as I’ve noticed that people tend to get confused in cases when they have 2 or more websites with different timezones. If this is what you are searching for, read on!
Read more

0

Magento CMS syntax – part2

Magento CMS syntax – part2

Every Magento user noticed that there is special {{magentocode}} syntax available in cms pages and static blocks. We traced a bit to find out which params are available and what exactly they do. Read more

5

Emulate store in Magento

Emulate store in Magento

Magento 1.5 introduced very interesting piece of code that enables easy store emulation when programming, Emulation model a.k.a. Mage_Core_Model_App_Emulation class.

Read more

2

Magento (How to fix): One or more of the Cache Types are invalidated: Blocks HTML output.

Magento (How to fix): One or more of the Cache Types are invalidated: Blocks HTML output.

Somewhere around Magento 1.5, message from the title of this post begun to pop on every product save.
Although quite anoying, it is quite easy to fix and it seems that’s not a BUG, it is a feature – implemented without automatic block html cache refresh :)
I have tested it on Professional Edition and to be completely honest, I’m not sure if it will actually work on Magento CE,
but there is no reason why not (Please comment if it does).
Read more

23

How to translate form labels in Magento’s Admin Area

How to translate form labels in Magento’s Admin Area

Since Magento has built in functionality for translations, you can ask yourself why Magento doesn’t want to translate my labels… and everything is set up correctly!
For all of you who work on Magento for a while and you didn’t yet needed to translate everything in Magento admin area here is a short “howto” on what you can do:
go to app/code/core/Mage/Adminhtml/Block/Widget/Form.php
and find protected function _setFieldset($attributes, $fieldset, $exclude=array())
Instead of this line

//'label'     => $attribute->getFrontend()->getLabel(),
//put this:
'label'     => Mage::helper('core')->__($attribute->getFrontend()->getLabel()),

Of course you will not change Magento’s core file in this way :) (more below).
Read more

16

How to translate product names in Magento through .csv files

How to translate product names in Magento through .csv files

Let’s add to cart one item from our Magento community edition. If you have MCE with sample data you can visit something like this: http://loc.magento.com/sony-vaio-vgn-txn27n-b-11-1-notebook-pc.html?___store=german&___from_store=default
Add item to your cart and you’ll see success message “Sony VAIO VGN-TXN27N/B 11.1″ Notebook PC was added to your shopping cart.”. Now if we add in our .csv file for de_DE translations something like this:

"%s was added to your shopping cart.","%s wurde zum Warenkorb hinzugefügt."
"Sony VAIO VGN-TXN27N/B 11.1" Notebook PC","Sony Deutsch VAIO VGN-TXN27N/B"

If you have already setup all required things for “German” translations, then try again buy same product and you will not be able to see our translated “success message”. It’s not only because of “"” in product name.
Read more

1