I'm currently working on a project that requires the user to only process payment for node creation for certain data conditions on the node itself. I didn't see a way to do this with the module, so I would like to propose a modest patch that allows other module node form submit handlers to stop submission. I will attach a patch shortly.

Would you consider adding this to the module? Or is there another way to achieve what I'm trying to do?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jemond’s picture

Status: Active » Needs review
FileSize
741 bytes

Patch attached.

mstef’s picture

Issue summary: View changes
Status: Needs review » Fixed

This got accomplished in a similar way by the means of another change to the module.

Grab the latest dev or checkout from the repo. For admins only, there is a checkbox to skip adding the node to the cart (see commerce_node_checkout_node_form_submit() and commerce_node_checkout_field_attach_form()). You can override the form values and set 'commerce_node_checkout_skip' to 1 and it will skip adding it to the cart. You'll also just have to publish the node.

Does that work?

If not, reopen please.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.