Hi have a bit of code in a variable and after some help from Ben Rowe I managed to realise I needed to concatinate my strings, now I can't seem to solve the following... Include if and else inside a variable. I have the below code that the IF/ELSE arn't working, if anyone can help that would be really appreciated.
<?php if (!$logged) { ?> <div id="payment-address"> <div class="checkout-heading"><span>'.$text_checkout_account.'</span></div> <div class="checkout-content"></div> </div> <?php } else { ?> <div id="payment-address"> <div class="checkout-heading"><span>'.$text_checkout_payment_address.'</span></div> <div class="checkout-content"></div> </div> <?php } ?> <?php if ($shipping_required) { ?> <div id="shipping-address"> <div class="checkout-heading">'.$text_checkout_shipping_address.'</div> <div class="checkout-content"></div> </div> <div id="shipping-method"> <div class="checkout-heading">'.$text_checkout_shipping_method.'</div> <div class="checkout-content"></div> </div> <?php } ?> <div id="payment-method"> <div class="checkout-heading">'.$text_checkout_payment_method.'</div> <div class="checkout-content"></div> </div> <div id="confirm"> <div class="checkout-heading">'.$text_checkout_confirm.'</div> <div class="checkout-content"></div> </div> I tried strippimg out the PHP tags to no effect, I also tried closing the php before the below code and then opening it again but still no result :(
$loggedand$shipping_requiredreturntrueorfalse?'.$text_checkout_account.'with<?= $text_checkout_account ?>. similarly, all variables