Active
Project:
Commerce Auction
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 May 2012 at 16:41 UTC
Updated:
7 Jul 2012 at 02:04 UTC
Jump to comment: Most recent file
Comments
Comment #1
farhadhf commentedHi, I have no Idea what "Bid increment and increase overrides" is!
What functionality does this provide?
Regards
Farhad
Comment #2
xpete commentedAttached is a screenshot of "Bid increment and increase overrides" on uc_auctions and "bid limits" on uc_auctions administration page.
The functionality is described on the screenshot.
Please do a ubercart instalation with uc_auctions to use as a feature reference to your module... You can even use some of it's code.
Comment #3
farhadhf commentedI just committed "Bid increment and increase global options", I'll work on per-auction options tomorrow.
Comment #4
farhadhf commentedAdded 4 fields to the auction display types, allowing each auction to override global bid limit settings.
you'll have to deselect the auction display type, save, and select it again so that the new fields are added to the content type.
P.S. You can deselect the auction display type by holding Ctrl key while clicking on the selected item!
Cheers
Comment #5
xpete commentedPlease make the fields optional
Add the "Site-wide configuration value" to the description.
And make this fields available in a way I can add and remove them from the content type without using the Auction administration page.
Thx
Comment #6
xpete commentedand make the "Number" field a requirement.
Comment #7
farhadhf commentedWhat "Number" field?
I could create only the field itself and not add any instances to content types, If you want to have them on any auction display content type, you'll have to add them yourself, Is this what you need?
Comment #8
xpete commentedThe "number" module included in Drupal core. I got an error because i didn't had it enable... so it's better to set it as a requirement.
Yes.
Comment #9
farhadhf commentedIt seems that Drupal removes fields with no instance automatically...
Anyway, You can remove any of these 4 fields if you don't want them to be there, I added a few checks to allow commerce auction to work without these fields.
Added Number module to dependency list.
Added global bid limit values to bid limit field description.
Comment #10
xpete commentedCan you add to the documentation how to recreate them without using the administration page? the same thing you already have for the other fields.
Can you put it on the beginning of the descriptions? just like in the bid_increment.png. Makes it easier to find.
Comment #11
farhadhf commentedOK,
I changed field names to field_bid_increment, field_min_bid_inc, field_max_bid_inc and field_max_bid_inc_percent.
So you can simply add or remove the fields using the field ui.
Global values are now shown at the beginning of the field description.
Comment #12
xpete commentedI didn't tried this yet but i checked the code and I think it would be better if you do this:
- make this fields
'required' => TRUE- Change the behavior from
Set to -1 to disable for this auction. Set to 0 to use global auction settings.'toSet to 0 to disable for this auction.'and when the value is not set the global value is used.- Change
(@value)toSite-wide configuration value: %value<br />thx
Comment #13
xpete commentedI tried and... can this be done in the same way as the "bid_amount" field? I tried it and I can add and remove it..
Comment #14
farhadhf commentedif the field is required, it can should have a value when submitted... So I can't both make it required and allow the user to use global options without setting a value.
What do you mean?
Cheers
Farhad
Comment #15
xpete commentedI was waiting for you to fix this and I only noticed today that you repied to this... sorry...
My mistake, I mean "
-make this fields 'required' => FALSESorry again.
I mean "make this fields available in a way I can add and remove them from the content type without using the Auction administration page." the same way the "bid_amount" field works. I didn't checked the code.