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

  • Home
  • SEARCH
  • 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 6676795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:02:13+00:00 2026-05-26T04:02:13+00:00

I’m hoping this is a simple fix for someone better versed in customizing Magento…

  • 0

I’m hoping this is a simple fix for someone better versed in customizing Magento…

I have a custom search form (on home.phtml) and results page (cms loading customresults.phtml) which returns a filtered collection of products, based on POST data entered in the form.

The process:
Form > POST values > multiple calculations based on POST > MySQL (core_read) query based on calculation results > product ID array (referred to below as $wow) based on query

Then:

$collection = Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect('*')->addAttributeToFilter('entity_id', array('in'=>$wow))
Mage::getSingleton('catalog/product_visibility')->addVisibleInCatalogFilterToCollection($collection)
$magento_block = Mage::getSingleton('core/layout');
$productsHtml  = $magento_block->createBlock('catalog/product_list');
$productsHtml ->setTemplate('catalog/product/list.phtml')->setCollection($collection);
echo $productsHtml ->toHTML();

Results page loads nicely with the correct products showing. Toolbar loads and looks normal.

THE PROBLEM: on changing any setting in the toolbar on the results page, the page reloads and we’re left with no search results.

I assume the reload is killing the POST values…

Is there a way to (A) circumvent the page reload for toolbar functionality? Or alternatively, is it possible to somehow (B) retain the posted data or (C) force data re-submission on reload?

Any tips would be sincerely appreciated.

  • 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-26T04:02:14+00:00Added an answer on May 26, 2026 at 4:02 am

    Solved the problem by using GET method instead of POST.

    Not the solution I wanted, but it’s an easy workaround.
    Just in case anyone else out there is having a similar issue.

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

Sidebar

Related Questions

OK, Im really stumped and hoping this is something simple. I have a form
I am hoping that this will have a pretty quick and simple answer. I
I'm hoping this question has a very simple answer. I can think of ways
I don't have any experience with SVG but I was hoping to use this
I am relatively new to Javascript so I'm hoping this is a simple mistake.
I'm hoping this is simple. I'm not a CSS guy. I'm trying to make
New Android developer here - I'm hoping this is simple. I want to create
I'm hoping this will be a simple answer for one of you. We've got
Hoping this is fairly simple. Basically, I'm drawing some text onto an NSView and
I'm hoping this will be a rather simple question for anyone who's good at

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.