Viewing 21 to 30 of 34 items
Archive | Back-end RSS feed for this section

Fatal error: Class ‘Zend_Pdf_Color_RGB’ not found in magento using zend library

When you use want to replace this code $page = $this->newPage(); by this: $pdf->pages[] = $pdf->newPage('4:6:'); but the results is: Fatal error: Class 'Zend_Pdf_Color_RGB' not found app/code/core/Mage/Sales/Model/Order/Pdf/Shipment.php   It is common issue, if you are using Windows you can't see this issue, but when you upload it to your Linux server you will see. It  Full Article…

0

Magento – “Item (Mage_Catalog_Model_Product) with the same id ”xxx“ already exist”

I have been getting this error when trying to filter a products collection Item (Mage_Catalog_Model_Product) with the same id "7631" already exist and wanted to ask what could ne causing the error since there is only one (visible) product with the same ID inside of Magento. ———————————————————– Here is the solution i did to solve the  Full Article…

2

Magento – DIRECT SQL QUERIES IN MAGENTO

Magento’s use of data models provide a great way to access and modify data. Using aptly named methods and clever abstraction, Varien hide away the complex SQL needed to perform data operations. While this makes learning models easier, it often impacts the speed of the operation and therefore the responsiveness of your site. This is  Full Article…

0

Magento – HOW TO EXCLUDE BLOCK FROM THE FULL PAGE CACHE

Magento Enterprise Edition Full Page Cache is a great feature that significantly improves the frontend performance. Nevertheless, it is causing the troubles with the customisations that require the dynamic content output. As you may know, the customer and cart information custom outputs are the first “victims” there, especially, if you migrated your Magento store from Community  Full Article…

0

Magento : Get Store Id, website Id, website info

After hours of searching on Google, i find out some ways to get Store and Website info 🙂 Get current store:       Mage::app()->getStore(); Get current store Id: Mage::app()->getStore()->getId(); Get current website Id: $storeId = Mage::app()->getStore()->getId(); Mage::getModel(‘core/store’)->load( $storeId )->getWebsiteId(); Get store info by store code: $storeCode = “your_store_code”;   Mage::getModel( “core/store” )->load( $storeCode ); Get website info  Full Article…

0

How to add custom product attribute in PDF invoice Magento

i am trying to add custom attribute , product(book) publisher name below product name in PDF invoice(like in image)& publisher is custom attribute created by me by copy app/code/core/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php to app/code/local/Mage/Sales/Model/Order/Pdf/Items/Invoice/Default.php with following code in default.php but this not working     class Mage_Sales_Model_Order_Pdf_Items_Invoice_Default extends Mage_Sales_Model_Order_Pdf_Items_Abstract { /** * Draw item line */ public function  Full Article…

0

Custom module: Access denied (ACL Problem)

I created a module, and it works perfectly; however, I hit a wall. When I'm logged in as admin, everthing is good. I added this in the acl:     <?xml version="1.0"?> <config> <menu> <erp translate="title" module="firtal_deadstock"> <title>ERP</title> <sort_order>99</sort_order> <children> <stock_management module="firtal_deadstock"> <title>Stock Management</title> <children> <firtal_deadstock> <title><![CDATA[Firtal Stock Analysis]]></title> <sort_order>99</sort_order> <action>adminhtml/deadstock</action> </firtal_deadstock> </children> </stock_management> </children>  Full Article…

0