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 4037458
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T12:21:02+00:00 2026-05-20T12:21:02+00:00

I have a product collection called using the following (set to show 6 items):

  • 0

I have a product collection called using the following (set to show 6 items):

$_testproductCollection = Mage::getResourceModel('catalog/product_collection')
->addAttributeToSelect('*')
->setPageSize(6);
$_testproductCollection->load();

then i get the 6 products details with a foreach:

foreach($_testproductCollection as $_testproduct){ 
    echo "Price is ".$this->htmlEscape($this->getPriceHtml($_product, true))."<br/>"; 
};

this works ok until I set my store to show prices inclusive of tax. Instead of showing 2 different prices, for example:

Excl. Tax: $138.56 
Incl. Tax: $149.99

it shows the same price for both. If I add a call to the loaded product collection again immediately after it’s loaded:

$_productCollection=$this->getLoadedProductCollection();

…it works fine, the prices are correct, but then it’s skipping the setPageSize function and returning the full store collection of products.

How can I get the correct tax prices to show, and what is it in the getLoadedProductCollection that corrects this? The function is in Mage/Catalog/Block/Product/List.php

  • 1 1 Answer
  • 1 View
  • 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-05-20T12:21:02+00:00Added an answer on May 20, 2026 at 12:21 pm

    See Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection::addTaxPercents

    Also, the getLoadedProductCollection calls (via a catalog layer) the addMinimalPrice and addFinalPrice methods. From those docs you can see there are methods for adding tiered pricing and URL rewrites. That is nice to know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a collection like: $products = Mage::getModel('catalog/product') ->getCollection() ... ->load(); How
I have a product catalog using apache, php and mysql. I need to put
I have a product catalog. Each category consists of different number (in deep) of
I have an Abstract type called Product, and five Types that inherit from Product
Imagine I have an entity called Product and a repository for it: public class
I have a Model called Category and other Model Product. They have has_many and
I am using the following piece of code to allow users to set featured
Ok so I have an abstract base class called Product, a KitItem class that
I'm a little puzzled with this one. I have a Collection called AllProducts, which
I have a Table called Product and I have the Table StorageHistory . Now,

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.