DB::table('users')->insert( array('email' => 'john@example.com', 'votes' => 0) ); Inserting Records Into A Table With An Auto-Incrementing ID If the table has an auto-incrementing id, use insertGetId to insert a record and retrieve the id: $id = DB::table('users')->insertGetId( array('email' => 'john@example.com',...
Month: January 2015
Reset password Magento
UPDATE admin_user SET password=MD5('qXpassword') WHERE username='admin'
Déplacer – Copier Magento vers un autre Domaine ou Dossier
Pour Copier Votre Magento Il faut : Copier le dossier qui contient votre Magento Mettre les droit au nouveau dossier (777 / 755) Supprimer la cache /VotreMagento/var/cache Copier la base de donner Editer core_config_Data Editer .htaccess Editer /VotreMagento/app/etc/local.xml Editer core_config_Data...
magento create custom module
Magento for Developers: Part 5 - Magento Models and ORM Basics Category: Development Alan Storm, updated for Magento 1.12 by Magento The implementation of a "Models Tier" is a huge part of any MVC framework. It represents the data of...
Selling or buying in other provinces or territories: which sales taxes apply?
Selling or buying in other provinces or territories: which sales taxes apply? Whenever your company does out-of-province business, different sales taxes may be required. This includes GST, HST and possibly the provincial or territorial sales taxes. We want to help...
How to calcul tax canadien online marking
TAUX DE TAXES 2015 TVH, TPS ET TVP Province du Canada Type de taux (TVH, TPS, TVP) Taux provincial Taux au Canada Total Alberta TPS 0% 5% 5% Colombie Britanique TPS + TVP 7% 5% 12% Île du Prince Édouard...
Using Collections in Magento
A collection is a Model type containing other Models, it is basically used in Magento to handle product lists (ie. from a category or a bundle option), but not only. TO DO: Explain how Magento Implements a collection - Use...
import the image to magento programmatically
1.use function addImageToMediaGallery addImageToMediaGallery (line 956) Add image to media gallery access: public void addImageToMediaGallery (string $file, , , ) string $file: file path of image in file system string|array $mediaAttribute: code of attribute with type 'media_image', leave blank if image...
Creating a Magento custom model
Creating a Magento custom model Posted by Yongji Chen Tags: custom model Magento In this tutorial, we will create a custom model that uses a different name than the Module name. The Module tree will look like as shown in...
Image Type and Size
The following image types are used throughout the catalog, and you can choose which image you want to use for each. If you do not assign an image to each type, a placeholder image will be used instead. Thumbnail The...