Closed (fixed)
Project:
Bank Transfer | Ubercart Payment
Version:
7.x-1.0-alpha3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Apr 2011 at 17:30 UTC
Updated:
9 Apr 2012 at 17:40 UTC
'Reason for payment: order number 0' is displayed on the checkout screen if no order number exist yet - and the 'Display reason for payment...' option is selected in the payment settings for uc_bank_transfer.
My suggestion is to not show this field if the value of $oid == 0 in uc_bank_transfer_bank_details() and I have attached the patch to accomplish just this.
Alternatively it could say something like to use you order number once generated but it sounds a bit confusing??
| Comment | File | Size | Author |
|---|---|---|---|
| uc_bank_transfer.patch | 769 bytes | daniel bornman |
Comments
Comment #1
xibun commentedthis was an issue in Ubercart 2/Drupal 6... I thought it was fixed in Ubercart 3 by assigning the order number earlier.. so I removed the logic which was hiding the order number on checkout page..
I will try again to reproduce it in my installation.. do you always have the issue? or only when following a special sequence?
Comment #2
daniel bornman commentedI thought it never used to that on my Drupal 6 sites...
You should get it whenever viewing checkout straight after the cart (without the checkout validation having been run). Thanks.
Comment #3
xibun commentedjust updated to the latest Ubercart .dev version. I still cannot reproduce the problem in Ubercart 3.. I always do have an order id assigned in checkout. actually reloading the checkout page increments the order number in my installation... so maybe it is coming from checkout validation being run - but what might trigger that validation?
Comment #4
xibun commentedI now can reproduce the problem: when I have bank transfer as the only active payment method. but as soon as I add another method the order numbers are set (and incremented on reload).
@danielbornman: do you have other payment methods active? if yes: which one(s)?
Comment #5
feras commentedI found the same problem. It gives me 0, when bank transfer is placed as default payment method (first in list). If I change order of methods, then when I select "Bank transfer" it gives correct number.
Comment #6
daniel bornman commented@xibun: I only use bank transfer at the moment which coincides with what you (& feras) dicovered...
Comment #7
xibun commented@danielbornman & @feras: thanks for your feedback on this. I have created a related issue on Ubercart #1120776: order number increments on reload checkout page. my plan is to wait for that one being out of the way before deciding how to patch things here.
Comment #8
xibun commentedwe now have a fix for #1120776: order number increments on reload checkout page - but the order number is still 0 at first. before fixing it here I wait to see how #1285938: Create order on initial checkout turns out (patch 1 in that issue thread would make this issue obsolete).
Comment #9
xibun commented#1285938: Create order on initial checkout was just committed to the dev version. to me now this issue is solved and can be labelled "closed (works as designed)".
Comment #10
xibun commentedjust tested it myself with latest Ubercart version. the issue is fixed with the changes introduced on Ubercart side.