Managed web solutions
Magento: Move Related Products to centre column in Modern theme
The modern theme made available by the good folks at Varian for their free e-commerce product Magento is a great template and a good starting point for anyone looking to customise magento for their own look and feel. However, the default layout has the Related products block in the left hand menu which unless you have very long product descriptions can leave the page unbalanced.
These instructions will move the block to to the centre under the product descriptions.
You can see this at work here on a <a href=”http://www.cl-floraldesigns.co.uk”>wedding flowers</a> site.
In catalog.xml find
<reference name=“right”> <block type=“catalog/product_list_related” name=“catalog.product.related” before=“-”template=“catalog/product/list/related.phtml”/> </reference>
Remove or comment out
<block type=“catalog/product_list_related” name=“catalog.product.related” before=“-”template=“catalog/product/list/related.phtml”/>
Change the following to include the above…
<block type=“core/template_facade” name=“product.info.container2″ as=“container2″> <action method=“setDataByKey”><key>alias_in_layout</key><value>container2 </value> </action> <action method=“setDataByKeyFromRegistry”><key>options_container</key> <key_in_registry>product</key_in_registry></action> <action method=“append”><block>product.info.options.wrapper</block></action> <action method=“append”><block>product.info.options.wrapper.bottom</block> </action> </block> <action method=“unsetCallChild”><child>container1</child><call>ifEquals</call> <if>0</if><key>alias_in_layout</key><key>options_container</key></action> <action method=“unsetCallChild”><child>container2</child><call>ifEquals</call> <if>0</if><key>alias_in_layout</key><key>options_container</key></action> </block> <block type=“catalog/product_list_related” name=“catalog.product.related” after=“-”template=“catalog/product/list/related.phtml”/> </reference>
Note the use of after=“-” instead of before=“-”
You may need to restyle it depending on your layout.
Rock solid speed and reliability
Robust, reliable, fully backed up, secure UK based Magento hosting for £175 per year. Full details here or Contact us
| Print article | This entry was posted by admin on January 1, 2010 at 12:00 pm, and is filed under Magento. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
No trackbacks yet.
10 Open Source e-commerce solutions reviewed
about 3 days ago - No comments
Here is what they had to state about magento our prefered solutuion. http://www.magentocommerce.com Varien, a Los Angeles web development firm is the brainchild behindMagento, and my what a fantastic job they have done on this product. It’s by far one of the more exciting e-commerce platforms available for free on the market today. Dripping with
Smashing Magazine releases free Magento theme
about 5 days ago - No comments
From Smashing Magazine Today we are glad to release a yet another freebie: Polaroid Magento Theme, a professional design skin for the shops powered by the popular open-source ecommerce web application Magento. The theme was designed by eCommerce-Themes and released for Smashing Magazine and its readers. As usual, the theme is absolutely free to use
House keeping for your Magento database
about 2 weeks ago - No comments
To see if you have a problem open phpmyadmin and click on the database name in the left hand menu. This will list all your tables in the right hand window and you will see the size of your different tables. Look at all log tables ie log_customer log_quote log_summary log_summary_type log_url log_url_info log_visitor log_visitor_info
Smashing Magazine releases free Magento theme : Sigyn SM
about 3 weeks ago - No comments
From Smashing Magazine We love our readers. We respect the hard work of designers and developers across the globe. And we do our best to make the web design community stronger and the Web a little bit prettier. Therefore we work with talented artists and creative professionals to showcase their skills and release something unique
Change Check to Cheque / Money order to Postal order in Magento
about 1 month ago - No comments
I assume that the translation packs are meant to change this and indeed if you look in the relevant .csv files you will see that there are entries for all references to checks / cheques. However, this does not appear to be working as intended. If you switch on in line translation (system > config
magento modern theme : HMTL code in the price of the additional product information
about 1 month ago - No comments
If you are seeing something like: In the additional product information section in Magento 1.4+ you are seeing the result of a bug as reported here : http://www.magentocommerce.com/bug-tracking/issue?issue=9577 However, a quick fix is to edit your template version of : /app/design/frontend/default/yourtemplate/template/catalog/product/view/attributes.phtml and replace line 47: <td class="data"><?php echo $_helper->productAttribute($_product, $_data['value'], $_data['code']) ?></td> with: <td class="data"><?php
Magento emails not sending to free email accounts eg gmail aol hotmail
about 1 month ago - 1 comment
The fix that got us moving again was to activate the return path for all emails sent. System > config > advanced > system > mail sending settings > set return path > YES
Where did all my line breaks go in product descriptions?
about 1 month ago - No comments
The fix is quite easy. You just need to edit a copy of description.phtml (/app/design/frontend/default/{YOUR-TEMPLATE}/template/catalog/product/view/description.phtml) << don’t mess with the original make a parallel theme. Change: <?php echo $_helper->productAttribute($_product, nl2br($_product->getShortDescription()), ‘short_description’) ?> to <?php echo $_helper->productAttribute($_product, $_product->getShortDescription(), ‘short_description’) ?> i.e. your just putting back the PHP function to convert newline to BRs.
Fix missing Layered navigation in Magento
about 7 months ago - 1 comment
Simply log onto your back end System > cache management > Layered Navigation Indices > rebuild now. hey presto all should be well again.
Fix Invalid Category error in Magento.
about 7 months ago - No comments
This is a trick error with very little information floating around on it. There are various reasons why it happens but essentially something has caused your default store view to forget what the default category is. magento may throw up a Mage::throwException(’Invalid categor…’) error in the diagnostic info. The fix is easy. Log into admin

about 3 months ago
Hi There,
I have an issue with Relate products.
Example:
Product 1 (Category 1)
Product 2 (Category 1)
Product 3 (Category 1)
I have three products in my store. I have added the product 2 and product 3 as related product for product 1 in admin section. I did same with all products. Product 2 having its related product as product 1 and product 3. Product 3 having its related products as product 1 and product 2. I did all in admin section. But in products detail page all the two product are not visible.
On product 1 details page both the other two are visible as related products. But for product 2 only product 3 is visible in related product and for product 3 only 2 is visible.
I can’t understand the magento behaviour for related products. On which logic it shows related product in related product section in frontend.
I have tried that with fresh installation. But the thing are same. I can’t see the product 1 in product 2 and product 3 details page as related products. That’s done in the admin section but does not effect the frontend.
Anybody can help me out to show the product 1 as related product for product 2 and product 3?
about 2 months ago
Can you give us a url to look at?
about 1 month ago
By default, Magento removes related products from the product page when you have the [related] product in your cart already.
Related product also rely on the same visibility queries as regular products; the related product must be enabled, visible in search or category or both and in stock or not stock controlled. Otherwise the related product will not be visible.
Also don’t forget to clear your cache and possibly re-index.
about 2 weeks ago
Hey!! I tried this but
Fatal error: Call to a member function addToChildGroup() on a non-object in C:\wamp\www\magento\app\code\core\Mage\Core\Block\Abstract.php on line 649
above error is comming plz help!!
about 2 weeks ago
HI there,
What version of Magento are you using?
Have you followed Russ’ advice above?