Then enable ” Use Web Server Rewrites “ to yes .
Category Archives: 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.
How to add cross-sell to a product – 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.
How to get the page identifier – Magento
<?php $pageId = Mage::getBlockSingleton('cms/page')->getPage()->getIdentifier() ?>
How to read the current logged in admin details – Magento
<?php Mage::getSingleton('core/session', array('name' => 'adminhtml')); $session = Mage::getSingleton('admin/session'); if ( $session->isLoggedIn() ){ echo "Admin is logged in"; } ?>
How to check if an user is logged in – Magento
<?php if ($this->helper('customer')->isLoggedIn() ){ echo '<a href="<?php echo $this->getUrl('customer/account/login/');?>">Login</a>'; }else { echo '<a href="<?php echo $this->getUrl('customer/account/logout/');?>">Logout</a>'; } ?>
How to get the logged in user details on phtml page – Magento
<?php $customer = Mage::getSingleton('customer/session')->getCustomer(); $email = $customer->getEmail();// for email address $firstname = $customer->getFirstname();// For first name $lastnam e= $customer->getLastname();// For last name ?>
How to get the current page url – Magento
<?php $currentUrl = $this->helper('core/url')->getCurrentUrl(); // Displays URL of the current page ?>