Magento
Magento get attribute value or name
In the following code att_code is the code value of your attribute that you give for your custom attribute.
Magento
Magento: Get configurable product attributes
When dealing with configurable products.You need getTypeInstance() method. 1-For all available attribute options: 2-For attribute code(color) options: 3-For attribute code(size) options:
Magento
Magento: Get user Details in admin panel
Sometime we need to show some extra information about user: you can do this task with the following code: You can get admin user data like ID, Email, First Name, Last Name, User Name, Password
Magento
Magento: change Catalog Price to 3rd decimal point
Magento prices to display and round to the third (3rd) decimal point you need to override these files: lib/Zend/Currency.php Change: To Override file from core to local and change at the bottom app/code/local/Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Options/Option.php Change: To: app/code/local/Mage/Adminhtml/Block/Catalog/Product/Helper/Form/Price.php Change: To: app/code/local/Mage/Core/Model/Store.php Change: Read more…
Magento
Maagento: How to create an unsubscribe page
1. Create a “unsubscribe.phtml” page with the following code: 2. Create a CMS page Name ‘Unsubscribe’ and url ‘unsubscribe’ and call that “unsubscribe.phtml” page in your cms page. 3. Now in page /app/design/frontend/your_package/your_theme/template/newsletter/subscribe.phtml add the follwing code to add a Read more…
Magento
Magento: unsubscribe link in Newsletter mail templete or in phtml page
Unsubscribe Link in Mail Template: Unsubscribe Link in Phtml page:
Magento
Magento: get store information
In magento a website can have multiple stores if you require information like: store id, store code, store name, etc. You can do this with the following code: Get store data array:: Get store ID: Get store code: Get website Read more…
Magento
Magento: Upgrade via Magento Connect
To upgrade your Magento version use the following steps: First make a fresh backup your database and file system. clear and disable all Magento caches at System > Cache Management: Disable Magento Compiler Navigate to System > Magento Connect > Read more…