Closed (fixed)
Project:
Commerce Discount
Version:
7.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2012 at 08:33 UTC
Updated:
1 Jan 2013 at 21:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
m.ioannidis commentedJust a "quick&dirty" solution while we wait the official fix is the following:
File: commerce_discount.module (located: /profiles/commerce_kickstart/modules/contrib/commerce_discount/
I actually added a check if the $component['price']['data'] is empty.
I know this is NOT the prettiest solution, but saved my Weekend! :)
Comment #2
lsolesen commented@m.ioannidis solution expressed as a patch.
Comment #3
lsolesen commentedThough it does not seem to fix the actual issue. Workaround patch attached.
Comment #4
soundexcel commentedSame error here. Using commerce kickstart 2.0 rc4.
Error appears when adding a product to the cart.
There is a active pricing rule which uses a custom field as discount parameter:
When i switch the price component type to "base price", everything works ok.
Unfortunately the patch provided in comment 3 doesn't work. I am looking in to this but haven't found a solution yet.
Comment #5
bojanz commentedPushed a fix.