Magento
Magento: New Product label on list page
1- Create a attribute as follow: 2-Assign it to your attribute set: 3- select this attribute value to yes in product section: 4- Use the following code in list.phtml: Or By Using Code
Magento
Magento: Copy products from one category to another category
Sometime we need to copy same products to another category.(Like we have two stores with same category ) Adding product from back-end is very time consuming process you can do it by code. You can create a file in your root directory copy-products.php with the following code to copy product:
Magento
Magento: How to get customer session in external file.
Customer Session : Magento Session from external page (same domain)
Magento
Magento: Frontend url in Transactional Emails
Example: http://192.168.0.57/suplementosgym-stage/skin/frontend/default/suplementos/images/logo_sgym_3.png
Magento
Magento: Background Image trnasperent code :
Image background trnasperent code : ->keepFrame(false)
Magento
Magento: custom titile for any page
1- In page app/design/frontend/rwd/default/template/page/html/head.phtml template replace default: with this or if you don’t wish to use title prefix/sufix added from Magento admin, simply with And now just set “forced” title for pages through layout files Example for My Account page in layout/customer.xml:
Magento
Magento: Clear / Delete Shopping Cart Items of Single or All Customers
For current Login customer: If you want to clear all shopping cart items of all customers then you can use the following code: If you have a large number of customers quotes then deleting them by using loop might be time and resource consuming. You can clear/delete all customers cart Read more…