title: Parse error: syntax error, unexpected ' ' (T_STRING)
body: <p>I get this error:</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected '   ' (T_STRING) in >/home/bijouven/public_html/app/design/frontend/default/magikjewellery/template/checkout/success.phtml >on line 30</p>
  </blockquote>
  
  <p>This is line 30 of success.phtml :</p>
  
  <blockquote>
    <p>$orderObj = Mage::getModel('sales/order')->loadByIncrementId($this->getOrderId());</p>
  </blockquote>
  
  <p>This is the entire code :</p>
  
  <pre><code>&lt;?php
  /**
   * Theme: Magik Jewellery
   * Author: MagentoMagik.com
   * Version: 1.5
   * URL: http://www.magentomagik.com/magento-themes/free-magento-themes/magik-jewellery-magento-theme/
   * Source: http://www.magentomagik.com/ piono checkout success dineromail
   **/ 
  ?&gt;
  &lt;div style="text-align:center;"&gt;
  &lt;div class="page-head"&gt;
      &lt;h2&gt;&lt;?php echo $this-&gt;__('') ?&gt;&lt;/h2&gt;
  &lt;/div&gt;
  &lt;?php echo $this-&gt;getMessagesBlock()-&gt;getGroupedHtml() ?&gt;
  
  &lt;div style="position: absolute; z-index: 0;"&gt;
      &lt;img src="&lt;?php echo($this-&gt;getSkinUrl('images/success.png')) ?&gt;" alt="" usemap="#Map" style="border:5px solid #333; margin-top:4px;"&gt;
  &lt;/div&gt;
  
  &lt;div style="position: relative; z-index: 1;"&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  
  &lt;?php
       //loading the order object 
      $orderObj = Mage::getModel('sales/order')-&gt;loadByIncrementId($this-&gt;getOrderId());
      //get all the items included on the order. 
      /* $orderItems = $orderObj-&gt;getAllItems();
  
      //do a loop to get the sku of each item
  foreach($orderItems as $item)
  {
    //you can either echo each sku of the order / you can use array variable to pass items sku’s
    echo  $item-&gt;getSku();
  } */
      $orderSubTotal = $orderObj -&gt;subtotal;
      $orderGrandTotal = $orderObj -&gt;grand_total;
      $orderGrandTotal = number_format($orderGrandTotal, 2, '.', '');
      $email = $orderObj -&gt;customer_email;
      $firstname = $orderObj -&gt;customer_firstname;
      $lastname = $orderObj -&gt;customer_lastname;
      $payment_method = $orderObj-&gt;getPayment()-&gt;getMethodInstance()-&gt;getCode();
      $phone = $orderObj -&gt;getShippingAddress()-&gt;getData("telephone");
  
      switch ($payment_method){
          case cashondelivery:
              $payment_method = "contra";
              break;
          case banktransfer:
              $payment_method = "deposito";
              break;
          case checkmo2:
              $payment_method = "ar_visa;ar_master;ar_argencard;ar_amex;ar_tnaranja;ar_cabal;ar_tshopping;ar_italcred;";
              break;
          case checkmo1:
              $payment_method = "ar_pagofacil;ar_rapipago;ar_cobroexpress;ar_bapropago;";
              break;
          default:
              $payment_method = "other";
      }
      if ($payment_method == "contra")
      {
          ?&gt;
          &lt;strong&gt;
            &lt;?php if ($this-&gt;canPrint()) :?&gt;
            &lt;?php echo $this-&gt;__('Tu número de pedido es el #: &lt;a href="%s"&gt;%s&lt;/a&gt;', $this-&gt;getViewOrderUrl(), $this-&gt;getOrderId()) ?&gt;.
            &lt;?php  else :?&gt;
            &lt;?php echo $this-&gt;__('Tu número de pedido es el #: %s', $this-&gt;getOrderId()) ?&gt;.
            &lt;?php endif;?&gt;&lt;br&gt;&lt;br&gt;
          &lt;/strong&gt;
          &lt;br/&gt;&lt;br&gt;&lt;br&gt;
          &lt;strong&gt;
              &lt;?php echo $this-&gt;__('En breve recibirás un mail de confirmación con los detalles') ?&gt;
          &lt;/strong&gt;
          &lt;br/&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
              &lt;?php if ($this-&gt;canPrint()) :?&gt;
              &lt;?php echo $this-&gt;__('Click &lt;a href="%s" onclick="this.target=\'_blank\'"&gt;here to print&lt;/a&gt; a copy of your order confirmation.', $this-&gt;getPrintUrl()) ?&gt;
              &lt;?php endif;?&gt;
  
              &lt;?php echo $this-&gt;getChildHtml() ?&gt;
          &lt;/div&gt;
          &lt;?php /*?&gt;&lt;div class="button-set"&gt;
              &lt;button type="button" class="form-button" onclick="window.location='&lt;?php echo $this-&gt;getUrl() ?&gt;'"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Continue Shopping') ?&gt;&lt;/span&gt;&lt;/button&gt;
          &lt;/div&gt;&lt;?php */?&gt;
          &lt;/div&gt;&lt;?php 
      }
      if ($payment_method == "deposito")
      {
          ?&gt; 
          &lt;span&gt;Se ha enviado un mail con los detalles del pedido a &lt;?php echo $email?&gt;&lt;/span&gt;
          &lt;br&gt;
          &lt;br&gt;
          &lt;strong&gt;
              Datos de la cuenta bancaria donde efectuar el depósito/transferencia:
          &lt;/strong&gt;
          &lt;span&gt;
              &lt;br&gt;
              BANCO SANTANDER RIO
              &lt;br&gt;
              CUENTA CORRIENTE NUMERO: 367303/6
              &lt;br&gt;
              SUCURSAL FLORESTA 020
              &lt;br&gt;
              TITULAR: Martin Kruszyn
              &lt;br&gt;
              CUIT: 20345839489
              &lt;br&gt;
              CBU: 0720020588000036730368
              Una vez realizado el depósito/transferencia por favor enviar comprobante a:&lt;br&gt;
              info@bijouventas.com.ar.
              &lt;br&gt;
              Una vez acreditado el pago, le enviaremos su pedido en un plazo de 48-72 horas hábiles.
          &lt;/span&gt;
          &lt;br/&gt;
              &lt;?php if ($this-&gt;canPrint()) :?&gt;
              &lt;?php echo $this-&gt;__('Click &lt;a href="%s" onclick="this.target=\'_blank\'"&gt;here to print&lt;/a&gt; a copy of your order confirmation.', $this-&gt;getPrintUrl()) ?&gt;
              &lt;?php endif;?&gt;
  
              &lt;?php echo $this-&gt;getChildHtml() ?&gt;
          &lt;/p&gt;
          &lt;/div&gt;
          &lt;?php /*?&gt;&lt;div class="button-set"&gt;
              &lt;button type="button" class="form-button" onclick="window.location='&lt;?php echo $this-&gt;getUrl() ?&gt;'"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Continue Shopping') ?&gt;&lt;/span&gt;&lt;/button&gt;
          &lt;/div&gt;&lt;?php */?&gt;
          &lt;/div&gt;
          &lt;?php
      }
      if ($payment_method != "other" &amp;&amp; $payment_method != "deposito" &amp;&amp; $payment_method != "contra")
      { ?&gt;
          &lt;strong&gt;
            &lt;?php if ($this-&gt;canPrint()) :?&gt;
            &lt;?php echo $this-&gt;__('Tu número de pedido es el #: &lt;a href="%s"&gt;%s&lt;/a&gt;', $this-&gt;getViewOrderUrl(), $this-&gt;getOrderId()) ?&gt;.
            &lt;?php  else :?&gt;
            &lt;?php echo $this-&gt;__('Tu número de pedido es el #: %s', $this-&gt;getOrderId()) ?&gt;.
            &lt;?php endif;?&gt;&lt;br&gt;&lt;br&gt;
          &lt;/strong&gt;
          &lt;td width="100%" align="center"&gt;
              &lt;form action="https://checkout.dineromail.com/CheckOut" target="_self" method="post" id="dineromail"&gt;
                   &lt;input type="hidden" name="merchant" value="bijouventaspagina@gmail.com"&gt;
  
                   &lt;input type="hidden" name="country_id" value="1"&gt; 
                   &lt;input type="hidden" name="language" value="es"&gt;
                   &lt;input type="hidden" name="currency" value="ars"&gt;
                   &lt;input type="hidden" name="change_quantity" value="0"&gt; 
                   &lt;input type="hidden" name="display_shipping" value="0"&gt; 
                   &lt;input type="hidden" name="payment_method_available" value="&lt;?php echo $payment_method?&gt;"&gt; 
                   &lt;input type="hidden" name="transaction_id" value="&lt;?php echo $this-&gt;getOrderId() ?&gt;"&gt; 
                   &lt;input type="hidden" name="display_additional_charge" value="0"&gt;
  
                   &lt;input type="hidden" name="seller_name" value="Bijou Ventas"&gt; 
  
                   &lt;input type="hidden" name="buyer_name" value="&lt;?php echo $firstname ?&gt;"&gt; 
                   &lt;input type="hidden" name="buyer_lastname" value="&lt;?php echo $lastname ?&gt;"&gt; 
                   &lt;input type="hidden" name="buyer_phone" value="&lt;?php echo $phone ?&gt;"&gt; 
                   &lt;input type="hidden" name="buyer_email" value="&lt;?php echo $email ?&gt;"&gt; 
  
                   &lt;input type="hidden" name="header_image" value="http://bijouventas.com.ar/skin/frontend/default/magikjewellery/images/logo.png"&gt;
                   &lt;?php /*&lt;input type="hidden" name="pending_url" value="http://casamundial.com.ar/index.php?option=com_virtuemart&amp;amp;page=checkout.resultdm&amp;amp;er=1&amp;amp;order_id=2558"&gt; 
                   &lt;input type="hidden" name="error_url" value="http://casamundial.com.ar/index.php?option=com_virtuemart&amp;amp;page=checkout.resultdm&amp;amp;er=2&amp;amp;order_id=2558"&gt; 
                   */ ?&gt;
                   &lt;input type="hidden" name="ok_url" value="http://bijouventas.com.ar/index.php/"&gt; 
  
                  &lt;input type="hidden" name="item_name_1" value="A pagar"&gt;
                  &lt;input type="hidden" name="item_quantity_1" value="1"&gt; 
                  &lt;input type="hidden" name="item_ammount_1" value="&lt;?php echo $orderGrandTotal ?&gt;"&gt; 
                  &lt;input type="hidden" name="item_currency_1" value="ars"&gt; 
  
                  &lt;br&gt;&lt;b&gt;PARA TERMINAR SU COMPRA, DEBE EFECTUAR EL PAGO.&lt;/b&gt;
                  &lt;br&gt;&lt;b&gt;EN CASO DE NO SER REDIRECCIONADO AL SITIO DE DINERO MAIL, HAGA CLICK EN EL BOTON DE ABAJO&lt;/b&gt;&lt;br&gt;&lt;br&gt;
                  &lt;input type="image" src="https://argentina.dineromail.com/imagenes/botones/pagar-medios_c.gif" border="0" name="submit" alt="Pagar con Dineromail"&gt;
                  &lt;br&gt;Usted sera redirigido a nuestra plataforma de pago online automaticamente &lt;br&gt;&lt;br&gt;
  
  
  &lt;!-- Google Code for Compra Carrito Conversion Page --&gt;
  &lt;script type="text/javascript"&gt;
  /* &lt;![CDATA[ */
  var google_conversion_id = 975718772;
  var google_conversion_language = "en";
  var google_conversion_format = "2";
  var google_conversion_color = "ffffff";
  var google_conversion_label = "5-yCCOSYgAgQ9JKh0QM";
  var google_conversion_value = 1.00;
  var google_conversion_currency = "ARS";
  var google_remarketing_only = false;
  /* ]]&gt; */
  &lt;/script&gt;
  &lt;script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"&gt;
  &lt;/script&gt;
  &lt;noscript&gt;
  &lt;div style="display:inline;"&gt;
  &lt;img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/975718772/?value=1.00&amp;amp;currency_code=ARS&amp;amp;label=5-yCCOSYgAgQ9JKh0QM&amp;amp;guid=ON&amp;amp;script=0"/&gt;
  &lt;/div&gt;
  &lt;/noscript&gt;
                  &lt;script&gt;setTimeout('document.getElementById("dineromail").submit();',1500);&lt;/script&gt; 
              &lt;/form&gt;    
          &lt;/td&gt;
      &lt;?php 
      } ?&gt;
  
  
  &lt;!-- Facebook Conversion Code for Pixel Comprar --&gt;
  &lt;script&gt;(function() {
    var _fbq = window._fbq || (window._fbq = []);
    if (!_fbq.loaded) {
      var fbds = document.createElement('script');
      fbds.async = true;
      fbds.src = '//connect.facebook.net/en_US/fbds.js';
      var s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(fbds, s);
      _fbq.loaded = true;
    }
  })();
  window._fbq = window._fbq || [];
  window._fbq.push(['track', '6016863737486', {'value':'0.00','currency':'ARS'}]);
  &lt;/script&gt;
  &lt;noscript&gt;&lt;img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6016863737486&amp;amp;cd[value]=0.00&amp;amp;cd[currency]=ARS&amp;amp;noscript=1" /&gt;&lt;/noscript&gt;
  </code></pre>
  
  <p>Added ";" and erradicates the "(" &amp; ")" from echo. Still getting same error
  <strong>New code between lines 1-30:</strong> </p>
  
  <pre><code>&lt;?php
  /**
   * Theme: Magik Jewellery
   * Author: MagentoMagik.com
   * Version: 1.5
   * URL: http://www.magentomagik.com/magento-themes/free-magento-themes/magik-jewellery-magento-theme/
   * Source: http://www.magentomagik.com/ piono checkout success dineromail
   **/ 
  ?&gt;
  &lt;div style="text-align:center;"&gt;
  &lt;div class="page-head"&gt;
      &lt;h2&gt;&lt;?php echo $this-&gt;__(''); ?&gt;&lt;/h2&gt;
  &lt;/div&gt;
  &lt;?php echo $this-&gt;getMessagesBlock()-&gt;getGroupedHtml(); ?&gt;
  
  &lt;div style="position: absolute; z-index: 0;"&gt;
      &lt;img src="&lt;?php echo $this-&gt;getSkinUrl('images/success.png'); ?&gt;" alt="" usemap="#Map" style="border:5px solid #333; margin-top:4px;"&gt;
  &lt;/div&gt;
  
  &lt;div style="position: relative; z-index: 1;"&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  
  &lt;?php
       //loading the order object 
      $orderObj = Mage::getModel('sales/order')-&gt;loadByIncrementId($this-&gt;getOrderId());
  </code></pre>