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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:32:27+00:00 2026-05-14T22:32:27+00:00

I have a custom page as my magento homepage. It’s content is hardcoded on

  • 0

I have a custom page as my magento homepage. It’s content is hardcoded on the default CMS page (which shows if a CMS homepage isn’t enabled in the CMS pages section of the admin).

I have a list of products showing there (pulled from best-selling/highest rated etc). However, the review links and the add-to-compare links don’t show on this page. The list of products is displayed using the same code as the default template/catalog/product/list.phtml, and everything else works except for these 2 things.

It seems that both the following code snippets have no effect on pages other than the default category listing page:

<?php $_compareUrl=$this->getAddToCompareUrl($_product); ?>

&

<?php echo $this->getReviewsUrl() ?>

I’m guessing that there’s something else that needs to be called in order for these to work, but can’t figure out what it is. Everything else from the product collection is available.

I load my product collection using the following code:

$_productCollection = Mage::getResourceModel('reports/product_collection')
->addAttributeToSelect('*')
->addAttributeToFilter('visibility', $visibility)
$_productCollection->load(); 

Any ideas?

  • 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-05-14T22:32:28+00:00Added an answer on May 14, 2026 at 10:32 pm

    OK, so after a while digging around, I found that you can use the following to get the compare url working:

    <?php $_compareUrl=$this->helper('catalog/product_compare')->getAddUrl($_product) ?>
    <span class="addto">
        <a href="<?php echo $_compareUrl ?>"><?php echo $this->__('Add to Compare') ?></a>
    </span>
    

    Still not sure about the review urls, but I’ve made an acceptable workaround for that so I’m gonna mark this as answered.

    If anyone comes up with an answer though please do still post it!

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

Sidebar

Related Questions

I have a custom page-library which a custom content-type and a page-layout all inside
I have a custom observer in Magento 1.6.2.0 that is called when a CMS
I have a custom page that I have put together that basically shows products
I need to have custom page as homepage and I know how to do
I have created a custom Magento module which extends the core sales order functionality
I have a custom html page which posts to php variables which then fills
Kentico CMS I have created a custom 404 page to redirect to when someone
I have a custom page for Jekyll: I have a news.markdown file like the
I have created custom posts and I want one page in my site to
I have multiple custom controls used on a ASPX (and C#) page registered from

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.