Magento
Magento: Product collection in any page filter by category attribute
OR: Or For Distinct Values:
OR: Or For Distinct Values:
Load Product Collection 1 2 3 $collection = Mage::getModel(‘catalog/product’)->getCollection(); or $collection = Mage::getResourceModel(‘catalog/product_collection’); Add Attributes To Collection The product model is an enormous data set, and the more attributes we include in the load the longer it will take. By default, Magento will only load the basic data found in Read more…
Open app/design/frontend/yourpackage/yourtheme/template/catalog/product/price.phtml if the file is not available in your theme folder copy it from base Find: // near line no : 397 according to magento 1.9 Add above it: add this custom code:
Loading Product Get Actual Pric: Get Special Price:
Open app/design/frontend/YourPackage/YourTheme/template/catalog/list.phtml Find (around line 61 for list view or line no 134 for grid view) // according to magento 1.9 change to: Next open style.css (skin/frontend/YourPackage/YourTheme/css/style.css)Find change to Below this add
For this, you need to edit /app/code/core/Mage/Directory/Model/Currency.php Note:– Do not change core functionality beside override the file in local folder Find the following :- code change this code to:-
Get attribute value for PLAIN TEXT, TEXTAREA or DATE type attribute: Get value from SELECT, MULTISELECT, DROPDOWN or YES/NO attributes: Get value from PRICE attributes: and in product list page, Get attribute value by attribute code and productID WITHOUT loading whole product
1-Create a new CMS page with content set to… 2- and a template for listing your products app/design/frontend/your_package/your_theme/template/inchoo/onsale/sale.phtml 3-Create a Category(On Sale) and call the static block in the category. 1- create category on sale. 2- inside category go to Display setting select display mode to static block only. 3-And Read more…
Or DB Connection Code : —————————————————————————————————————— —————————————————————————————————————— loop: ——————————————————————————————————————