I try to add a product rather than as a new product but still be accessible from other pages such as categories or related products. In the admin panel, Set Product as New from Date and Set Product as New to Date has been filled in correctly. But the product still exists in the block of new products on the home page.
File edited from public_html/app/code/core/Mage/Catalog/Block/Product/New.php
This the code :
PHP Code:
$collection = Mage::getResourceModel("catalog/product_collection'); $collection->setVisibility(Mage::getSingleton('catalog/product_visibility')->getVisibleInCatalogIds());
$collection = $this->_addProductAttributesAndPrices($collection)
->addStoreFilter()
// this is the code i've edited
->addAttributeToFilter('is_new_product', array('eq' => 1))
->addAttributeToSort('news_from_date', 'asc')
->setPageSize($this->getProductsCount())
->setCurPage(1)
;
Can someone please explain?
View more threads in the same category:
- Portable rv air conditioner
- Transforming Karachi's Skylines with Fiber Shades
- Unveiling the Power of E911 Solutions Enhancing Caller Identification
- List of Top 10 Interior Designers in Pakistan
- buy registered drivers license online(legitcleandocs.com)passport,IELTS certific
- Malaysia Visit Visa from Dubai
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
- 슬롯사이트 추천 - 인터넷슬롯링크 2024 best 온라인슬롯
- Buy Passport,Driver License,Age & ID Card,(Whatsapp:.......: +1 (551) 239-2904) Visas
- Buy Passport,Driver License,Age & ID Card,Visas and Undetected Counterfeit Money. Ema
Bookmarks