- This topic has 4 replies, 3 voices, and was last updated 5 years, 2 months ago by
hirschbrat.
Viewing 4 reply threads
-
AuthorPosts
-
-
December 28, 2015 at 7:40 pm #5426
hirschbratMemberHello,
I used the following code to update the price field based on the product chosen in the select field. The code worked in version 9.4. but not in 9.9.7.
$choices = array( 1 => 'Product1' ,2 => 'Product2' ); $conditions = array( array( 'type' => 'update' ,'value' => 1 ,'field' => 'fvb_order_cart:price' ,'update' => 199.99 ) ,array( 'type' => 'update' ,'value' => 2 ,'field' => 'fvb_order_cart:price' ,'update' => 299.99 ) ); print_r($conditions); //wp_reset_postdata(); piklist('field', array( 'type' => 'group' ,'label' => 'Warenkorb' ,'field' => 'fvb_order_cart' ,'add_more' => true ,'fields' => array( array( 'type' => 'select' ,'field' => 'product' ,'label' => 'Produkt' ,'columns' => 6 ,'choices' => $choices ,'conditions' => $conditions ) ,array( 'type' => 'text' ,'field' => 'price' ,'label' => 'Preis [EUR]' ,'columns' => 3 ,'value' => '0.00' ,'description' => 'This field is updated by the Select field above' ) ,array( 'type' => 'number' ,'field' => 'number' ,'label' => 'Anzahl' ,'columns' => 2 ,'value' => 1 ,'description' => 'This field is updated by the Select field above' ) ) ,'validate' => array( array( 'type' => 'fvb_resource' ,'options' => array( 'resource' => 'cart' ) ) ) )); -
December 29, 2015 at 12:24 pm #5441
SteveKeymaster@hirschbrat– bug confirmed. We’ll get this taken care of during our unit tests and fix in the next version.
-
March 21, 2016 at 11:28 am #6131
RachelMember@Steve, is there a fix for this yet?
-
March 23, 2016 at 10:10 am #6152
SteveKeymasterNot yet. Should be in next version.
-
December 3, 2016 at 8:44 am #7607
hirschbratMemberAre there any news when this bug will be fixed? Still does not work in v 0.9.9.9.
-
-
AuthorPosts
Viewing 4 reply threads
- You must be logged in to reply to this topic.