Archive: template catalog

 

Posts Tagged ‘template catalog’


I’m trying to set the sort order in the category view for magento. In /app/design/frontend/template_name/default/template/catalog/product/list.phtml the product category is called this way: $_productCollection=$this->getLoadedProductCollection(); Is there a possibility to sort this collection using e.g. the following? For the record, this doesn’t work. ->addAttributeToSort(‘updated_at’,'asc’)->setOrder(‘updated_at’, ‘asc’) Thanks in advance, Maarten Magento – Sort on date updated in category [...]



 

I’m trying to display the send to friend form under a tab in Product View. I inserted the following code under /app/design/frontend/default/mytemplate/layout/catalog.xml <action method=”addTab” translate=”title”> <alias>send-friend</alias> <title>Send Friends</title> <block>sendfriend/send</block> <template>sendfriend/send.phtml</template> </action> I inserted the code inside: <block type=”catalog/product_view_tabs” name=”product.info.tabs” as=”info_tabs” template=”catalog/product/view/tabs.phtml” > Problem is that it isn’t working… I get a message from the browser [...]



 

I’m trying to get a certain category to display on one of my pages and I some strange results. I’m using the following code to load the category with the ID of 5 $category = new Mage_Catalog_Model_Category(); $category->load(5); However, this returns NO results, even though there are products in the category. I’ve changed the ID [...]



 

In the web-shop i’m creating we want the customers to see the category new as they are landing in the shop. Our configuration in the whole catalog is an layout of 4 items next to each other, like below: four items in one row *sorry i am not yet allowed to post pictures I’ve made [...]



 

When using Magentos log facility Mage::log() it sometimes causes a white screen. No error messages are outputted either to the screen or any of the log files (var/log/system.log, var/log/exception.log ) This seems to happen only when I’m trying to log a very large object. for example when I’m trying this Mage::log(Mage::helper(‘catalog/category’)->getStoreCategories()); inside a block controller [...]



 

I’m working on a Magento 1.6 site, which has the following xml inside the home page’s CMS “Layout Update XML” field: <reference name=”content”> <block type=”catalog/navigation” name=”catalog.category.home” as=”homecategory” template=”catalog/category/homecategory.phtml” /> </reference> As the template shows randomized categories, I would like to disable caching for this block. To do so, I attempted using getChildHtml(‘sub-block-template’, false) with the [...]



 

So I’ve been looking for a way to change the Stock Availability back to In Stock when the quantity field is greater than 0. The system already automatically changes the Stock Availability to Out of Stock when you set the quantity to 0 and save the product. I would like a way to set it [...]



 

i have created a list_home.phtml that i call from {{block type=”catalog/product_list” category_id=”6″ template=”catalog/product/list_home.phtml”}}The category is very important because i will have 3 tabs in this homepage slider.This is a version of the product list without toolbar to include in a homepage slider, where the user should never be able to change the sorting. However in [...]



 

By default there are two widgets for showing product link… Here: app\design\frontend\default\mytemplate\template\catalog\product\widget\link\link_block.phtml and here: app\design\frontend\default\mytemplate\template\catalog\product\widget\link\link_inline.phtml And they can be seen here: I need a custom widget that will show Product name (link) + lowest price. I presume that duplicating some of existing would be a start e.g. \template\catalog\product\widget\link\link_custom.phtml What next? Custom Catalog Product link widget [...]



 

I need help with resizing the “more views” on the product page when it is configurable product. I resized the “more views” image from 56X56 t0 90X135 by changing the dimension on app/design/frontend/default/mytheme/template/catalog/product/view/media.phtml. When I first click the the product, the “more views” image dimension is correct, but when I click the option, the “more [...]