3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE_AFL.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category design * @package base_default * @copyright Copyright (c) 2013 Magento Inc. (http://www.magentocommerce.com) * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) */ ?> <div class="page-title"> <h1><?php echo $this->__('Your order has been received.') ?></h1> </div> <?php echo $this->getMessagesBlock()->getGroupedHtml() ?> <h2 class="sub-title"><?php echo $this->__('Thank you for your purchase!') ?></h2> <?php if ($this->getOrderId()):?> <?php if ($this->getCanViewOrder()) :?> <p><?php echo $this->__('Your order # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p> <?php else :?> <p><?php echo $this->__('Your order # is: %s.', $this->escapeHtml($this->getOrderId())) ?></p> <?php endif;?> <p><?php echo $this->__('You will receive an order confirmation email with details of your order and a link to track its progress.') ?></p> <?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?> <p> <?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?> <?php echo $this->getChildHtml() ?> </p> <?php endif;?> <?php endif;?> <?php if ($this->getAgreementRefId()): ?> <p><?php echo $this->__('Your billing agreement # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getAgreementUrl()), $this->escapeHtml($this->getAgreementRefId())))?></p> <?php endif;?> <?php if ($profiles = $this->getRecurringProfiles()):?> <p><?php echo $this->__('Your recurring payment profiles:'); ?></p> <ul class="disc"> <?php foreach($profiles as $profile):?> <?php $profileIdHtml = ($this->getCanViewProfiles() ? sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getProfileUrl($profile)), $this->escapeHtml($this->getObjectData($profile, 'reference_id'))) : $this->escapeHtml($this->getObjectData($profile, 'reference_id')));?> <li><?php echo $this->__('Payment profile # %s: "%s".', $profileIdHtml, $this->escapeHtml($this->getObjectData($profile, 'schedule_description')))?></li> <?php endforeach;?> </ul> <?php endif;?> <div class="buttons-set"> <button type="button" class="button" title="<?php echo $this->__('Continue Shopping') ?>" onclick="window.location='<?php echo $this->getUrl() ?>'"><span><span><?php echo $this->__('Continue Shopping') ?></span></span></button> </div> <?php /** * Customisation * */ ?> <h1></h1> <body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;"> <div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;"> <table cellspacing="0" cellpadding="0" border="0" width="100%"> <tr> <td align="center" valign="top" style="padding:20px 0 20px 0"> <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;"> <!-- [ header starts here] --> <tr> <td valign="top"><a href="{{store url=""}}"><img src="{{var logo_url}}" alt="{{var logo_alt|escape}}" style="margin-bottom:10px;" border="0"/></a></td> </tr> <!-- [ middle starts here] --> <tr> <td valign="top"> <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;"">Many thanks for your order, {{htmlescape var=$order.getCustomerName()}}</h1> <h2 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;"">Here's what happens next..</h2> <p style="font-size:12px; line-height:16px; margin:0;"> <p>You will receive an order confirmation email shortly with details of your order. </p> <p>Once your order is ready for dispatch, you'll received track and trace code per individual parcels in your email. </p> <p> Please also check your junk email folder and add our email address in safe-list. </p> <p> You can check the status of your order by <a href="{{store url="customer/account/"}}" style="color:#1E7EC8;">logging into your account</a>. </p> <p> If you have any questions about your order please contact us at <a href="mailto:{{config path='trans_email/ident_support/email'}}" style="color:#1E7EC8;">{{config path='trans_email/ident_support/email'}}</a> or call us at <span class="nobr">{{config path='general/store_information/phone'}}</span> Monday - Friday, 9am - 6pm, CET. </p> <p style="font-size:12px; line-height:16px; margin:0;">Your order summary is below. Thank you again for your business.</p> </tr> <tr> <td> <h2 style="font-size:18px; font-weight:normal; margin:0;">Your Order #{{var order.increment_id}} <small>(placed on {{var order.getCreatedAtFormated('long')}})</small></h2> <?php if ($this->getOrderId()):?> <?php if ($this->getCanViewOrder()) :?> <p><?php echo $this->__('Your order # is: %s.', sprintf('<a href="%s">%s</a>', $this->escapeHtml($this->getViewOrderUrl()), $this->escapeHtml($this->getOrderId()))) ?></p> <?php else :?> <p><?php echo $this->__('Your order # is: %s.', $this->escapeHtml($this->getOrderId())) ?></p> <?php endif;?> <?php if ($this->getCanViewOrder() && $this->getCanPrintOrder()) :?> <p> <?php echo $this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here to print</a> a copy of your order confirmation.', $this->getPrintUrl()) ?> <?php echo $this->getChildHtml() ?> </p> <?php endif;?> <?php endif;?> </td> </tr> <tr> <td> <table cellspacing="0" cellpadding="0" border="0" width="650"> <thead> <tr> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Billing Information:</th> <th width="10"></th> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Payment Method:</th> </tr> </thead> <tbody> <tr> <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;"> <?php $shipping_address_data = $order_details->getShippingAddress(); // Output the ship-to address information echo "<br>" . $shipping_address_data['firstname']; echo " " . $shipping_address_data['lastname']; echo "<br>" . $shipping_address_data['street']; echo "<br>" . $shipping_address_data['city']; echo ", " . $shipping_address_data['region']; echo " " . $shipping_address_data['postcode']; echo "<br>" . $shipping_address_data['country_id']; ?> </td> <td>&nbsp;</td> <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;"> <?php echo "<br>" . $billing_address_data['firstname']; echo " " . $billing_address_data['lastname']; echo "<br>" . $billing_address_data['street']; echo "<br>" . $billing_address_data['city']; echo ", " . $billing_address_data['region']; echo " " . $billing_address_data['postcode']; echo "<br>" . $billing_address_data['country_id']; ?> </td> </tr> </tbody> </table> <br/> <tr> <td> <table cellspacing="0" cellpadding="0" border="0" width="650"> <thead> <tr> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Billing Information:</th> <th width="10"></th> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Payment Method:</th> </tr> </thead> <tbody> <tr> <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;"> <?php // Get shipping method $shipping_method = $order_details->_data["shipping_description"]; ?> </td> <td>&nbsp;</td> <td valign="top" style="font-size:12px; padding:7px 9px 9px 9px; border-left:1px solid #EAEAEA; border-bottom:1px solid #EAEAEA; border-right:1px solid #EAEAEA;"> // Get payment information <?php $payment_method = $order_details->getPayment()->getMethodInstance()->getTitle(); ?> </td> </tr> </tbody> </table> <br/> <table cellspacing="0" cellpadding="0" border="0" width="650"> <thead> tr> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Product Name</th> <th width="10"></th> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Unit Price</th> <th width="10"></th> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Quantity</th> <th width="10"></th> <th align="left" width="325" bgcolor="#EAEAEA" style="font-size:13px; padding:5px 9px 6px 9px; line-height:1em;">Subtotal</th> <th width="10"></th> <tbody> ?> *** Product Listing ***/ // Iterate through each product listing the sku, the name, the quantity ordered, and the item price <?php foreach ($order_details->getAllItems() as $item) { $_product = Mage::getModel(‘catalog/product’)->load($items->getProductId()); $product_small_image_path = Mage::helper(‘catalog/image’)->init($_product, ‘small_image’)->resize(135); ?> <tr> <td><span><img src=”<?php echo $product_small_image_path ?>”/></span><? echo $items->getName();?></td> <td> <?php echo '<p class="price">' . Mage::helper("core")->currency($item->getPrice()) . '</p>'; ?> </td> <td> <?php echo '<p class="qty">' . round($item->getQtyOrdered(), 0) . '</p>'; ?> </td> <td> <?php echo '<p class="lineprice">' . Mage::helper("core")->currency($item->getPrice() * $item->getQtyOrdered()) . '</p>'; ?> </td> <tr> <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you for your business with <strong>{{config path="general/store_information/name"}}</strong> <br> Let us know your feedback on <strong>www.facebook.com/indianstore</strong> </br> </p></center></td> </tr> <tr> <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">www.ekirana.nl is owned by Ras4all <br> KvK# 55200370 <br> BTW# NL523994515B01 <br> Vareseweg 121-123, 3047AT, <br> Rotterdam, The Netherlands <br></p></center></td> </tr> </table> </td> </tr> </table> </div> </body>
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected end of file in /in/2ZCXg on line 283
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/2ZCXg on line 283
Process exited with code 255.
Output for 5.0.0 - 5.0.5
Parse error: parse error, unexpected $ in /in/2ZCXg on line 283
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/2ZCXg on line 30
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ',' or ';' in /in/2ZCXg on line 30
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `','' or `';'' in /in/2ZCXg on line 30
Process exited with code 255.

preferences:
208.55 ms | 1386 KiB | 121 Q