04fév2012
Auteur
Eric Wallet
Categorie
Magento, PHP
Snippet – Magento : Charger un produit par son SKU Thumbnail

Snippet – Magento : Charger un produit par son SKU



Le plus simple pour charger un produit par son SKU est de charger le produit par un Attribut nommé (loadByAttribute).


<?php
$prd = Mage::getModel('catalog/product')->loadByAttribute('sku',$sku);
?>
Auteur
Eric Wallet

A propos de l'auteur

à rédigé 32 articles sur Tellaw.org.

Partager c'est apprendre.
  • Subscribe to our feed
  • Share this post on Delicious
  • StumbleUpon this post
  • Share this post on Digg
  • Tweet about this post
  • Share this post on Mixx
  • Share this post on Technorati
  • Share this post on Facebook
  • Share this post on NewsVine
  • Share this post on Reddit
  • Share this post on Google
  • Share this post on LinkedIn

Discussion

Aucune reponse to "Snippet – Magento : Charger un produit par son SKU"

Il n'y à aucun commentaire, postez en un.

Déposez un commentaire