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

MSRP Help!!! 
 
monstertech
Jr. Member
 
Total Posts:  3
Joined:  2013-03-19
 

I need some help. I need to display the Manufacture Suggested Retail Price (MSRP), however I’m having issues doing so. Do you have any ideas?

Thanks in advance.

<?php
    $config 
$this->_config;
    
$moduleId rand().time();
    
$enabled = (!isset($config['show'])) ? '1' $config['show'];
    
    
$title $this->getConfig('title''');
    
    
$theme $this->getConfig('theme''default');
    
    
$tmp $this->getConfig('moduleWidth''auto');
    
$moduleWidth = ($tmp == 'auto') ? 'auto' : (int)$tmp;
    
$tmp $this->getConfig('moduleHeight''auto');
    
$moduleHeight = ($tmp == 'auto') ? 'auto' : (int)$tmp;
    
    
$show_title = (!isset($config['show_title'])) ? '0' $config['show_title']// title product
    
$show_date = (!isset($config['show_date'])) ? '0' $config['show_date'];
    
$show_price = (!isset($config['show_price'])) ? '1' $config['show_price'];
    
$priceSpecial = (!isset($config['show_pricewithout'])) ? '1' $config['show_pricewithout'];
    
$show_desc = (!isset($config['show_desc'])) ? '1' $config['show_desc'];
    
$show_addcart = (!isset($config['show_addcart'])) ? '1' $config['show_addcart'];
    
    
$show_button = (!isset($config['show_button'])) ? '1' $config['show_button'];
    
$show_pager = (!isset($config['show_pager'])) ? '1' $config['show_pager'];
    
    
$auto_play = (!isset($config['auto_play'])) ? '1' $config['auto_play'];
    
$auto_play = ($auto_play == 1) ? 'true' 'false';
    
    
    
$tp $this->getConfig('slide_width''auto');
    
$slide_width = ($tp == 'auto') ? '\'auto\'' : (int)$tp;
    
$tp $this->getConfig('slide_height''auto');
    
$slide_height = ($tp == 'auto') ? '\'auto\'' : (int)$tp;
    
    
$scroll_items $this->getConfig('scroll_items''1');
    
$limit_cols $this->getConfig('limit_cols''4');
    
?>
<?php 
if($enabled == 1)://start enabled?>
<div class="ves-productscroll <?php echo $theme;?>" style="width:<?php echo $moduleWidth;?>;height:<?php echo $moduleHeight;?>">
    <
div class="productscroll-widget"><!--start tag section-->
        
        <
div class="title">
            <
h3 class="productscroll-title"><?php echo $title;?><class="view-all-products" href="/products.html">view all products</a></h3>
        </
div>
        
        <
div class="list-productscroll responsive"><!--start class="list-productscroll"-->
            <
ul id="ves-productscroll-<?php echo $moduleId;?>" class="productscroll-news clearfix"><!--start tag ul-->
                
<?php foreach($items as $item): //start foreach?>
                
<li><!--start tag li-->
                    <
article>
                        <
div class="productscroll-item box-hover clearfix">
                            <
div class="image-thumb">
                                <
a href="<?php echo $item['link'];?>" title="<?php echo $item['title'];?>">
                                    <
img class="responsive-img" src="<?php echo $item['main_image'];?>" alt="<?php echo $item['title'];?>"/>
                                </
a>
                            </
div>
                            <
div class="entry-content">
                                
<?php if($show_title)://start show_title?>
                                    
<h4 class="entry-title">
                                        <
a href="<?php echo $item['link'];?>"><?php echo $item['title'];?></a>
                                    </
h4>
                                
<?php endif; //end show_title?>
                                
<?php if($show_desc)://start show_desc?>
                                    
<p><?php echo $item['des'];?></p>
                                
<?php endif; //end show_desc?>
                                
<?php if($show_date)://start show_date?>
                                    
<div class="entry-date"><?php echo $item['dateAdd'];?></div>
                                
<?php endif; //end show_date?>
                                
                                
<?php if($item['checkPrice'0)://start check special price?>
                                    
                                    
<?php if($priceSpecial)://start show_priceSpecial?>
                                        
<div class="entry-price-discount"><?php echo $item['price_ves_reduction'];?></div>
                                    
<?php endif; //end show_priceSpecial?>
                                    



                                
<?php/***************************************************/
                                     /*                                                    */
                                     /*            This is where I need the MSRP            */
                                     /*                                                    */
                                     /***************************************************/
?>
                                    


                                    <?php 
if($show_price)://start show_price?>
                                        
<div class="entry-price old-price"><?php echo $item['price'];?></div>
                                    
<?php endif; //end show_price?>
                                    
                                
<?php else:?>
                                    <?php 
if($show_price)://start show_price?>
                                        
<div class="entry-price"><?php echo $item['price'];?></div>
                                    
<?php endif; //end show_price?>
                                
<?php endif;//end check special price?>
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top