コード例 #1
0
        }
        ?>

  <?php 
        if ($order->hasAccount() == -1) {
            ?>
    <?php 
            if (!Cart66Common::isLoggedIn()) {
                ?>
      <h2>Please Create Your Account</h2>
    
      <?php 
                if (isset($data['errors'])) {
                    Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] Account creation errors: " . print_r($data, true));
                    echo Cart66Common::showErrors($data['errors'], 'Your account could not be created.');
                    echo Cart66Common::getJqErrorScript($data['jqErrors']);
                }
                ?>
    
      <?php 
                $account = $data['account'];
                if (!is_object($account)) {
                    $account = new Cart66Account();
                }
                ?>
      <form action="" method='post' id="account_form" class="phorm2">
        <input type="hidden" name="ouid" value="<?php 
                echo $order->ouid;
                ?>
">
        <ul class="shortLabels">
コード例 #2
0
            <?php 
            }
            ?>
  		</ul>
  		</div><!-- #shippingInfo -->
          <?php 
        } else {
            ?>
          <?php 
        }
        ?>
  </div>    
    <?php 
        if (isset($errors) && count($errors) > 0) {
            echo Cart66Common::showErrors($errors, 'Unable to create account');
            echo Cart66Common::getJqErrorScript($account->getJqErrors());
        }
        ?>

    <form class="phorm2" action="" method='post' style="<?php 
        if (isset($data['completestyle'])) {
            echo $data['completestyle'];
        }
        ?>
">
      <input type="hidden" name="task" value="doexpresscheckout">
      <input type="hidden" name="token" value="<?php 
        echo $token;
        ?>
">
      <input type="hidden" name="PayerID" value="<?php