enable functionality to collect payment in order to send an e-card.

Comments

kars-t’s picture

Good Question. Maybe you can do this with rules and drupal commerce?

stella’s picture

Doing something kinda similar to this for Trócaire, an Irish charity. If you buy a product in the shop (www.trocaire.org/globalgift), in checkout you can choose to send it "traditional" (via post) or as an ecard. That's D6, and I wrote a custom ubercart checkout pane for the selection widget. I'll probably be doing something similar for Drupal Commerce in D7. If I can make it generic enough, I'll contribute it back.

The other approach would be to capture ecard recipient / message details and then when saved it adds it to their cart. With delayed sending functionality (d6 patch at http://drupal.org/node/367225) this becomes easier to implement, but not possible without that.

piebuo’s picture

I have the same problem, can you help me to integrate the payment method before send ecards? Thanks!!

stella’s picture

I don't have something generic enough to contribute back yet I'm afraid. My custom module allows users to add multiple products to their cart, then if any of them have an ecard field, a checkout pane appears on the checkout page allowing the user to choose between "traditional" (i.e. physical) and "ecard". If they select ecard, then a form for each ecard product (recipient, email address and message) appears.

This is not what I imagine you want - you probably don't want any "traditional" option, and maybe a different workflow.

kars-t’s picture

Status: Active » Postponed (maintainer needs more info)

Currently I only can say "Postponed".

Maybe you could add another submit handler to the ecard form. Maybe we should add a hook or a rules implementation. But as there is no idea what a common way could be I don't know what to do.

capellic’s picture

Stella's module has is here (https://drupal.org/project/commerce_ecard), but there is not yet any configuration capability to remove the Traditional (or E-card) method.