Category Archives: Magento
Install new theme magento
“new-theme ” is the theme name .
app/design/frontend/new-package/new-theme
skin/frontend/new-package/new-theme
NOTE : FYI , By default “base” is the package name and “default” is the theme name as far as the design
part is concerned .
In case of css and images , magento use files from the package “default” also .
2) Move the folders “app” and “skin” of the new theme to the root of your magento installation so that these
files will get merged with the existing magento folders “app” and “skin”.
make sure that the folders are moved .
3) Then after logged into the admin panel , go to system -> configuration and click on the option (sidebar
menu) “Design” under the main category “general” .
Fill the fields and under the tabs “Package” and “Theme” and save the data .Have a look at the below
given image .
Edit "Send Emails To " email on contact us page – Magento
Check whether a module is installed – Magento
$modules = Mage::getConfig()->getNode(‘modules’)->children();
$modulesArray = (array)$modules;
if(isset($modulesArray[‘Mage_Blogl’])) {
echo “Blog module exists.”;
}
?>
Product URL in a custom Module- Magento
<?php
echo Mage::helper(‘catalog/product’)->getProductUrl($products[$counter]->product_id);
?>
How to print the number of reviews of the product – Magento
$storeId = Mage::app()->getStore()->getId();
$summaryData = Mage::getModel(‘review/review_summary’)->setStoreId($storeId)->load($_product->getId());
?>
Remove index.php from site url – magento
Use a Coupon Code for Specific Products – Magento
In our Magento ACP, simply click on Shopping Cart Price Rules (Which is under the top menu “Promotions”) – and then click Add New Rule.
On the left you can see three tabs, in the uppermost one you’ll have to name your Price Rule, choose which website it will be activated on and what customers will see it, and also name the actual coupon code itself.
Then click on the next tab entitled “conditions” which is the important one, as this area specifies which products/categories will be available for the promotion. So, click the little green plus, and then select “Product Attribute Combination” .
After that again click on the next green button and select the option “SKU”(A unique name given to each products) from the dropdown .
Then modify the value of “IS” to “IS ONE OF” and the click on the small rectangular box (which is white in color ) .
You can all the products added . please sleect the products for which you want to add promotion .
Further click on the next tab “Action” where you have to mentoned discount amounnt and all .
Save all these details and inform the users about this promotion by sending newsletter
How can I include an iframe tag in a CMS page? – Magento
Click on show/hide edior button and add the code with iframe
Add the block "Based on your selection, you may be interested in the following items " – Magento
1) In the Admin Panel, select Catalog > Manage Products.
2) Select the product you wish to configure cross-sell products for by clicking its respective row.
3) Click on the Cross-sells tab from the left side panel.
4) Click on the button “Reset Filter” and select the products to be listed
5)Once cross-sell products are selected, click Save at the top right of the page.
6) Clear your cache and refresh the product information page to assure that it’s working to your satisfaction.



