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...
Latest posts
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...
Creating a custom Magento module
Creating a custom Magento module posted by ekononov Magento community provides us with a great variety of modules (free and paid), available for downloading and installing from Magento Connect catalog, and from 3rd party developers' websites. Together with the rich...
create filter by attribute (my code)
$attribute = Mage::getModel('eav/config')->getAttribute('catalog_product', 'forme_shape'); foreach ($attribute->getSource()->getAllOptions(true, true) as $instance) { // $myArray] = $instance; //$productCollection_shape= $category_shape=Mage::getModel('catalog/category')->load($idcats); $productCollection_qty = $category_shape->getProductCollection() ->addAttributeToSelect(array('name', 'forme_shape')) ->addAttributeToFilter('forme_shape', array('eq' =>$instance )) ->count(); //print_r($productCollection_qty); if($productCollection_qty>0) { $myArray] = $instance; } } //print_r($myArray);
magento: get all attribute options
Mage::getSingleton("eav/config")->getAttribute("catalog_product", $attribute_code); $options = $attribute_details->getSource()->getAllOptions(false);
Laravel: Load method in another controller without changing the url
Use IoC... App::make($controller)->{$action}(); Eg: App::make('HomeController')->getIndex(); and you may also give params App::make('HomeController')->getIndex($params);
Magento Add an External JS/CSS file to Magento
<reference name="head"> <block type="core/text" name="mybuyscsscode"> <action method="setText"><text><!]></text></action> </block> </reference> <reference name="head"> <block type="core/text" name="jquery"> <action method="setText"><text><!]></text></action> </block> </reference>