- last update
over 1 year ago 35 pass - πͺπΈSpain facine
Let's make sure we always use a string as @Cayenne suggested. https://www.drupal.org/project/commerce_webform_order/issues/3103974#com... β
-
facine β
committed 7876fa09 on 3.x
Issue #3256541 by facine, Cayenne: Dealing with Twig Computed values
-
facine β
committed 7876fa09 on 3.x
- Status changed to Fixed
over 1 year ago 4:03pm 29 August 2023 - πͺπΈSpain facine
Fixed, thank you!
Please download and review the latest dev release.
Automatically closed - issue fixed for 2 weeks with no activity.
- πΊπΈUnited States DocEVL
I do not get any errors on Twig computed values but it ALWAYSW comes back with 0 for price no matter what is in the computed field. It renders on the screen correctly but the order always comes back at 0 dollars
- Status changed to Fixed
7 months ago 8:20pm 3 June 2024 - π³π¬Nigeria chike Nigeria
I am having a similar issue, all attempts to pass a computed token or computed twig value to the price field is failing. If I try a value field with a number explicitly written it will will work but a token value or computed twig value will fail to pass. I have tried all types of Twig filters and all types of ways to cast the value to make sure it is a number and yet it wouldn't pass over to the price field.
- π³π¬Nigeria chike Nigeria
Oh I got it working now. Formerly on the handler I mapped 'Amount' to the computed twig field but now I tried by using the 'Other' option and adding a webform token of the field. This got the computed twig value working as the product price. Thanks.