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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:42:06+00:00 2026-06-04T22:42:06+00:00

we have set up a cron job that cleans off old orders for our

  • 0

we have set up a cron job that cleans off old orders for our Magento 1.4 shop. Stuff like failed payments, incomplete finance applications, stuff like that are checked and of older than x days, we change the status.

The cron job basically runs an SQL query that directly edits the sales_flat_order table in the database and changes the state/status according to our criteria.

My problem is that because we’ve made these changes via the back door, these changes aren’t reflected in the sales_flat_order_grid table and therefore the orders grid view in the admin until you go into an order and save some part of it.

Is there some way I can force the sales_flat_order_grid to refresh/rebuild based on the contents of the sales_flat_order table?

Thanks,
James

  • 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-04T22:42:08+00:00Added an answer on June 4, 2026 at 10:42 pm

    Just had to do this recently here is a few lines that should do that job:

        //update status sales_flat_order_grid
        $vals = array();
        $vals['status'] = $status;
        $where = $write->quoteInto('entity_id =?', $order_id);
        $write->update("sales_flat_order_grid", $vals ,$where);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a CRON job php script that I just set up not too
I have a cron job scrape.sh that look like this: #!/bin/bash touch rage cd
I have set up a cron job that is running through a large site
I have a php script run as a cron job that executes a set
I want to have a cron job that will set the priority of some
I have a cron job set up to run testemail.php. This works fine, every
We have a cron job that runs once a day and sends daily emails
I have a cron job that call a shell script. */2 * * *
I am trying to set up a cron job that everyday optmizes the mysql
I have a bash script in a cron job that does an SVN copy

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.