echo $cre_RCI->get('checkoutpaymentaddress', 'menu');
// RCI code eof
// BOF: Lango Added for template MOD
// EOF: Lango Added for template MOD
?>

     <div class="row">
        <div class="col-sm-12 col-lg-12 well">
        <?php 
echo '<b>' . TITLE_CONTINUE_CHECKOUT_PROCEDURE . '</b><br>' . TEXT_CONTINUE_CHECKOUT_PROCEDURE;
?>

        </div>
	 </div>
  <?php 
echo tep_draw_hidden_field('action', 'submit') . tep_template_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE);
if ($process == true) {
    ?>

<?php 
    echo '<a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '">' . tep_template_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>';
    ?>

<?php 
}
?>
</form>
<?php 
// RCI code start
echo $cre_RCI->get('checkoutpaymentaddress', 'bottom');
echo $cre_RCI->get('global', 'bottom');
<?php 
}
?>
        <div class="content-search-container">
          <div class="form-group  large-padding-right">
            <label class="sr-only"></label>
            <input type="text" name="keywords" value="" class="form-control" placeholder="<?php 
echo HEADING_SEARCH_CRITERIA;
?>
">
          </div>
        </div>
        <div class="button-set">
			<p class="pull-right"><?php 
echo tep_template_image_submit('button_search.gif', IMAGE_BUTTON_SEARCH);
?>
 </p>
			<p class="help-block margin-left"><?php 
echo '<a href="javascript:popupWindow(\'' . tep_href_link(FILENAME_POPUP_SEARCH_HELP) . '\')">' . TEXT_SEARCH_HELP_LINK . '</a>';
?>
</p>
			<p class="help-block margin-left"><?php 
echo tep_draw_checkbox_field('search_in_description', '1') . ' ' . TEXT_SEARCH_IN_DESCRIPTION;
?>
</p>

        </div>
      </div>
    </div>
              </table>
            </form></td>
          </tr>
          <tr>
            <td colspan="4"><?php 
        echo tep_draw_separator('pixel_trans.gif', '100%', '10');
        ?>
</td>
          </tr>
          <tr>
            <td colspan="4">
              <!-- tell_a_friend //-->
              <?php 
        echo '<h3 class="no-margin-top">' . BOX_HEADING_SEND_WISHLIST . '</h3>';
        $info_box_contents = array();
        $info_box_contents[] = array('form' => tep_draw_form('tell_a_friend', tep_href_link(FILENAME_WISHLIST_SEND, '', 'NONSSL', false), 'get'), 'align' => 'center', 'text' => tep_draw_input_field('send_to', '', 'size="20" class="form-control"') . '&nbsp;<br><br>' . tep_template_image_submit('button_tell_a_friend.gif', BOX_TEXT_SEND) . tep_draw_hidden_field('products_ids', isset($_GET['products_ids'])) . tep_hide_session_id() . '<br><br>' . BOX_TEXT_SEND);
        new contentBox($info_box_contents, true, true);
        ?>
              <!-- tell_a_friend_eof //-->
              </td>
            </tr>
              <?php 
    }
} else {
    // Nothing in the customers wishlist
    ?>
            <tr>
                <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
              </tr>
              <tr>
                <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
                  <tr class="infoBoxContents">
                    <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
                      <tr>
                        <td width="10"><?php 
echo tep_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
                        <td class="main"><?php 
echo '<a href="' . tep_href_link(FILENAME_ARTICLE_REVIEWS, tep_get_all_get_params(array('reviews_id', 'action'))) . '">' . tep_template_image_button('button_back.gif', IMAGE_BUTTON_BACK) . '</a>';
?>
</td>
                        <td class="main" align="right"><?php 
echo tep_template_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE);
?>
</td>
                        <td width="10"><?php 
echo tep_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>

    </table></form>
<?php 
// RCI code start
Ejemplo n.º 5
0
    $info_box_contents[] = array('text' => TEXT_REQUIRE_LOGIN_MESSAGE_HEADING);
    new contentBoxHeading($info_box_contents);
    $info_box_contents = array();
    $info_box_contents[] = array('text' => TEXT_REQUIRE_LOGIN_MESSAGE);
    new contentBox($info_box_contents, true, true);
    if (TEMPLATE_INCLUDE_CONTENT_FOOTER == 'true') {
        // new contentboxFooter($info_box_contents);
    }
    echo '</div>';
}
//BOF: MaxiDVD Returning Customer Info SECTION
//===========================================================
$returning_customer_title = HEADING_RETURNING_CUSTOMER;
// DDB - 040620 - PWA - change TEXT by HEADING
if ($setme != '') {
    $returning_customer_info = "\r\n<!--Confirm Block-->\r\n\r\n<td width=\"50%\" height=\"100%\" valign=\"top\"><table border=\"0\" width=\"100%\" height=\"100%\" cellspacing=\"1\" cellpadding=\"2\" class=\"infoBox\">\r\n<tr class=\"infoBoxContents\">\r\n<td>\r\n<table border=\"0\" width=\"100%\" height=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\r\n <tr>\r\n   <td class=\"main\" colspan=\"2\">" . TEXT_YOU_HAVE_TO_VALIDATE . "</td>\r\n </tr>\r\n <tr>\r\n   <td class=\"main\"><b>" . ENTRY_EMAIL_ADDRESS . "</b></td>\r\n   <td class=\"main\">" . tep_draw_input_field('email_address') . "</td>\r\n </tr>\r\n <tr>\r\n   <td class=\"main\"><b>" . ENTRY_VALIDATION_CODE . "</b></td>\r\n   <td class=\"main\">" . tep_draw_input_field('pass') . tep_draw_input_field('password', $_POST['password'], '', 'hidden') . "</td>\r\n </tr>\r\n <tr>\r\n   <td class=\"smallText\" colspan=\"2\">" . '<a href="' . tep_href_link('validate_new.php', '', 'SSL') . '">' . TEXT_NEW_VALIDATION_CODE . '</a>' . "</td>\r\n </tr>\r\n <tr>\r\n   <td colspan=\"2\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td>\r\n </tr>\r\n <tr>\r\n   <td colspan=\"2\"><table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">\r\n     <tr>\r\n       <td width=\"10\">" . tep_draw_separator('pixel_trans.gif', '10', '1') . "</td>\r\n       <td align=\"right\">" . tep_template_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE) . "</td>\r\n       <td width=\"10\">" . tep_draw_separator('pixel_trans.gif', '10', '1') . "</td>\r\n     </tr>\r\n</table>\r\n        </table></td>\r\n      </tr>\r\n    </table></form></td>\r\n\r\n<!--Confirm Block END-->\r\n";
} else {
    $returning_customer_info = "\r\n\r\n\r\n<div class=\"row\">\r\n    <h1 class=\"no-margin-top\"></h1>\r\n    <div class=\"row\">\r\n      <div class=\"col-sm-12 col-lg-12 large-padding-left margin-top\">\r\n        <div class=\"well no-padding-top\"><br>\r\n            <h3 class=\"no-margin-top\">" . MENU_TEXT_RETURNING_CUSTOMER . "</h3>\r\n            <div class=\"form-group\">\r\n\t\t\t  <label class=\"sr-only\"></label>   " . tep_draw_input_field('email_address', '', 'class="form-control" placeholder="' . ENTRY_EMAIL_ADDRESS . '"') . "</br>\r\n            </div>\r\n            <div class=\"form-group\">\r\n\t\t       <label class=\"sr-only\"></label>      " . tep_draw_password_field('password', '', 'class="form-control" placeholder="' . MENU_TEXT_PASSWORD . '"') . "\r\n   \t\t\t    <p class=\"help-block small-margin-left\">" . '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>' . "<br><br></p>\r\n            </div>\r\n          <div class=\"button-set clearfix\">\r\n\t\t  <button class=\"pull-right btn btn-lg btn-primary\" type=\"submit\">" . MENU_TEXT_SIGN_IN . "</button>\r\n          </div>\r\n          </form>\r\n\r\n        </div>\r\n      </div>\r\n      <div class=\"col-sm-12 col-lg-12 margin-top create-account-div\">\r\n        <div class=\"well no-padding-top\">\r\n          <h3>" . TEXT_NEW_CUSTOMER . "</h3>\r\n          <p>" . TEXT_NEW_CUSTOMER_INTRODUCTION . "</p>\r\n          <div class=\"buttons-set clearfix large-margin-top\">" . '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '"> <form class=\\"form-inline\\" action=' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '><button class="pull-right btn btn-lg btn-primary">' . IMAGE_BUTTON_CREATE_ACCOUNT . '</button></a>' . "\r\n\r\n          </div>\r\n        </div>\r\n      </div>\r\n        </div>\r\n      </div>\r\n\r\n\r\n\r\n\r\n\r\n";
}
//===========================================================
// RCI code start
echo $cre_RCI->get('login', 'aboveloginbox');
// RCI code end
?>
<!-- login_pwa -->

    <tr>
     <td class="main" width=100% valign="top" align="center">
<?php 
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left', 'text' => $returning_customer_title);
Ejemplo n.º 6
0
 function credit_selection()
 {
     global $customer_id, $currencies, $language;
     $selection_string2 = '';
     $selection_string2 .= '<tr>' . "\n";
     $selection_string2 .= '<td class="main">' . "\n";
     $selection_string2 .= TEXT_ENTER_COUPON_CODE . tep_draw_input_field('gv_redeem_code') . ' and click ';
     $image_submit2 = tep_template_image_submit('button_redeem.gif', IMAGE_REDEEM_VOUCHER, 'onClick="submitFunction()"');
     $selection_string2 .= ' </td><td align="right">' . $image_submit2 . '</td>';
     $selection_string2 .= '</tr>' . "\n";
     return $selection_string2;
 }
    $branded_url = file_exists('checkout_payment_template.php') ? 'checkout_payment_template.php' : 'default';
    $request_type = getenv('HTTPS') == 'on' ? 'SSL' : 'NONSSL';
    if ($request_type == 'SSL') {
        $content_template_url = 'https://' . substr(tep_href_link($branded_url, '', 'NONSSL', false, false), strpos(tep_href_link($branded_url, '', 'NONSSL', false, false), '://') + 3);
    } else {
        $content_template_url = '';
        // no SSL = force default template page
    }
    $allowed_types = defined('MODULE_PAYMENT_CRESECURE_ACCEPTED_CC') ? str_replace(', ', '|', MODULE_PAYMENT_CRESECURE_ACCEPTED_CC) : 'Mastercard|Visa';
    if (defined('MODULE_PAYMENT_CRESECURE_TEST_MODE') && MODULE_PAYMENT_CRESECURE_TEST_MODE == 'True') {
        $this->form_action_url = 'https://sandbox-cresecure.net/securepayments/a1/cc_collection.php';
        // sandbox url
    } else {
        $this->form_action_url = 'https://cresecure.net/securepayments/a1/cc_collection.php';
        // production url
    }
    $currency = isset($order->info['currency']) ? $order->info['currency'] : 'USD';
    // calculate total weight and formulate order description
    $total_weight = 0;
    $order_desc = '';
    for ($i = 0; $i < sizeof($order->products); $i++) {
        $total_weight = $total_weight + (int) $order->products[$i]['qty'] * (double) $order->products[$i]['weight'];
        $order_desc .= $order->products[$i]['qty'] . '-' . $order->products[$i]['name'] . '**';
    }
    $rci .= tep_draw_form('payment', $this->form_action_url, 'post') . tep_draw_hidden_field('CRESecureID', $username) . tep_draw_hidden_field('CRESecureAPIToken', $password) . tep_draw_hidden_field('customer_company', isset($order->billing['company']) ? $order->billing['company'] : $order->customer['company']) . tep_draw_hidden_field('customer_firstname', isset($order->billing['firstname']) ? $order->billing['firstname'] : $order->customer['firstname']) . tep_draw_hidden_field('customer_lastname', isset($order->billing['lastname']) ? $order->billing['lastname'] : $order->customer['lastname']) . tep_draw_hidden_field('customer_address', isset($order->billing['street_address']) ? $order->billing['street_address'] : $order->customer['street_address']) . tep_draw_hidden_field('customer_email', isset($order->billing['email_address']) ? $order->billing['email_address'] : $order->customer['email_address']) . tep_draw_hidden_field('customer_phone', isset($order->billing['telephone']) ? $order->billing['telephone'] : $order->customer['telephone']) . tep_draw_hidden_field('customer_city', isset($order->billing['city']) ? $order->billing['city'] : $order->customer['city']) . tep_draw_hidden_field('customer_state', isset($order->billing['state']) ? tep_get_zone_code($order->billing['country']['id'], $order->billing['zone_id'], '') : tep_get_zone_code($order->customer['country']['id'], $order->customer['zone_id'], '')) . tep_draw_hidden_field('customer_postal_code', isset($order->billing['postcode']) ? $order->billing['postcode'] : $order->customer['postcode']) . tep_draw_hidden_field('customer_country', isset($order->billing['country']['iso_code_3']) ? $order->billing['country']['iso_code_3'] : $order->customer['country']['iso_code_3']) . tep_draw_hidden_field('delivery_company', $order->delivery['company']) . tep_draw_hidden_field('delivery_firstname', $order->delivery['firstname']) . tep_draw_hidden_field('delivery_lastname', $order->delivery['lastname']) . tep_draw_hidden_field('delivery_address', $order->delivery['street_address']) . tep_draw_hidden_field('delivery_email', $order->delivery['email_address']) . tep_draw_hidden_field('delivery_phone', $order->delivery['telephone']) . tep_draw_hidden_field('delivery_city', $order->delivery['city']) . tep_draw_hidden_field('delivery_state', tep_get_zone_code($order->delivery['country']['id'], $order->delivery['zone_id'], '')) . tep_draw_hidden_field('delivery_postal_code', $order->delivery['postcode']) . tep_draw_hidden_field('delivery_country', $order->delivery['country']['iso_code_3']) . tep_draw_hidden_field('total_amt', number_format($order->info['total_value'], 2)) . tep_draw_hidden_field('total_weight', $total_weight) . tep_draw_hidden_field('order_desc', $order_desc) . tep_draw_hidden_field('order_id', $order_id) . tep_draw_hidden_field('customer_id', $_SESSION['customer_id']) . tep_draw_hidden_field('currency_code', $currency) . tep_draw_hidden_field('lang', $language) . tep_draw_hidden_field('allowed_types', $allowed_types) . tep_draw_hidden_field('sess_id', tep_session_id()) . tep_draw_hidden_field('sess_name', tep_session_name()) . tep_draw_hidden_field('ip_address', $_SERVER["REMOTE_ADDR"]) . tep_draw_hidden_field('return_url', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false, false)) . tep_draw_hidden_field('content_template_url', $content_template_url);
    $rci .= '<td align="center" class="main">' . tep_template_image_submit('button_complete_payment.gif', IMAGE_COMPLETE_PAYMENT) . '</td>' . "\n";
    $rci .= '</form>' . "\n";
}
return $rci;
?>
 
        $blurb = '';
    }
    $sub_products_query = tep_db_query("select sp.products_id, sp.products_quantity, sp.products_price, sp.products_tax_class_id, sp.products_image, spd.products_name, " . $blurb . " sp.products_model from " . TABLE_PRODUCTS . " sp, " . TABLE_PRODUCTS_DESCRIPTION . " spd where sp.products_quantity > 0 and sp.products_parent_id = " . (int) $product_info['products_id'] . " and spd.products_id = sp.products_id and spd.language_id = " . (int) $languages_id . " order by " . $select_order_by);
    if (tep_db_num_rows($sub_products_query) > 0) {
        if (defined('PRODUCT_INFO_SUB_PRODUCT_DISPLAY') && PRODUCT_INFO_SUB_PRODUCT_DISPLAY == 'In Listing') {
            include DIR_WS_MODULES . 'product_info/sub_products_listing.php';
        } else {
            if (PRODUCT_INFO_SUB_PRODUCT_DISPLAY == 'Drop Down') {
                include DIR_WS_MODULES . 'product_info/sub_products_dropdown.php';
            }
        }
    }
    if (PRODUCT_INFO_SUB_PRODUCT_PURCHASE == 'Multi' || PRODUCT_INFO_SUB_PRODUCT_PURCHASE == 'Single' && PRODUCT_INFO_SUB_PRODUCT_DISPLAY == 'Drop Down' || $product_has_sub == 0) {
        if ($hide_add_to_cart == 'false' && group_hide_show_prices() == 'true') {
            if ($valid_to_checkout == true) {
                echo '<div class="text-right small-padding-top">' . tep_template_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'align="middle"') . '</div>';
            }
        }
    }
    ?>
    </div>
<div class="col-sm-12 col-lg-12">
    <?php 
    // sub product_eof
    if (SHOW_PRICE_BREAK_TABLE == 'true') {
        //include(DIR_WS_MODULES . FILENAME_PRODUCT_QUANTITY_TABLE);
        if (file_exists(TEMPLATE_FS_CUSTOM_MODULES . FILENAME_PRODUCT_QUANTITY_TABLE)) {
            require TEMPLATE_FS_CUSTOM_MODULES . FILENAME_PRODUCT_QUANTITY_TABLE;
        } else {
            require DIR_WS_MODULES . FILENAME_PRODUCT_QUANTITY_TABLE;
        }
            for ($n = 0; $n < sizeof($tab_name); $n++) {
                if ($n != 0) {
                    $tab_title .= ucfirst($tab_name[$n]) . ' ';
                }
            }
        }
        include_once $product_tabs_directory . $file;
    }
    ?>
      </div>
      <!-- Tabs eof -->
      <?php 
    if (PRODUCT_INFO_SUB_PRODUCT_PURCHASE == 'Multi' || PRODUCT_INFO_SUB_PRODUCT_PURCHASE == 'Single' && PRODUCT_INFO_SUB_PRODUCT_DISPLAY == 'Drop Down') {
        if ($hide_add_to_cart == 'false' && group_hide_show_prices() == 'true') {
            if ($valid_to_checkout == true) {
                echo '<br><div style="float:right">' . tep_template_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART, 'align="middle"') . '</div>';
            }
        }
    }
    ?>
    </td>
  </tr>
  <?php 
    if (SHOW_PRICE_BREAK_TABLE == 'true') {
        ?>
    <tr>
      <td><?php 
        echo tep_draw_separator('pixel_trans.gif', '100%', '10');
        ?>
</td>
    </tr>
</p>

<?php 
        } else {
            $valid_to_checkout = false;
            ?>

       <p class="alert alert-danger text-center"><?php 
            echo OUT_OF_STOCK_CANT_CHECKOUT;
            ?>
<p>

<?php 
        }
    }
    echo tep_template_image_submit('index.png', IMAGE_BUTTON_UPDATE_CART);
    ?>
      <div class="row" id="content-shopping-cart-order-totals">
        <div id="content-shopping-cart-order-totals-left" class="col-sm-6 col-lg-6"></div>
        <div id="content-shopping-cart-order-totals-right" class="col-sm-6 col-lg-6">
<div class="clearfix">
   <?php 
    // RCI code start
    $offset_amount = 0;
    $returned_rci = $cre_RCI->get('shoppingcart', 'offsettotal');
    // RCI code eof
    if (trim(strip_tags($returned_rci)) != NULL) {
        echo '      <b>' . SUB_TITLE_SUB_TOTAL . '</b>' . "\n";
        echo '      <b>' . $currencies->format($cart->show_total()) . '</b>' . "\n";
        echo $returned_rci;
        echo '      <b>' . SUB_TITLE_TOTAL . '</b></td>' . "\n";






    <tr>
      <td>
      <div style=" border:1px solid #D3D3D3;margin-top:20px;">
        <?php 
    if (ENABLE_TELL_A_FRIEND_ARTICLE == 'true') {
        if (isset($_GET['articles_id'])) {
            echo BOX_TEXT_TELL_A_FRIEND;
            $info_box_contents = array();
            $info_box_contents[] = array('form' => tep_draw_form('tell_a_friend_article', tep_href_link(FILENAME_TELL_A_FRIEND_ARTICLE, '', 'NONSSL', false), 'get'), 'align' => 'left', 'text' => TEXT_TELL_A_FRIEND . '&nbsp;' . tep_draw_input_field('to_email_address', '', 'size="40" maxlength="40" style="width: ' . (BOX_WIDTH - 30) . 'px"') . '&nbsp;' . tep_draw_hidden_field('articles_id', $_GET['articles_id']) . tep_hide_session_id() . tep_template_image_submit('button_tell_a_friend.gif', BOX_HEADING_TELL_A_FRIEND));
            new contentBox($info_box_contents, true, true, $column_location);
        }
    }
    ?>
        </div>
      </td>
    </tr>
    <!-- tell_a_friend_eof //-->
    <tr>
      <td>
        <?php 
    // require(DIR_WS_MODULES . FILENAME_ARTICLES_XSELL);
    if (file_exists(TEMPLATE_FS_CUSTOM_MODULES . FILENAME_ARTICLES_XSELL)) {
        require TEMPLATE_FS_CUSTOM_MODULES . FILENAME_ARTICLES_XSELL;
    } else {