Reorder the same

By | October 1, 2012

In osCommerce there is native functionality that allows the person to reorder on a product by product basis – it’s the bm_order_history infobox. It pretty much lists the last few products ordered and has a clickable link which either adds the product to the shopping_cart, or goes to the product_information page to allow to select the product options.

I’ve had a plan to write a “let me re-order the exact same again” script, and after having chatted with Matt last night I set out to make it a reality. And so I present to you my effort at a re-ordering script.

Step 1. Add a new button at the account_history page.

Step 2. Make some new code in the shopping cart to grab the orders products, and insert them into the shopping cart.

Notice that the inserted product(s) include the options/attributes if applicable. Now the buyer is ready to continue shopping or checkout.

Video in Action

If you need something similar, please feel free to get in touch by email.

How about something similar, yet completely off the wall ?

Take for example a regular client who decides she really loves a few products she bought from you, but does not want to re-order the whole same order? In this case, why not present all the products purchased from previous orders the client made. Then allow the customer to tick the products to re-order?

And of course, work the re-ordering mechanism into the bm_order_history box to replace the “1 by 1” functionality!

10 thoughts on “Reorder the same

  1. Gary Post author

    Even better, now the infobox shows the ordered attributes if applicable, and has tiger stripes.

  2. Isa

    Hi Gary

    very useful addition! *thumbs up*

    Personally there’s quite a few things I’d like to add to order history as I find the default one quite bare, for example “contact seller about this order”, “write a review”, “return an item”.
    Just my thoughts. 🙂

  3. Gary Post author

    Hi Isa – that would certainly be possible, but I think would be better as a page within the admin section (maybe a recode of account_history.php) ?

  4. Isa

    Yes, that’s what I was thinking, but you know me, too many ideas, too little coding knowledge lol. 😉

  5. Carine


    I’d be interested if you could make a completely separate page out of this allowing the customer to reorder any previously ordered product and also specify the number of items.

    feel free to get in touch


  6. Paul

    I was thinking the same as Carine, maybe ordering the page by most ordered or date last ordered or the ability for both.

  7. Gary Post author

    Paul – ordering by date is default, but just as easily can be “most ordered”.
    Cheers, Gary

  8. Steve

    I would be interested in a page that has the entire order history and items can be selected 1 by 1 like in the video does this exist?


  9. Gary Post author

    It does exist and is available to purchase. Price depends on what version of osCommerce you are using. Feel free to email me.

Leave a Reply

Your email address will not be published.