Support

Account

Home Forums Add-ons Repeater Field Accessing sub fields from multiple repeaters Reply To: Accessing sub fields from multiple repeaters

  • I changed my code up to the above, but now it doesn’t display the special price…still just the regular.

    
    					<?php
    							foreach ($breakfast_weekday_regular as $bwdr_row) {
    								$price = $bwdr_row['breakfast_group_price_regular'];
    								foreach ($special as $s_row) {
    									if ($bwdr_row['breakfast_group_type_regular'] == $s_row['breakfast_group_type_special']) {
    										$price = $s_row['breakfast_group_price_special'];
    									}
    								}
    								echo '<div class="buffet-group">' . $bwdr_row['breakfast_group_type_regular'] . ' ' .$price . '</div>';
    							}
    					
    					?>