Recent Posts

Monday, December 12, 2011

Pourquoi Greg doit rester à Paris!

Greg Beuthin, de nationalité américaine, bilingue anglais/français, est salarié de Commerce Guys à Paris depuis sa création en avril 2010. Il s'est spécialisé depuis 5 ans sur Drupal, une des technologies les plus florissantes du web aujourd'hui et dont la popularité croît plus vite que le nombre d'experts. Et pour cause, son métier figure sur la liste des métiers sous tension en France.
Greg fait partie des meilleurs experts de l'hexagone sur cette technologie, mais surtout, il est l'un de ceux qui œuvrent le plus à la transmission de ce savoir. Unique formateur DrupalCommerce en France, il est en charge de former d'autres formateurs au sein d'organismes de formation à Paris et en province, et il est l'organisateur bénévole de Réunions d'information sur Drupal (Drupal meet-up).
Cette action est très bonne pour l'économie et l'emploi du pays, en particulier en cette période de crise. En effet, si vous voulez trouver un emploi en 2012, apprenez à maîtriser la technologie Drupal, vous êtes certains de trouver un travail. La présence et le dynamisme et l'expertise de Greg à Paris contribuent à la formation de techniciens et ingénieurs français qui peuvent ensuite plus facilement trouver un emploi en France. Son rôle d'encadrement en tant qu'expert senior est un élément structurant de la capacité de Commerce Guys à continuer son développement et à recruter en 2012.
Il y a quelques jours, Greg a reçu du ministère de l'intérieur un refus du renouvellement de son VISA de travail, et une injonction de quitter le territoire sous 30 jours.
Nous (pas moi, mais Commerce Guys) avons donc pris un avocat conseil et avons réuni toutes les pièces permettant de démontrer que Greg ne "prend pas la place qu'un chômeur français pourrait occuper". Nous attendons aujourd'hui le retour de la préfecture sur ce dossier, avec espoir. La décision de la préfecture est "discrétionnaire", elle a donc complète autorité pour juger si le cas de Greg mérite d'être reconsidéré. Nous nourrissons l'espoir que la raison économique  l'emporte sur des considérations politiques.

Translation: http://t.co/RHdhDngb

 

Thursday, September 8, 2011

How I built a Commerce Site

I 'll give the big lines of how I built http://makeupcosmeticsdiscount1euro.eu/ .

HomePage

The homepage has the following items :
  • For the Title I used the  Google Fonts module
  • The menus are menus in Menu Blocks configured to be shown on a specific language
  • The three products next to the big image is ... a view. Later I want to implement the Nodequeue module for this.
  • The Shopping Cart is a Custom one (with jQuery) . Tnx http://drupal.org/user/858054 who helped me with the shopping cart. 
The Core of the site is the Taxonomy term list that is named "Catalogus".  This list is a list of all main-menu-items. So in my case: Gezicht, Ogen, Lippen, etc. Every item gets an Image (image_ref_group) like this one.


This image is used on the "Product Group Page", what is the "Group-Product-Display" view where is shown the "Image Reference Group" next to the Images, representing the products. 
The "Product Group Page" is a view that combines a Page-View with a Block-View. The Page-View uses a Contextual filters with a path: /taxonomy/term/% . The Block-View is a Grid with also a Contextual filters (taxonomy term ID from URL). 
To know how to do this I looked at the screencast of Bob http://mustardseedmedia.com/podcast/episode39 .


Product Group Page

The thumbs are "Image reference product" images  (field_img_ref_product) . These are added while creating the Product Display.


The Product Display



Product Display Fields

In the Product Display, the title is excluded from display, Language (taal) is chosen, Catalog category is the Term reference , select the products to be displayed and the "Image reference product" so the thumb used to represent the products on the Product Group page. 

Part of the "add Product Display" page

Last part of the "add Product Display" is to choose to what menu the Display belongs. This depends on the language and the product. There are two menu- types. There is a menu for "general-products" and for "dark-skins-products". Every language has it's own menu. I'm not sure if this is the best solution. It was the best when I started to create the site.

Menu Settings on the "add Product Display" page
Here are the fields on the Product type.

Product Type Fields



You find here two prices because there isn't yet a module that can show a "base-price" and a "discount-price", but that will change soon.



Sites to visit:
http://www.drupalcommerce.org/
http://drupal.org/project/commerce

I cannot finish this article without a big Merci for some people.

Most of all Ryan Szrama (http://drupal.org/user/49344) for building Drupal Commerce and his help to build this site. But also Randy Fay (http://drupal.org/user/30906) , Jakob Torp (http://drupal.org/user/386230) , Erwin Derksen (http://drupal.org/user/750928) and lots of others.

Tuesday, September 6, 2011

Attributes (colors e.g.) as images in product display ?

For my Drupal 7 and Commerce project : http://makeupcosmeticsdiscount1euro.eu I needed to find a way to replace the radio-buttons by color-images.

This is the result :



Erwin Derksen for http://www.burorader.com helped me to build a module for that function.

First of all. The product gets an Image, representing the color of the product. (field_image_color) and a Term reference to be able to link the color-image to the product in the Product Display (field_product_color) .



The attribute selection widget in the Term reference setting must be set to Radio buttons.


This is a part of the product creation page where I add the color-image and the color-name.



That's it for the settings.

The module.

You can find the files on http://drupal.org/node/1180016#comment-4952374

Implements hook_form_FORM_ID_alter(). See http://api.drupal.org/api/drupal/modules--system--system.api.php/function/hook_form_FORM_ID_alter/7 .

This hook alters the add-to-cart forms on product display pages by adding javascript to a set of radio buttons that define the possible colors on a product display. This can be used to alter the display of the set of radio buttons.

The steps:

  • Retrieve the product-id's.
  • Load all the active products intended for sale on this form.
  • Load all the terms.
  • The radio buttons are displayed based on the term-id's, so we have to couple the images (in the product) to the term-id's.
  • Add class and javascript to radios.
The attached files are custom made for http://makeupcosmeticsdiscount1euro.eu so maybe needs some adjustments to be used on other Commerce sites.

CSS

Last step is to use css to put the images the way they need to be placed on the page.

Monday, June 13, 2011

Over or Under? The Great Toilet Paper Debate

Toilet Paper Rules
Via: Engineering Degree

Saturday, March 19, 2011

Microsoft apologizes to web developers for IE 6






From the #DrupalCon Chicago

Thursday, March 10, 2011

The Internet Explorer 6 Countdown

10 years ago a browser was born.

Its name was Internet Explorer 6. Now that we’re in 2011, in an era of modern web standards, it’s time to say goodbyeThis website is dedicated to watching Internet Explorer 6 usage drop to less than 1% worldwide, so more websites can choose to drop support for Internet Explorer 6, saving hours of work for web developers.


But, instead of downloading IE8, you can (better ??) browse websites with any one of these :
FireFox,
Chrome,
Opera or
Safari.
To be downloaded for free. 
If you are using a work computer where you are not allowed to install software yourself you can use Portable Apps to make it possible to run FireFox without even having to "install" it...

Thursday, March 3, 2011


stickycomics