Closed (fixed)
Project:
Commerce Discount
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Dec 2012 at 11:25 UTC
Updated:
21 May 2015 at 05:08 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
amorales@drupal.org.es commentedUninstalled Dev version and installed again 7.x-1.0-alpha1 and still not working. So the problem is not caused by the dev version.
Here is the HTML where should be the form field missed:
Could it be caussed by the Inline entity form module?
Inline Entity form - 7.x-1.0
Entity Reference - 7.x-1.0
Comment #2
amorales@drupal.org.es commentedNeed to say that if I try to create a discount without the amount / percentage field I get this warning:
Notice: Undefined index: en commerce_discount_default_rules_configuration() (línea 26 de /var/www/kabula/portal/sites/all/modules/commerce_discount/commerce_discount.rules_defaults.inc).The rule that create Commerce Discount has an error with "Unknown action".
If anyone is having this issue the discount can be added by using the Import tool.
I have another Kickstart demo site where I can set the Discount and export it.
Comment #3
bojanz commentedI suggest not using Discount until this is fixed.
We need to add an update function that converts the inline entity form for offers to the new widget (since IEF 1.0 renamed them)
Comment #4
amorales@drupal.org.es commentedThanks for the advice Bojanz.
I'll use Discounts with Taxes then.
Comment #5
garphyHere's a patch that perform the widget type update.
Edit: Wrong Patch. See below
Comment #6
nicodh commented@garphy : your patch seems to be made for commerce invoice module ??
I've tested to add an hook_update and this seems to work (added at the end of the .install file, and then run update.php) :
Comment #7
garphyMy Bad. Wrong Patch.
Here's the correct one.
Comment #8
checker commentedPatch #7 works (needs the latest version of inline entity form)
Comment #9
kevster commentedpatch in #7 needs to be run against latest dev version not alpha1. Thx for patch in #6 - fixed issue in alpha1 and also sorted the rule issue where the action was broken ;-)
Comment #10
bojanz commentedCommitted, thanks!
Comment #14
joelpittet