Saturday, April 7, 2012

DogFight Error


Dog Fight

Friday, April 6, 2012

DogFight Error


Sunday, March 25, 2012

Yii title form show attribute label text on hover

'title'=>$model->getAttributeLabel('comments')

in the protected/views/Products/_form.php



Yii Log


Yii Log

in the protected/config/main.php

you can set the yii logs to save to a file or email or show them in the page itself





Saturday, March 24, 2012

second database connection in Yii


/opt/lampp/htdocs/projectmanager/protected/config/main.php








































now to use the second database conenction.. we'll put a function inside the controller

/opt/lampp/htdocs/projectmanager/protected/compents/Controller.php

inside the Controller class
class Controller extends CController



public function init()
{
$this->writeToLog('Object Initialization');
}




Friday, March 16, 2012

Magento Bulk Update Product Description MySQL


bulk update product description before check the attribute_id in magento_eav_attribute
should be the same :)

check....
SELECT * FROM `magento_eav_attribute` where attribute_id = 66

btw i am using Magento Community Edition 1.6.2

UPDATE `magento_catalog_product_entity_text
SET value =  'this guide only and not necessarily of the 
exact size and may differ in features.' 
WHERE attribute_id =66





Thursday, March 15, 2012

Magento get Product SKU and custom attributes in Product View



Template File: A:\xampp\htdocs\gs\app\design\frontend\default\grayscale\template\catalog\product\view\attributes.phtml


what i have done is in the Product View

i am only showing attributes not equal to 'NO' or greater than zero

and added $_product->getData('range');  to get the custom attributes

and $_product->getSku('sku'); to get the sku value

refer the code file app\code\core\Mage\Catalog\Model\Product.php there are more functions you can use there


















    

About

Blogger templates