To display contact number of magento store, we need to just copy and paste the code given below, where we want.
Mage::getStoreConfig('general/store_information/phone');
Use the code given below to unsubscribe the email.
Mage::getModel('newsletter/subscriber')->loadByEmail($emailAddress)->unsubscribe();
This Magento upgrade tutorial will help guide you through the process of updating / upgrading your Magento installation from 1.4+ to 1.7.0, which was released on April 24, 2012. For the purpose of this tutorial, we will assume you have ...
In many of my projects faced problem like session timeout in magento i.e. when i am importing products when those are of greater then count 5000 so i came up with the solution given below hope this could help you ...
Megento does not allow to delet orders created, but even sometime we nee to delete orders, for deleting particular order we must know the order id, i.e. we can get order id from magento admin section now execute sql query ...
set default base, thumb, small image to first image.
If you have multiple images per product from your import, Magento might have set the LAST one as the default base, small, and thumb image for all of your products! This ...
Adding a custom comment box for each item in the cart is actually very easy.
First lets add the textarea field for each item.
open file: template/checkout/cart.phtml
Add the new heading along with other heading for cart items.
<th><?php echo $this->__('Comments') ?></th>
Open file: template/checkout/cart/item/default.phtml
Add ...
Magento sends the credit card number openly by email,
which is not secured at all. Here is how we can remove it.
Step 1: Open the file
app/design/frontend/default/your_theme/template/payment/info/cc.phtml
Step 2: Find the lines that read:
<?php echo $this->__('Credit Card Number: xxxx-%s', $this->htmlEscape($this->getInfo()->getCcLast4())) ...
Creating a store view for a language is not too hard in magento follow the steps given below and you are done with it.
Step 1: Download the language pack you need and then unpack it to your Magento install ...
Some time we need to display custom option of product on category list page
to achive this task we only need to paste the code given below in your list.phtml file
$productSku = $_product->getSku();
$product = Mage::getModel('catalog/product');
$productId = $product->getIdBySku( $productSku );
$product = Mage::getModel("catalog/product")->load($productId);
$attVal ...
