Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have been unable to get the price table working and notice that I have a pricing rule error
Error: Data selector commerce-line-item:commerce-product:field-price-table for parameter price_table is invalid.
The value 'field-price-table' seems not be available to rules
What am I doing wrong?
Comment | File | Size | Author |
---|---|---|---|
#2 | price-rule-error.png | 129.18 KB | MrPaulDriver |
Comments
Comment #0.0
MrPaulDriver CreditAttribution: MrPaulDriver commentedtypo
Comment #1
MrPaulDriver CreditAttribution: MrPaulDriver commentedI have now verified this bug when price table module is installed to commerce kickstart 7.x-2.8 as well as the latest dev version (2013-Jul-15)
Comment #2
MrPaulDriver CreditAttribution: MrPaulDriver commentedHere is a screenshot
Comment #3
MrPaulDriver CreditAttribution: MrPaulDriver commentedComment #3.0
MrPaulDriver CreditAttribution: MrPaulDriver commentedemphasis
Comment #4
MrPaulDriver CreditAttribution: MrPaulDriver commentedUPDATE: Having tried gone back through the commits, it seems that this bug exists from Commit 3712b7b onwards.
I currently have Commit 5930311 installed and it seems to be okay.
Comment #5
pcambraPlease check if this helps #1981934: Rules integration: accept single-valued price tables
Comment #6
MrPaulDriver CreditAttribution: MrPaulDriver commentedNo luck.
I applied the patch to the latest dev and the pricing rule error persists
Comment #7
nelslynn CreditAttribution: nelslynn commentedbe sure your field is called field-price-table, or modify the rule to what you named your field. The rule is looking for a field name of field-price-table, it you set up your field to anything other, you will get this error.
Comment #7.0
nelslynn CreditAttribution: nelslynn commentedtypo
Comment #8
Summit CreditAttribution: Summit commentedHi,
Do you mean the field should be Labeled Price Table, and therefore automatically the field gets the name field-price-table.
Or do you have to label the field Field Price Table?
For me the rule is not working, with or without correct price table field I think....
See: https://drupal.org/node/2168027 for my situation.
greetings, Martijn
Comment #9
GiorgosKI think this issue is duplicate of one of these
#1981934: Rules integration: accept single-valued price tables
#1947994: Price calculation fails due to different field name