Пример #1
0
echo tep_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
                              </tr>
                            </table>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
<?php 
//---PayPal WPP Modification START ---//
tep_paypal_wpp_ep_button(FILENAME_SHOPPING_CART);
//---PayPal WPP Modification END ---//
?>
          </table>
        </td>
      </tr>
    </table>
    </form>
    <table align="right">
      <tr>
        <td>
<?php 
// *** BEGIN GOOGLE CHECKOUT ***
if (defined('MODULE_PAYMENT_GOOGLECHECKOUT_STATUS') && MODULE_PAYMENT_GOOGLECHECKOUT_STATUS == 'True') {
    include_once 'googlecheckout/gcheckout.php';
}
Пример #2
0
function tep_paypal_wpp_checkout_shipping_error_display($ec_checkout)
{
    global $messageStack, $ec_enabled;
    if (!$ec_enabled) {
        return false;
    }
    if (tep_session_is_registered('paypal_error')) {
        $messageStack->add('shipping', $_SESSION['paypal_error']);
        tep_session_unregister('paypal_error');
    }
    if ($messageStack->size('shipping') > 0) {
        ?>

      <tr>
        <td><?php 
        echo $messageStack->output('shipping');
        ?>
</td>
      </tr>
      <tr>
        <td><?php 
        echo tep_draw_separator('pixel_trans.gif', '100%', '10');
        ?>
</td>
      </tr>
<?php 
    }
    if (!$ec_checkout) {
        tep_paypal_wpp_ep_button(FILENAME_CHECKOUT_SHIPPING);
    } else {
        tep_paypal_wpp_switch_checkout_method(FILENAME_CHECKOUT_SHIPPING);
    }
}