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

Customize Wishlist
 
Tuempelkoenig
Jr. Member
 
Total Posts:  20
Joined:  2013-02-28
 

Hello everybody!

I would like to customize my customers wishlist with the following:
- Instead of the short description the full description should be displayed
- I have only configurable products - it would be great if I could view the chosen product options below the description
I played around with wishlist/item/info.phtml but can’t handle it....

Any help is appreciated!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
G_Mehta
Guru
 
Avatar
Total Posts:  418
Joined:  2010-01-27
India
 

Have a look on My extension for more.... http://mehtagaurav.blogspot.in/2012/12/wishlist-with-wished-features-add-items.html

 
Magento Community Magento Community
Magento Community
Magento Community
 
nickcarter21
Jr. Member
 
Total Posts:  23
Joined:  2013-04-02
 

1 To display full description instead of short description use this code.

<?php

$my_product 
Mage::getModel(\'catalog/product\')->load($_product->getId());

echo 
$my_product->getDescription();

?>

2 To display the configurable products - You can choose following code to view the chosen product options below the description

/app/design/frontend/your_package/your_theme/template/catalog/product/view.phtml

or, if it\’s not there, look in

/app/design/frontend/your_package/default/template/catalog/product/view.phtml

If the file is not present, then create it by copying from

/app/design/frontend/base/default/template/catalog/product/view.phtml

or, if you are on the Enterprise Edition, from:

/app/design/frontend/enterprise/default/template/catalog/product/view.phtml

Remember not to touch anything in the /app/design/frontend/enterprise/default/ The code responsible for showing prices is:

<?php echo $this->getChildHtml(\'tierprices\'?>

You have to move the code responsible for showing the options, that looks like this:

<?php if (!$this->hasOptions()):?>
    
<div class=\"add-to-box\">
        
<?php if($_product->isSaleable()): ?>
            <?php 
echo $this->getChildHtml(\'addtocart\'?>
        <?php 
endif; ?>
        <?php 
echo $this->getChildHtml(\'addto\'?>
    
</div>
<?php else:?>
    <?php 
if ($_product->isSaleable() && $this->hasOptions() && $this->getChildChildHtml(\'container1\') ):?>
        
<div class=\"options-container-small\">
            
<?php echo $this->getChildChildHtml(\'container1\'\'\'truetrue?>
        
</div>
    
<?php else: ?>
        <?php 
echo $this->getChildHtml(\'addto\'?>
    <?php 
endif;?>
<?php 
endif; ?>

directly below the code that\’s responsible for prices. Remember that the code above is an example, it may look different in your template, so don\’t copy-paste it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tuempelkoenig
Jr. Member
 
Total Posts:  20
Joined:  2013-02-28
 

Hello Nick,
thanks y lot for your advice! Unfortunately I am not really familiar with coding and can’t get it to work - I just receive Sytanx error..
Could you have a look at my files and advice me where to insert the appropriate code?

app/design/frontend/base/default/template/wishlist/item/column/info.phtml (the place where the description and options should be shown)

/* @var Mage_Wishlist_Model_Item $item */
$item $this->getItem();
$product $item->getProduct();
?>
<h3 class="product-name"><a href="<?php echo $this->getProductUrl($item) ?>" title="<?php echo $this->escapeHtml($product->getName()) ?>"><?php echo $this->escapeHtml($product->getName()) ?></a></h3>

<
div class="description std"><div class="inner">

 
<?php
$my_product 
Mage::getModel(\'catalog/product\')->load($_product->getId());

echo 
$my_product->getDescription();
?> 

</div></div>
<
textarea name="description[<?php echo $item->getWishlistItemId() ?>]" rows="3" cols="5" onfocus="focusComment(this)" onblur="focusComment(this)" title="<?php echo $this->__('Comment') ?>"><?php echo ($this->escapeHtml($item->getShortDescription())) ?></textarea>
<?php if($this->getSortedChildren()): ?>
    
<div class="item-manage">
    
<?php foreach($this->getSortedChildren() as $childName):?>
        <?php 
echo $this->getChildHtml($childNamefalse);?>
    <?php 
endforeach;?>
    
</div>

<?php if (!$this->hasOptions()): //add to cart when no options ?>
                
<?php if($_product->isSaleable()): ?>
                    
<div class="add-to-box">
                        
<?php echo $this->getChildHtml('addtocart'?>
                    
</div>
                
<?php endif; ?>
                <?php 
echo $this->getChildHtml('extra_buttons'?>
            <?php 
endif; ?>

            <?php 
if ($_product->isSaleable() && $this->hasOptions()): ?>
                <?php 
if ($container1_html $this->getChildChildHtml('container1'''truetrue)): ?>
                    
<div class="container1-wrapper"><?php echo $container1_html?></div>
                
<?php endif; ?>
            <?php 
endif;?>

<?php 
endif; ?>

Part of:
/html/mage-0df0901a/app/design/frontend/ultimo(#my theme)/default/template/catalog/product/view.phtml

<?php if (!$this->hasOptions()): //add to cart when no options ?>
                
<?php if($_product->isSaleable()): ?>
                    
<div class="add-to-box">
                        
<?php echo $this->getChildHtml('addtocart'?>
                    
</div>
                
<?php endif; ?>
                <?php 
echo $this->getChildHtml('extra_buttons'?>
            <?php 
endif; ?>

            <?php 
if ($_product->isSaleable() && $this->hasOptions()): ?>
                <?php 
if ($container1_html $this->getChildChildHtml('container1'''truetrue)): ?>
                    
<div class="container1-wrapper"><?php echo $container1_html?></div>
                
<?php endif; ?>
            <?php 
endif;?>
            
            <?php 
if ($addtoBoxHtml $this->getChildHtml('addto')): //compare, wishlist ?>
                
<div class="action-box addto-textlink clearer">
                    
<?php echo $addtoBoxHtml?>
                    <?php 
if ($this->canEmailToFriend()): ?>
                        
<class="email-friend"><a href="<?php echo $this->helper('catalog/product')->getEmailToFriendUrl($_product) ?>"><?php echo $this->__('Email to a Friend'?></a></p>
                    
<?php endif; ?>
                
</div>
            
<?php endif; ?>
            
            <?php 
echo $this->getChildHtml('alert_urls'); //alerts ?>
            
<?php echo $this->getChildHtml('other'); ?>
            <?php 
echo $this->getChildHtml('product_primary_bottom_placeholder'); //Placeholder for extensions ?>
            
            
<?php if ($tmpHtml $this->getChildHtml('block_product_primary_bottom')): ?>
                
<div class="block_product_primary_bottom"><?php echo $tmpHtml?></div>
            
<?php endif; ?>

        
</div> <!-- endproduct-shop -->
        
        
<?php if (!empty($secondaryColUnits)): ?>
            
<div class="product-secondary-column grid12-<?php echo $secondaryColUnits; ?>">
                <
div class="inner">

                    
<?php //Placeholder for extensions ?>
                    
<?php if ($tmpHtml trim($this->getChildHtml('product_secondary_top_placeholder'))): ?>
                        
<div class="feature-wrapper bottom-border"><?php echo $tmpHtml?></div>
                    
<?php endif; ?>
                    
                    <?php 
if ($tmpHtml $this->getChildHtml('block_product_secondary_bottom')): ?>
                        
<div class="block_product_secondary_bottom"><?php echo $tmpHtml?></div>
                    
<?php endif; ?>
                    
                    <?php 
//echo $this->getChildHtml('additional'); ?>

                
</div>
            </
div> <!-- endproduct-secondary-column -->
        
<?php endif; ?>

        <?php 
if ($_product->isSaleable() && $this->hasOptions()): ?>
            <?php 
if ($container2_html $this->getChildChildHtml('container2'''truetrue)): ?>
                
<div class="box-additional grid-full">
                    <
div class="container2-wrapper"><?php echo $container2_html?></div>
                </
div>
            
<?php endif; ?>
        <?php 
endif; ?>

Thanks a lot!

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