Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm working on a project that requires the payment process to kick in when a user edits a node for purchase after it has been created. By default, this module does not process editing an existing, unpublishing for payment. I would like to propose a setting on the node content type to have the module process payments when existing, unpublished nodes are edited.
I will attach a patch for your consideration shortly.
Comment | File | Size | Author |
---|---|---|---|
#1 | commerce_node_checkout-existing_node_process_setting-1930644-1.patch | 2.28 KB | jemond |
Comments
Comment #1
jemond CreditAttribution: jemond commentedPatch attached.
Comment #2
jemond CreditAttribution: jemond commentedComment #3
tannerjfco CreditAttribution: tannerjfco commentedAmazing timing, I was just trying to figure out how to do this! I've tested the patch and it works as advertised!
Comment #4
jemond CreditAttribution: jemond commentedComment #5
tannerjfco CreditAttribution: tannerjfco commentedUpon further review, this is unfortunately not quite right. I thought this was working as expected, but as it turns out this patch actually allows the process existing nodes functionality to work if the option is unchecked on the content type. I did not notice this initially, as I did not notice the setting, and the functionality worked as I needed. It wasn't until I installed the commerce_authnet module that the process existing nodes functionality started working as you intended - in that it stopped working as I had it configured, and started working properly once I set the checkbox to enable it.
I'm not really sure what difference the commerce_authnet module makes, but its the only module that has made an impact on this patch. The patch will work for what I need, but I suspect we don't want that functionality running if the setting is not enabled :)
Comment #6
mstef CreditAttribution: mstef commentedIf you have an updated patch that fixes your issue and applies to the latest code, please post and re-open. I'm not entirely sure how much sense this makes to have in this module. Are you saying that on every edit, the node is added back in to the cart and the edit needs to be paid for before the edit goes live??