Closed (fixed)
Project:
Ubercart Product Power Tools
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jul 2010 at 19:29 UTC
Updated:
26 Sep 2014 at 12:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Edy Gorbacev commentedDecrement stock upon order submission, set it off..
go to :
admin/store/ca/uc_stock_decrement_on_order/edit
and set the status "disable"
Comment #2
mairav commentedHi @edygorbacev, thanks for your reply.
The problem is not about the stock being decrement. The problem is that the product has no stock at all.
If I go to /admin/store/products/power-tools inside the product I want to modify, in the Stock title, if I check "Do not set stock level", when the product is created, it should not be created with the checkbox of stock checked, cause I said that this product doesn't need a stock level.
But insted, despite I checked "Do not set stock level", the product is created with th stock checkbox checked.
I think this is a problem with the uc_product_power_tools module.
Can you tell me how can this be fixed?
Sincerely thanks.
Comment #3
willvincent commentedPower tools lets you set defaults.. the "do not set stock" checkbox will simply not set a default value, not turn off stock for that item.
Comment #4
jahaswel commentedyour comment: "If setting a default stock level, stock will be set to active for products of this type."
makes it appear that if you select "do not set stock level" that the stock will be set to inactive.
It would be great if this was the case because our store has some products that we need to track stock for and other that it is not necessary. The current configuration adds an additional step to listing a product and risks making an available product un-orderable.
please considering fixing this.
Comment #5
tr commentedNew features will go into the Drupal 7 version first. A patch to implement this feature would be highly appreciated.
Comment #6
tr commentedComment #7
litmusdesigns commentedThis 'feature' hasn't been added to the 7.x dev module as of the 2011-Oct-17 version (I would actually consider it a bug, since Power Tools is changing the default behavior of the stock module even when "Do not set stock level" is selected").
The fix for "7.x-1.x-dev 2011-Oct-17" is to change line 285 from:
to:
Comment #8
mynameiscorey commentedI agree this is a bug considering the misleading help text and as litmusdesigns said, how it changes the default behavior.
Attached a patch of the above fix for those interested. It's working in my production site.
Comment #10
stefan.r commented