Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8520513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:33:26+00:00 2026-06-11T06:33:26+00:00

I have a featured product selection in pHtml, which instead of creating an attribute

  • 0

I have a featured product selection in pHtml, which instead of creating an attribute set in Magento, all i am doing is calling on a specific category (this is then added to the front end with XML ont he home page). It seems to work just fine, which is good. However when i try to call in the price I get nothing, i know Im not doing something right, but im just not sure what? here is my code:

    <?php

$categoryid = 13;

$category = new Mage_Catalog_Model_Category();
$category->load($categoryid);
$collection = $category->getProductCollection();
$collection->addAttributeToSelect('*'); 

?>
<div class="featured-products group">

    <h1 class="featured-header">Featured Products</h1>

    <div >
        <ul class="group multiple"  id="featured-set-home">
 <?php foreach ($collection as $_product) { ?>

            <li>
                <a href="<?php echo $_product->getProductUrl() ?>"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(138); ?>" width="138" height="138" alt="" /></a>             
                <a href="<?php echo $_product->getProductUrl(); ?>"><?php echo $this->getTierPriceHtml(); ?></a> 
                <a href="<?php echo $_product->getProductUrl(); ?>" class="button right" ><span><span>View Item</span></span></a>
            </li>

<?php } ?>
        </ul>
    </div>
</div>

Its not overly complicated. If anyone can help that would be awesome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T06:33:27+00:00Added an answer on June 11, 2026 at 6:33 am
    <?php echo $this->getTierPriceHtml(); ?>
    

    Will get the price block (it must be added in the XML layout of the custom page that you have created)

    I would just go for if you only need to show the price:

    $this->helper('core')->currency(Mage::helper('tax')->getPrice($_product, $_product->getFinalPrice()), true, false)); ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 featured product panels on the homepage, and I'm writing a CMS
I currently have the following Product table: Product _______ id, INT name, String featured,
I have this call: List<Product> featProducts = productsRepository.Products.Where(x => x.Featured == true).ToList(); It returns
I have a Eclipse RCP product which I build with Tycho. After some smaller
I have a custom module I made to show featured products on the homepage.
I have this code: $.getJSON(Featured/getEvents, function(data){ $.each(data.events, function(i,event){ var title = event.title.substr(0,20); $(#title-+i).text(Text); if
I have defined a User model and added a featured field to it: class
If I have a table of categories with a featured row that is default
I have a feature of my application which depends on alternate-click. Windows users don't
I have a Product model, and I want to be able to define a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.