and/or redirect to a sensible new page

Comments

couturier’s picture

Have you looked into Drupal Commerce? That's the preferred module for commerce in Drupal 7.

crookednumber’s picture

This comment is a little off-topic from the issue at hand, but from the freecommerce project page:

Couldn't I just use something like Drupal Commerce for this?
Probably. Commerce – let there be no confusion – is a great module. But it's also large (~ 500KB zip) and complex; it leans on other modules; it's more tightly integrated with the node system. If you know you are never going to be taking payments, this is a lightweight, flexible, and loosely-coupled alternative.

If you have a strong argument for deprecating this module, I'm sincerely happy to hear it. But please do so as a separate ticket.

couturier’s picture

Sorry, I didn't know you were not intending to take payments. Drupal Commerce uses about 150 modules, all of which are tightly integrated and closely monitored. The server load is manageable by design.

You can automate an email to send upon receipt of order by using the Rules module. Check The Tiny Book of Rules for a headstart on this. Or, maybe you are just referring to an internal code or message posting to the admin UI? I believe Rules can accomplish this, as well.

crookednumber’s picture

Going to put a simple dsm() here (for now).

SInce #2053395: checkout submit handler should clear cart clears the cart, the following lines in the form constructor for /checkout

  if (isset($_SESSION['freecommerce_cart'])) {
    include 'freecommerce.cart.php';
    $table = freecommerce_product_table();
  }
  else {
    drupal_goto('cart');
  }

will kick the user back to an empty cart at /cart.

This seems like a good enough solution for first stable release.

crookednumber’s picture

Status: Active » Closed (fixed)

[7.x-1.x 8f0a540] Issue #2053391 by CrookedNumber: checkout sumbit handler should provide some sort of message (Order sent)
1 files changed, 1 insertions(+), 0 deletions(-)