Tout sur la solution e-commerce Magento

Me(e)t Magento Polska - it was worth it

It is already a week since Baobaz team has returned from first MeetMagento event in Poland, excitement wore off a little, yet we still are convinced - it was worth it!

Baobaz na Meet Magento 2012 w Warszawie

Magento Community

At first Meet Magento in Poland gathered around 100 people from all around Europe. Thomas Fleck, from NetResearch, said it beautifully - I came to Poland from Germany, to listen to a swiss company presentation in english on their experience with integration Magento for Ghana government institution.

Variety of attendants experience created great opportunity to exchange knowledge during coffee breaks between speeches, and were continued even at After Party on 40th floor of Mariott Panorama Bar. Additionally - what other conditions would have to be met to gather at one place several former Magento Core Team members and have opportunity to ask them these difficult questions you have kept in your head for months of Magento integration? Oppa Gagnam Style bros! :)

Experienced speakers

Meet Magento gave opportunity to listen to 22 speeches from 23 speakers (including Piotra Kamińskiego, Damiana Luszczymak, Ivana Chepurnyi i Vinai Kopp), who have shared both their experience with Magento integration and solutions for e-commerce market (payment gateways, email marketing solutions). Thanks to presence of Magento representatives it was also opportunity to listen how Magento evolved in last years, how Magento Developer Certification looks like and where is Magento 2.0 today.

Those who impatiently wait for Magento 2.0 there is a good and bad news. Magento takes effort to make new version well tested and documented, therefore we should not expect it soon, especially core parts are still being modified - if you go for new website during next year, stay with Magento 1.x. In the meantime we can count on new Service Pack editions for Magento 1.x, and the first version of Magento should be supported for several years to come after the release of Magento 2.0.


Big congratulations to the organizers from team -  Kuba Zwoliński and Marta Molińska - who, regardless it was their debut, have organized this event in professional way in nice atmosphere. From the entrance to the hotel kind girls wearing orange shirts with logo of the event guided everybody to the right floor and room. Speaches performed in polish were simultanously translated to english and at the same time were available on live stream.

Great job! Impatiently, and against mayan prophecies, we wait for MeetMagento 2013!

We are really happy that we had the opportunity to support this event as a sponsor and moreover we would like to thank the auditory for pleasant reception of our presentation.

Baobaz at Meet Magento Poland

For the first time Magento community in Poland has the opportunity to meet and share their experiences with the most dynamically evolving e-commerce solution in the world on the Meet Magento Poland conference at Warsow on 23-24 of November (agenda).

Meet Magento Polska

Baobaz has joined this event as one of the partners. You will also find us among the speakers. Authors of the presentation titled "Works for me - about code repositories and automatic deployment in Magento projects" are Magento Certified Developers - Maciej Krasuski and Kamil Węgrzynowicz.

We encourage everybody to join the event and meet us there!

Baobaz "Innovator of the Year - Europe"

Baobaz was awarded « Innovator of the year – Europe » at Imagine eCommerce, the worldwide conference by Magento in Los Angeles last February 7 - 9th.

Yoav Kutner et Roy Rubin récompense Baobaz en remettant le prix à Bertrand Fredenucci
Yoav Kutner (CTO Magento) and Roy Rubin (CEO Magento) give the "Innovator of the year" award
to Bertrand Fredenucci (CEO Baobaz) 

As a reward of its amazing work and contribution to the Magento platform for fashion retailers in 2010, Baobaz received one of the 5 prizes delivered that day, as « Innovator of the Year - Europe » during the Imagine eCommerce Partner Summit. Among others, here are example of the modules developped by Baobaz:

  • MyDressing (virtual dressing)
  • Shop-by-look
  • Fashion Merchandising

This award confirms Baobaz leadership on the eCommerce market for the fashion industry.

More to come in 2011 ! 

Magento 1.5 new features

After Magento Enterprise Edition 1.9 release, a new Magento Community Edition release just came out: 1.5 alpha.

This 1.5 version includes 3 new features that may be very useful for your Magento website:

  1. A new customers import/export module

    You may now export your customers and product from Magento backend with an advanced attribute filter feature.
    The good old dataflow profile feature is still available.
    Magento 1.5 product export
    Magento 1.5 customer export

  2. Order State and Status can be modified from Magento backend

    Now you don't have to edit XML files to modify order state and status as this can be done from the backend.
    Magento 1.5 order status
    Magento 1.5 order status edit

  3. Modify order adresses after an order has been made

    This will be very useful to customer services: you may now edit an address without having to create another order.
    Be careful though: this will not recalculate order amount nor shipping fees.
    Magento 1.5 order edit
    Magento 1.5 order address edit

More information on Magento 1.5 on Magento official website

Https + Magento Cache + Internet Explorer = No image

Magento uses by default an advanced cache system in order to display templates content faster. But default configuration of this cache can sometime creates some issues.

Recently, we had some images that were not displayed in the top menu when we switch from an http page to a https page using Internet Explorer browser. Images in this menu still have a non secured (http) URI. Internet Explorer is not pleased with such content. By default, this browser does not display unsecured content on a secured page. We have this security warning displayed when some image have http URI on a https page:

Internet Explorer Security Warning

Block displaying top menu was using cache system but this cache was not regenerated when we switch from a http to a https page. That's why images were still having http URI.

For fixing this problem, we must rewrite getCacheKey method from Mage_Catalog_Block_Navigation class. A new parameter telling if page use http or https should be included in cache key. Cache will then be different for this 2 types of pages. This parameter is added with getSkinUrl method

Default code of getCacheKey

public function getCacheKey()
    return 'CATALOG_NAVIGATION_' . Mage::app()->getStore()->getId()
        . '_' . Mage::getDesign()->getPackageName()
        . '_' . Mage::getDesign()->getTheme('template')
        . '_' . Mage::getSingleton('customer/session')->getCustomerGroupId()
        . '_' . md5($this->getTemplate() . $this->getCurrenCategoryKey());

is then replaced by following code

public function getCacheKey()
    return 'CATALOG_NAVIGATION_' . Mage::app()->getStore()->getId()
        . '_' . Mage::getDesign()->getPackageName()
        . '_' . Mage::getDesign()->getTheme('template')
        . '_' . Mage::getSingleton('customer/session')->getCustomerGroupId()
        . '_' . md5($this->getTemplate() . $this->getCurrenCategoryKey())
        . '_' . md5($this->getSkinUrl()); /*** FIX IN THIS LINE ***/

This is it. You can now use peacefully https on Internet Explorer.

For more details about Magento cache system you can read this article.

Increase your sales! - Promotions rules in your Magento

Magento system, offers users an excellent tool for creating rules of special prices for multiply products at the same time. We have 2 types of rules: the first refers to a catalog of products, while the other to the contents of customers shopping cart. Let's look little bit closer at this first one.

In this example, we'll create a rule of reducing 50% of the price of each product in a specific category in our catalog.

Go to Promotions -> Catalog Price Rules -> Add New Rule

At the beginning we give the name of the rule, then we mark stores to take effect in (obviously, if we have more than 1) and select group of clients. Remember to include the start date and end date of promotion period, You can also enter a From/To Time to be more specific.

On the Conditions Tab, set a condition to define the category of products: if the product is equal category id 44 (Sacs enfants) then...

..then perform the action: apply a percentage discount of the original price by 50 (50%).
Accept a new rule by click on "Save & Apply"

From now on, prices of all products from category 'Sacs enfants' ( category_id = 44) will be reduced by 50%. Products will display the original price (crossed out) and promotion one (as a rule).

Please note, prices usually refer to the standard price of the product. So if the product is set to individual special price it will be superior, depending on how we set the condition in price rule.

Enjoy your sales!:)

Magento dropdown attributes

Let's say you want to create a new attribute for a product, e.g. 'color'.
There should be a set of possible values for this attribute. So what you do is create
an attribute of 'Dropdown' type. You set all its properties, give it a title and create its options, e.g. 'black', 'white', 'red' and 'yellow'.
But there is still one surprise that you may have. When you try to obtain the color simply by:


all you get is a numeric value corresponding to an option value in the dropdown.
But you probably would like to get a color name.
Fortunately you don't need to construct database queries, as Magento already thought about it.
So to get the name of the color selected for a product you need to use a method:

where 'color' is the text that you have set as attribute code. Remember that you cannot
change attribute code nor its type after you create it.

Setting-up Ruled-Based Product Relations for automatic cross-sell with Magento Enterprise Edition 1.7

Managing cross-sell relations can take a long time with Magento Community Edition if you have many products in you catalog.

Product Relations with Magento Community Edition

With Magento Community Edition, you used to have to create relations between each product (cross-sell, up-sell and related products), product after product. Making this automatic required to develop a specific module or to import links from another system.

Setting-up Ruled-Based Product Relations for automatic cross-sell with Magento Enterprise Edition 1.7

Today Magento Enterprise Edition 1.7 allows you to create Ruled-Based Product Relations for automatic cross-sell links between your products.

Setting-up Ruled-Based Product Relations for automatic cross-sell with Magento Enterprise Edition 1.7

You can create several rules, define a priority so that you know which rule will be used if several ones apply.

Rules can be permanant or apply from a specific date to another.

These rules handle the 3 basic relations: cross-sell, up-sell and related products.

Setting-up Ruled-Based Product Relations for automatic cross-sell with Magento Enterprise Edition 1.7

Next you define if the rule applies to every products or just to some of them. What you can see here is the standard Magento attribute filter Rule engine.

Setting-up Ruled-Based Product Relations for automatic cross-sell with Magento Enterprise Edition 1.7

Then you define which product will be displayed. This Rule engine is slightly different since it allows to select an attribute value that will be equal to the main product.

At last you just have to save the rule so that it is applied and that linked products are displayed on the right blocks (cross-sell, up-sell and related products).

Bargento 4 announced


Bargento 4 was announced. The event will take place Monday 22nd March Friday 28th March 2010 at Paris.

Program and Bargento place will be revealed soon.

Official announce in site (in french)

Magento: reload color images for configurable product

Let's talk about one situation. We are in shop made in Magento.

We are on configurable product page. One of configurable attributes is color. Wouldn't it be good idea, after color is chosen show only images of this color? It can be... and it's not hard to achieve.

First we must do some preparations:

Create attribute "image_storing" type boolean and add it to your attribute sets. Can be limited only to simple products.

For each color of superproduct (configurable+simples) choose one simple product and set value to yes, also to this product upload images of this color.

Now create new module called "imageswitch" (or whatever you want, just remember to change it in the following code).

In it you must have a controller looking like this:

class Baobaz_Imageswitch_IndexController extends Mage_Core_Controller_Front_Action
    public function indexAction()
        $prod_id  = (int) $this->getRequest()->getParam('prod_id');
        $color_value  = (int) $this->getRequest()->getParam('color_id');
        if($color_value) {
            $allProducts = $product->getTypeInstance(true)->getUsedProducts(null, $product);      
            foreach ($allProducts as $prod) {
                if ($prod->getData('image_storing') && $prod->getColor()==$color_value) { // && $prod->isSaleable()
            Mage::register('product', $prod_full);
        else {
            Mage::register('product', $product);

This controller will reload the whole media block, but for that we also need proper layout xml file


<?xml version="1.0"?>
<layout version="0.1.0">
        <reference name="root">
            <action method="setTemplate"><template>page/empty.phtml</template></action>
        <reference name="content">
            <block type="catalog/product_view_media" name="" as="media" template="catalog/product/view/media.phtml" />

and a layout html file - page/empty.phtml

<!-- start content -->
    <?php echo $this->getChildHtml('content') ?>
<!-- end content -->

Then we need to add some observer to catalog/product/view.phtml so we can reload it when the value of color is changed (attribute76 is the id of select for attribute color, it's default id if we use standard Magento attribute, if changed, may need adjusting)

function runajax() {
    new Ajax.Updater('product_media_content', '<?php echo Mage::getBaseUrl(); ?>imageswitch/index/index/prod_id/'+product_id+'/color_id/'+color_id, { method: 'get', evalScripts: true });

if ($('attribute76')) {
    Event.observe('attribute76', 'change', runajax);  

and add in the same file id of block to be added by changing :

<div class="product-img-box">
    <?php echo $this->getChildHtml('media') ?>

<div class="product-img-box" id="product_media_content">
    <?php echo $this->getChildHtml('media') ?>

and if all is done properly, now you should be able to see the effect. enjoy!