Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How can I style promotions? 
 
Volzy
Jr. Member
 
Total Posts:  9
Joined:  2007-12-21
Frederiksberg C, Denmark
 

Hi everyone

I’m working on a three column-based layout. The Left is my navigation, the center is my content area and in the right column I want special offers (promotions) to feature. I’ve added:

<reference name="right">
    <
block type="catalog/category_view" name="category.products" template="catalog/category/promotion.phtml">
               <
block type="catalog/product_list" name="product_list">
            <
action method="addAttribute"><code>promotion</code></action>
        </
block
          </
block>
</
reference>

In catalog_category_default and catalog_category_layered. It displays the result perfectly, but how can I add a template for the output? It currently displays the same styling as the product list in my content area, but I want to create a new type of design for my special offers (in the right column)

I’ve tried searching the Forum, Knowledge base and Wiki. Coulnd’t find anything… A kind soul who can point me in the right direction? smile

- Volzy

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

if you want to assign custom template to catalog/product_list block, just add it to the tag, same like in catalog/category_view:

<block type="catalog/product_list" name="product_list" template="catalog/product/list/my_template.phtml">
 
Magento Community Magento Community
Magento Community
Magento Community
 
Volzy
Jr. Member
 
Total Posts:  9
Joined:  2007-12-21
Frederiksberg C, Denmark
 

Thanks.

However it won’t display the changes I’ve made :|

I’ve inserted some extra DIVs in order to style it properly, but they’re nowhere to be found. My host is acting a bit weird today - so could be it. No matter what I appreciate your help smile

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top