示例#1
0
 * @author        WooThemes
 * @package       WooCommerce/Templates
 * @version       2.1.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly


global $sitepress;

if ( isset( $sitepress ) && ! empty( $sitepress ) ) {

    $cart_tatals_fix = yit_icl_translate( 'theme', 'yit', 'cart-totals', 'Cart Totals' );
    $fix_coupon      = yit_icl_translate( 'theme', 'yit', 'cart-totals-coupon', 'Coupon:' );
    $cart_subtotal   = yit_icl_translate( 'theme', 'yit', 'cart-totals-subtotals', 'Cart Subtotal' );
    $order_total_fix = yit_icl_translate( 'theme', 'yit', 'cart-totals-order', 'Order Total' );

}
else {

    $cart_tatals_fix = __( 'Cart Totals', 'yit' );
    $fix_coupon      = __( 'Coupon:', 'yit' );
    $cart_subtotal   = __( 'Cart Subtotal', 'yit' );
    $order_total_fix = __( 'Order Total', 'yit' );

}

?>
<div class="span6 cart_totals <?php if ( WC()->customer->has_calculated_shipping() ) echo 'calculated_shipping'; ?>">
    <div class="border-1 border">
        <div class="border-2 border">
示例#2
0
if ( isset( $sitepress ) && ! empty( $sitepress ) ) {

    $default_lang = $sitepress->get_default_language();
    $lang         = ICL_LANGUAGE_CODE;

    if ( $sitepress->get_default_language() == ICL_LANGUAGE_CODE ) {
        $sitepress->switch_lang( $default_lang, true );
    }
    else {
        $sitepress->switch_lang( $lang, true );
    }

    $i_accept_the = yit_icl_translate( 'theme', 'yit', 'form-place-order-accept', 'I accept the' );
    $place_fix    = yit_icl_translate( 'theme', 'yit', 'form-place-order', 'Place order' );
    $terms_fix    = yit_icl_translate( 'theme', 'yit', 'form-place-order-terms-condition', 'terms &amp; conditions' );
    $since_fix    = yit_icl_translate( 'theme', 'yit', 'form-place-order-javascript-support-advise', 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.' );


}
else {

    $i_accept_the = __( 'I accept the', 'yit' );
    $place_fix    = __( 'Place order', 'yit' );
    $terms_fix    = __( 'terms &amp; conditions', 'yit' );
    $since_fix    = __( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'yit' );

}

?>

<div class="form-row place-order">
示例#3
0
                    </td>
                </tr>
            <?php
            endforeach;

            // Reset to parent grouped product
            $post    = $parent_product_post;
            $product = wc_get_product( $parent_product_post->ID );
            setup_postdata( $parent_product_post );
            ?>
            </tbody>
        </table>

        <input type="hidden" name="add-to-cart" value="<?php echo esc_attr( $product->id ); ?>" />

        <?php if ( $quantites_required ) :
            $label = apply_filters( 'single_add_to_cart_text', yit_icl_translate( "theme", "yit", "add_to_cart_text", yit_get_option( 'add-to-cart-text' ) ) );
            ?>

            <?php do_action( 'woocommerce_before_add_to_cart_button' ); ?>

            <button type="submit" class="single_add_to_cart_button button alt"><?php echo $label; ?></button>

            <?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>

        <?php endif; ?>
    </form>

    <div class="clear"></div>

<?php do_action( 'woocommerce_after_add_to_cart_form' ); ?>
示例#4
0
 * @version       2.1.0
 */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $sitepress;

if ( isset( $sitepress ) && ! empty( $sitepress ) ) {

    $shipping_fix     = yit_icl_translate( 'theme', 'yit', 'cart-shipping-num', 'Shipping #%d' );
    $shipping_and     = yit_icl_translate( 'theme', 'yit', 'cart-shipping-handling', 'Shipping and Handling' );
    $noshipping_found = yit_icl_translate( 'theme', 'yit', 'cart-shipping-no-shipping-method', 'No shipping methods were found; please recalculate your shipping or continue to checkout and enter your full address to see if there is shipping available to your location.' );

    $please_fill    = yit_icl_translate( 'theme', 'yit', 'cart-shipping-fill-details', 'Please fill in your details to see available shipping methods.' );
    $sorry_shipping = yit_icl_translate( 'theme', 'yit', 'cart-shipping-unavailable', 'Sorry, shipping is unavailable %s.' );
    $if_you_require = yit_icl_translate( 'theme', 'yit', 'cart-shipping-require-assistace', 'If you require assistance or wish to make alternate arrangements please contact us.' );
    $fix_shipping   = yit_icl_translate( 'theme', 'yit', 'cart-shipping', 'Shipping' );

}
else {

    $shipping_fix     = __( 'Shipping #%d', 'yit' );
    $shipping_and     = __( 'Shipping and Handling', 'yit' );
    $noshipping_found = __( 'No shipping methods were found; please recalculate your shipping or continue to checkout and enter your full address to see if there is shipping available to your location.', 'yit' );

    $please_fill    = __( 'Please fill in your details to see available shipping methods.', 'yit' );
    $sorry_shipping = __( 'Sorry, shipping is unavailable %s.', 'yit' );
    $if_you_require = __( 'If you require assistance or wish to make alternate arrangements please contact us.', 'yit' );
    $fix_shipping   = __( 'Shipping', 'yit' );

}
示例#5
0
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 */

global $sitepress;

$is_wpml_active = ( isset( $sitepress ) && ! empty( $sitepress ) );

if ( $is_wpml_active ) {

    $payment_fix    = yit_icl_translate( 'theme', 'yit', 'form-payment-method',  'Payment method' );
    $please_fill    = yit_icl_translate( 'theme', 'yit', 'form-payment-method-fill-details', 'Please fill in your details above to see available payment methods.' );
    $sorry_it_seems = yit_icl_translate( 'theme', 'yit', 'form-payment-method-no-available', 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.' );

}
else {

    $payment_fix    = __( 'Payment method', 'yit' );
    $please_fill    = __( 'Please fill in your details above to see available payment methods.', 'yit' );
    $sorry_it_seems = __( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'yit' );
}

?>


<h3><?php echo $payment_fix; ?></h3>
<div class="clear"></div>
示例#6
0
    exit;
} // Exit if accessed directly

global $sitepress;

$is_wpml_active = ( isset( $sitepress ) && ! empty( $sitepress ) );

if ( $is_wpml_active ) {

    $fix_product     = yit_icl_translate( 'theme', 'yit', 'review-order-product', 'Product' );
    $fix_qty         = yit_icl_translate( 'theme', 'yit', 'review-order-qty', 'Qty' );
    $fix_totals      = yit_icl_translate( 'theme', 'yit', 'review-order-totals', 'Totals' );
    $cart_subtotal   = yit_icl_translate( 'theme', 'yit', 'review-order-cart-subtotal', 'Cart Subtotal' );
    $fix_coupon      = yit_icl_translate( 'theme', 'yit', 'review-order-coupon', 'Coupon:' );
    $order_total_fix = yit_icl_translate( 'theme', 'yit', 'review-order-total', 'Order Total' );
    $additional_info = yit_icl_translate( 'theme', 'yit', 'review-order-additional-info', 'Additional Information' );

} else {

    $fix_product     = __( 'Product', 'yit' );
    $fix_qty         = __( 'Qty', 'yit' );
    $fix_totals      = __( 'Totals', 'yit' );
    $cart_subtotal   = __( 'Cart Subtotal', 'yit' );
    $fix_coupon      = __( 'Coupon:', 'yit' );
    $order_total_fix = __( 'Order Total', 'yit' );
    $additional_info = __( 'Additional Information', 'yit' );
}

?>
<?php if ( ! $is_ajax ) : ?><div id="order_review"><?php endif; ?>
示例#7
0
    $lang         = ICL_LANGUAGE_CODE;

    if ( $sitepress->get_default_language() == ICL_LANGUAGE_CODE ) {
        $sitepress->switch_lang( $default_lang, true );
    }
    else {
        $sitepress->switch_lang( $lang, true );
    }

    $no_products_in_the_cart = yit_icl_translate( 'theme', 'yit', 'min-cart-product-in', 'No products in the cart.' );
    $go_to_shop              = yit_icl_translate( 'theme', 'yit', 'min-cart-go-to-shop', 'Go to the shop' );
    $remove_this_item        = yit_icl_translate( 'theme', 'yit', 'min-cart-remove-item', 'Remove this item' );
    $remove_item             = yit_icl_translate( 'theme', 'yit', 'min-cart-remove', 'remove' );
    $subtotal                = yit_icl_translate( 'theme', 'yit', 'min-cart-subototal', 'SUBTOTAL' );
    $go_to_cart              = yit_icl_translate( 'theme', 'yit', 'min-cart-view-cart', 'View Cart' );
    $go_to_checkout          = yit_icl_translate( 'theme', 'yit', 'min-cart-checkout', 'Checkout' );

}
else {

    $no_products_in_the_cart = __( 'No products in the cart.', 'yit' );
    $go_to_shop              = __( 'Go to the shop', 'yit' );
    $remove_this_item        = __( 'Remove this item', 'yit' );
    $remove_item             = __( 'remove', 'yit' );
    $subtotal                = __( 'SUBTOTAL', 'yit' );
    $go_to_cart              = __( 'View Cart', 'yit' );
    $go_to_checkout          = __( 'Checkout', 'yit' );
}
?>

<ul class="cart_list product_list_widget <?php echo $args['list_class']; ?>">
示例#8
0
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $sitepress;

$is_wpml_active = ( isset( $sitepress ) && ! empty( $sitepress ) );

if ( $is_wpml_active ) {

    $unfortunately_your = yit_icl_translate( 'theme', 'yit', 'thankyou-order-declined-transaction', 'Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction.' );
    $please_att         = yit_icl_translate( 'theme', 'yit', 'thankyou-attempt-purchase-my-account', 'Please attempt your purchase again or go to your account page.' );
    $please_att2        = yit_icl_translate( 'theme', 'yit', 'thankyou-attempt-purchase', 'Please attempt your purchase again.' );
    $thank_you_your     = yit_icl_translate( 'theme', 'yit', 'thankyou-order-received', 'Thank you. Your order has been received.' );
    $payment_fix        = yit_icl_translate( 'theme', 'yit', 'thankyou-payment-method', 'Payment method' );
    $order_fix          = yit_icl_translate( 'theme', 'yit', 'thankyou-order', 'Order:' );
    $date_fix           = yit_icl_translate( 'theme', 'yit', 'thankyou-date', 'Date:' );
    $total_fix          = yit_icl_translate( 'theme', 'yit', 'thankyou-total', 'Total:' );

} else {

    $unfortunately_your = __( 'Unfortunately your order cannot be processed as the originating bank/merchant has declined your transaction.', 'yit' );
    $please_att         = __( 'Please attempt your purchase again or go to your account page.', 'yit' );
    $please_att2        = __( 'Please attempt your purchase again.', 'yit' );
    $thank_you_your     = __( 'Thank you. Your order has been received.', 'yit' );
    $payment_fix        = __( 'Payment method', 'yit' );
    $order_fix          = __( 'Order:', 'yit' );
    $date_fix           = __( 'Date:', 'yit' );
    $total_fix          = __( 'Total:', 'yit' );

}

?>
示例#9
0
<?php
/**
 * External product add to cart
 *
 * @author        WooThemes
 * @package       WooCommerce/Templates
 * @version       2.1.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

do_action( 'woocommerce_before_add_to_cart_button' );

$button_text = yit_icl_translate( "theme", "yit", "add_to_cart_text_external", $button_text );

?>

    <p class="cart">
        <a href="<?php echo esc_url( $product_url ); ?>" rel="nofollow" class="single_add_to_cart_button button alt"><?php echo apply_filters( 'single_add_to_cart_text', $button_text, 'external' ); ?></a>
    </p>

    <div class="clear"></div>

<?php do_action( 'woocommerce_after_add_to_cart_button' ); ?>
示例#10
0
function wpml_cart_fix_sts( &$datas ) {

    global $sitepress;

    list( $cart_items, $cart_subtotal, $cart_currency ) = yit_get_current_cart_info();

    if ( $sitepress == '' || empty( $sitepress ) || ! isset( $sitepress ) ) {

        $string = ( $cart_items != 1 ? __( 'Items', 'yit' ) : __( 'Item', 'yit' ) );

    }
    else {

        if($cart_items != 1)  {

            $string = yit_icl_translate( 'theme', 'yit', 'cart-items-label', __( 'Items', 'yit' ) );

        }
        else{

            $string = yit_icl_translate( 'theme', 'yit', 'cart-item-label', __( 'Item', 'yit' ) );

        }

    }

    $datas['#header-cart-search .cart-items-number'] = '<span class="cart-items-number">' . $cart_items . '</span>';
    $datas['#header-cart-search .cart-items-label']  = '<span class="cart-items-label">' . $string . '</span>';

}
示例#11
0
/**
 * Checkout Form
 *
 * @author        WooThemes
 * @package       WooCommerce/Templates
 * @version       2.0.0
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

global $sitepress;

if ( isset( $sitepress ) && ! empty( $sitepress ) ) {

    $must_log_in = yit_icl_translate( 'theme', 'yit', 'form-checkout-classic-login-advise', 'You must be logged in to checkout.' );
    $your_order  = yit_icl_translate( 'theme', 'yit', 'form-checkout-classic-your-order-label', 'Your order' );

}
else {

    $must_log_in = __( 'You must be logged in to checkout.', 'yit' );
    $your_order  = __( 'Your order', 'yit' );

}


global $woocommerce;
$woocommerce_checkout = $woocommerce->checkout();


?>