Absolute path should have curly braces - part 1
This commit is contained in:
parent
53b69a8027
commit
fbf0314bb6
|
@ -9,7 +9,9 @@
|
|||
* @version 2.0.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
get_header( 'shop' ); ?>
|
||||
|
||||
|
@ -88,4 +90,4 @@ get_header( 'shop' ); ?>
|
|||
do_action( 'woocommerce_sidebar' );
|
||||
?>
|
||||
|
||||
<?php get_footer( 'shop' ); ?>
|
||||
<?php get_footer( 'shop' ); ?>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.0.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
wc_print_notices();
|
||||
|
||||
|
@ -17,4 +19,4 @@ wc_print_notices();
|
|||
|
||||
<?php do_action( 'woocommerce_cart_is_empty' ); ?>
|
||||
|
||||
<p class="return-to-shop"><a class="button wc-backward" href="<?php echo apply_filters( 'woocommerce_return_to_shop_redirect', get_permalink( wc_get_page_id( 'shop' ) ) ); ?>"><?php _e( 'Return To Shop', 'woocommerce' ) ?></a></p>
|
||||
<p class="return-to-shop"><a class="button wc-backward" href="<?php echo apply_filters( 'woocommerce_return_to_shop_redirect', get_permalink( wc_get_page_id( 'shop' ) ) ); ?>"><?php _e( 'Return To Shop', 'woocommerce' ) ?></a></p>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.1.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<dl class="variation">
|
||||
|
|
|
@ -8,7 +8,11 @@
|
|||
* @package WooCommerce/Templates
|
||||
* @version 2.1.0
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<tr class="shipping">
|
||||
<th><?php
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
* @version 2.1.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="cart_totals <?php if ( WC()->customer->has_calculated_shipping() ) echo 'calculated_shipping'; ?>">
|
||||
|
||||
|
@ -94,4 +97,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
|
||||
<?php do_action( 'woocommerce_after_cart_totals' ); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.1.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
wc_print_notices();
|
||||
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $product, $woocommerce_loop;
|
||||
|
||||
|
@ -51,4 +53,4 @@ if ( $products->have_posts() ) : ?>
|
|||
|
||||
<?php endif;
|
||||
|
||||
wp_reset_query();
|
||||
wp_reset_query();
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
* @version 2.1.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php do_action( 'woocommerce_before_mini_cart' ); ?>
|
||||
|
|
|
@ -7,10 +7,14 @@
|
|||
* @version 2.0.8
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( get_option( 'woocommerce_enable_shipping_calc' ) === 'no' || ! WC()->cart->needs_shipping() )
|
||||
if ( get_option( 'woocommerce_enable_shipping_calc' ) === 'no' || ! WC()->cart->needs_shipping() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php do_action( 'woocommerce_before_shipping_calculator' ); ?>
|
||||
|
@ -86,4 +90,4 @@ if ( get_option( 'woocommerce_enable_shipping_calc' ) === 'no' || ! WC()->cart->
|
|||
</section>
|
||||
</form>
|
||||
|
||||
<?php do_action( 'woocommerce_after_shipping_calculator' ); ?>
|
||||
<?php do_action( 'woocommerce_after_shipping_calculator' ); ?>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
@ -17,4 +19,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
|
||||
<?php do_action( 'woocommerce_cart_has_errors' ); ?>
|
||||
|
||||
<p><a class="button wc-backward" href="<?php echo get_permalink(wc_get_page_id( 'cart' ) ); ?>"><?php _e( 'Return To Cart', 'woocommerce' ) ?></a></p>
|
||||
<p><a class="button wc-backward" href="<?php echo get_permalink(wc_get_page_id( 'cart' ) ); ?>"><?php _e( 'Return To Cart', 'woocommerce' ) ?></a></p>
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
* @version 2.1.2
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="woocommerce-billing-fields">
|
||||
<?php if ( WC()->cart->ship_to_billing_address_only() && WC()->cart->needs_shipping() ) : ?>
|
||||
|
@ -63,4 +66,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
<?php do_action( 'woocommerce_after_checkout_registration_form', $checkout ); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.0.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
wc_print_notices();
|
||||
|
||||
|
@ -54,4 +56,4 @@ $get_checkout_url = apply_filters( 'woocommerce_get_checkout_url', WC()->cart->g
|
|||
|
||||
</form>
|
||||
|
||||
<?php do_action( 'woocommerce_after_checkout_form', $checkout ); ?>
|
||||
<?php do_action( 'woocommerce_after_checkout_form', $checkout ); ?>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.2
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( ! WC()->cart->coupons_enabled() ) {
|
||||
return;
|
||||
|
@ -28,4 +30,4 @@ wc_print_notice( $info_message, 'notice' );
|
|||
</p>
|
||||
|
||||
<div class="clear"></div>
|
||||
</form>
|
||||
</form>
|
||||
|
|
|
@ -7,9 +7,13 @@
|
|||
* @version 2.0.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( is_user_logged_in() || 'no' === get_option( 'woocommerce_enable_checkout_login_reminder' ) ) return;
|
||||
if ( is_user_logged_in() || 'no' === get_option( 'woocommerce_enable_checkout_login_reminder' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
$info_message = apply_filters( 'woocommerce_checkout_login_message', __( 'Returning customer?', 'woocommerce' ) );
|
||||
$info_message .= ' <a href="#" class="showlogin">' . __( 'Click here to login', 'woocommerce' ) . '</a>';
|
||||
|
@ -24,4 +28,4 @@ wc_print_notice( $info_message, 'notice' );
|
|||
'hidden' => true
|
||||
)
|
||||
);
|
||||
?>
|
||||
?>
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<form id="order_review" method="post">
|
||||
|
||||
|
@ -85,9 +88,9 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
<?php wp_nonce_field( 'woocommerce-pay' ); ?>
|
||||
<?php
|
||||
$pay_order_button_text = apply_filters( 'woocommerce_pay_order_button_text', __( 'Pay for order', 'woocommerce' ) );
|
||||
|
||||
|
||||
echo apply_filters( 'woocommerce_pay_order_button_html', '<input type="submit" class="button alt" id="place_order" value="' . esc_attr( $pay_order_button_text ) . '" data-value="' . esc_attr( $pay_order_button_text ) . '" />' );
|
||||
?>
|
||||
?>
|
||||
<input type="hidden" name="woocommerce_pay" value="1" />
|
||||
</div>
|
||||
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
* @version 2.2.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="woocommerce-shipping-fields">
|
||||
<?php if ( WC()->cart->needs_shipping_address() === true ) : ?>
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
* @version 2.1.8
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( ! $is_ajax ) : ?><div id="order_review"><?php endif; ?>
|
||||
|
@ -172,7 +175,7 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
echo apply_filters( 'woocommerce_order_button_html', '<input type="submit" class="button alt" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '" />' );
|
||||
?>
|
||||
|
||||
<?php if ( wc_get_page_id( 'terms' ) > 0 && apply_filters( 'woocommerce_checkout_show_terms', true ) ) {
|
||||
<?php if ( wc_get_page_id( 'terms' ) > 0 && apply_filters( 'woocommerce_checkout_show_terms', true ) ) {
|
||||
$terms_is_checked = apply_filters( 'woocommerce_terms_is_checked_default', isset( $_POST['terms'] ) );
|
||||
?>
|
||||
<p class="form-row terms">
|
||||
|
@ -191,4 +194,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
|||
|
||||
<?php do_action( 'woocommerce_review_order_after_payment' ); ?>
|
||||
|
||||
<?php if ( ! $is_ajax ) : ?></div><?php endif; ?>
|
||||
<?php if ( ! $is_ajax ) : ?></div><?php endif; ?>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.2.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( $order ) : ?>
|
||||
|
||||
|
@ -64,4 +66,4 @@ if ( $order ) : ?>
|
|||
|
||||
<p><?php echo apply_filters( 'woocommerce_thankyou_order_received_text', __( 'Thank you. Your order has been received.', 'woocommerce' ), null ); ?></p>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $product, $woocommerce_loop;
|
||||
|
||||
|
@ -67,4 +69,4 @@ if ( 0 == $woocommerce_loop['loop'] % $woocommerce_loop['columns'] )
|
|||
|
||||
<?php do_action( 'woocommerce_after_shop_loop_item' ); ?>
|
||||
|
||||
</li>
|
||||
</li>
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $woocommerce_loop;
|
||||
|
||||
|
@ -64,4 +66,4 @@ $woocommerce_loop['loop']++;
|
|||
|
||||
<?php do_action( 'woocommerce_after_subcategory', $category ); ?>
|
||||
|
||||
</li>
|
||||
</li>
|
||||
|
|
|
@ -9,7 +9,10 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
|
|
@ -6,7 +6,12 @@
|
|||
* @package WooCommerce/Templates/Emails/HTML
|
||||
* @version 2.0.0
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php do_action( 'woocommerce_email_header', $email_heading ); ?>
|
||||
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php do_action( 'woocommerce_email_header', $email_heading ); ?>
|
||||
|
||||
|
@ -59,4 +63,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
|||
|
||||
<?php wc_get_template( 'emails/email-addresses.php', array( 'order' => $order ) ); ?>
|
||||
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
* @version 2.2.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php do_action( 'woocommerce_email_header', $email_heading ); ?>
|
||||
|
||||
|
@ -64,4 +68,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
|||
|
||||
<?php do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text ); ?>
|
||||
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php do_action( 'woocommerce_email_header', $email_heading ); ?>
|
||||
|
||||
|
@ -21,4 +25,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
|||
|
||||
<p><?php printf( __( 'You can access your account area to view your orders and change your password here: %s.', 'woocommerce' ), get_permalink( wc_get_page_id( 'myaccount' ) ) ); ?></p>
|
||||
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php do_action( 'woocommerce_email_header', $email_heading ); ?>
|
||||
|
||||
|
@ -63,4 +67,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
|||
|
||||
<?php wc_get_template( 'emails/email-addresses.php', array( 'order' => $order ) ); ?>
|
||||
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php do_action('woocommerce_email_header', $email_heading); ?>
|
||||
|
||||
|
@ -59,4 +63,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
|||
|
||||
<?php wc_get_template( 'emails/email-addresses.php', array( 'order' => $order ) ); ?>
|
||||
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
* @version 2.0.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php do_action( 'woocommerce_email_header', $email_heading ); ?>
|
||||
|
||||
|
@ -21,4 +25,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
|
|||
</p>
|
||||
<p></p>
|
||||
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
<?php do_action( 'woocommerce_email_footer' ); ?>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.0.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
// Load colours
|
||||
$base = get_option( 'woocommerce_email_base_color' );
|
||||
|
@ -65,4 +67,4 @@ $credit = "
|
|||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.0.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
// Load colours
|
||||
$bg = get_option( 'woocommerce_email_background_color' );
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
* @package WooCommerce/Templates/Emails/Plain
|
||||
* @version 2.0.0
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
echo $email_heading . "\n\n";
|
||||
|
||||
|
@ -48,4 +51,4 @@ wc_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order )
|
|||
|
||||
echo "\n****************************************************\n\n";
|
||||
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
* @package WooCommerce/Templates/Emails/Plain
|
||||
* @version 2.0.0
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
echo $email_heading . "\n\n";
|
||||
|
||||
|
@ -47,4 +50,4 @@ wc_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order )
|
|||
|
||||
echo "\n****************************************************\n\n";
|
||||
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
* @package WooCommerce/Templates/Emails/Plain
|
||||
* @version 2.2.0
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
echo $email_heading . "\n\n";
|
||||
|
||||
|
@ -48,4 +51,4 @@ echo "\n****************************************************\n\n";
|
|||
|
||||
do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text );
|
||||
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
* @package WooCommerce/Templates/Emails/Plain
|
||||
* @version 2.0.0
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
echo $email_heading . "\n\n";
|
||||
|
||||
|
@ -19,4 +22,4 @@ echo sprintf( __( 'You can access your account area to view your orders and chan
|
|||
|
||||
echo "\n****************************************************\n\n";
|
||||
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
* @package WooCommerce/Templates/Emails/Plain
|
||||
* @version 2.0.0
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
echo $email_heading . "\n\n";
|
||||
|
||||
|
@ -55,4 +58,4 @@ wc_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order )
|
|||
|
||||
echo "\n****************************************************\n\n";
|
||||
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
* @package WooCommerce/Templates/Emails/Plain
|
||||
* @version 2.2.0
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
echo $email_heading . "\n\n";
|
||||
|
||||
|
@ -47,4 +50,4 @@ wc_get_template( 'emails/plain/email-addresses.php', array( 'order' => $order )
|
|||
|
||||
echo "\n****************************************************\n\n";
|
||||
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
|
|
|
@ -6,7 +6,10 @@
|
|||
* @package WooCommerce/Templates/Emails/Plain
|
||||
* @version 2.0.0
|
||||
*/
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
echo $email_heading . "\n\n";
|
||||
|
||||
|
@ -20,4 +23,4 @@ echo add_query_arg( array( 'key' => $reset_key, 'login' => $user_login ), wc_get
|
|||
|
||||
echo "\n****************************************************\n\n";
|
||||
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
|
||||
|
|
|
@ -7,10 +7,14 @@
|
|||
* @version 2.1.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( is_user_logged_in() )
|
||||
if ( is_user_logged_in() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
<form method="post" class="login" <?php if ( $hidden ) echo 'style="display:none;"'; ?>>
|
||||
|
||||
|
@ -46,4 +50,4 @@ if ( is_user_logged_in() )
|
|||
|
||||
<?php do_action( 'woocommerce_login_form_end' ); ?>
|
||||
|
||||
</form>
|
||||
</form>
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
* @version 2.1.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="quantity"><input type="number" step="<?php echo esc_attr( $step ); ?>" <?php if ( is_numeric( $min_value ) ) : ?>min="<?php echo esc_attr( $min_value ); ?>"<?php endif; ?> <?php if ( is_numeric( $max_value ) ) : ?>max="<?php echo esc_attr( $max_value ); ?>"<?php endif; ?> name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $input_value ); ?>" title="<?php _ex( 'Qty', 'Product quantity input tooltip', 'woocommerce' ) ?>" class="input-text qty text" size="4" /></div>
|
||||
<div class="quantity"><input type="number" step="<?php echo esc_attr( $step ); ?>" <?php if ( is_numeric( $min_value ) ) : ?>min="<?php echo esc_attr( $min_value ); ?>"<?php endif; ?> <?php if ( is_numeric( $max_value ) ) : ?>max="<?php echo esc_attr( $max_value ); ?>"<?php endif; ?> name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $input_value ); ?>" title="<?php _ex( 'Qty', 'Product quantity input tooltip', 'woocommerce' ) ?>" class="input-text qty text" size="4" /></div>
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
get_sidebar( 'shop' ); ?>
|
||||
get_sidebar( 'shop' ); ?>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$template = get_option( 'template' );
|
||||
|
||||
|
@ -28,4 +30,4 @@ switch( $template ) {
|
|||
default :
|
||||
echo '</div></div>';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$template = get_option( 'template' );
|
||||
|
||||
|
@ -27,4 +29,4 @@ switch( $template ) {
|
|||
default :
|
||||
echo '<div id="container"><div id="content" role="main">';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.1.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $product;
|
||||
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
* @version 2.0.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<p class="woocommerce-info"><?php _e( 'No products were found matching your selection.', 'woocommerce' ); ?></p>
|
||||
<p class="woocommerce-info"><?php _e( 'No products were found matching your selection.', 'woocommerce' ); ?></p>
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
* @version 2.2.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<form class="woocommerce-ordering" method="get">
|
||||
<select name="orderby" class="orderby">
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $wp_query;
|
||||
|
|
|
@ -7,11 +7,13 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $product;
|
||||
?>
|
||||
|
||||
<?php if ( $price_html = $product->get_price_html() ) : ?>
|
||||
<span class="price"><?php echo $price_html; ?></span>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.0.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $product;
|
||||
|
||||
|
@ -17,4 +19,4 @@ if ( get_option( 'woocommerce_enable_review_rating' ) === 'no' )
|
|||
|
||||
<?php if ( $rating_html = $product->get_rating_html() ) : ?>
|
||||
<?php echo $rating_html; ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
* @version 2.0.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $wp_query;
|
||||
|
||||
|
|
|
@ -7,12 +7,15 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $post, $product;
|
||||
|
||||
?>
|
||||
<?php if ( $product->is_on_sale() ) : ?>
|
||||
|
||||
<?php echo apply_filters( 'woocommerce_sale_flash', '<span class="onsale">' . __( 'Sale!', 'woocommerce' ) . '</span>', $post, $product ); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -8,8 +8,9 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
<form id="add_payment_method" method="post">
|
||||
<div id="payment">
|
||||
|
|
|
@ -8,8 +8,9 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php wc_print_notices(); ?>
|
||||
|
@ -33,7 +34,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<fieldset>
|
||||
<legend><?php _e( 'Password Change', 'woocommerce' ); ?></legend>
|
||||
|
||||
|
||||
<p class="form-row form-row-thirds">
|
||||
<label for="password_current"><?php _e( 'Current Password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
|
||||
<input type="password" class="input-text" name="password_current" id="password_current" />
|
||||
|
@ -58,5 +59,5 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</p>
|
||||
|
||||
<?php do_action( 'woocommerce_edit_account_form_end' ); ?>
|
||||
|
||||
</form>
|
||||
|
||||
</form>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $current_user;
|
||||
|
@ -16,6 +16,7 @@ global $current_user;
|
|||
$page_title = ( $load_address === 'billing' ) ? __( 'Billing Address', 'woocommerce' ) : __( 'Shipping Address', 'woocommerce' );
|
||||
|
||||
get_currentuserinfo();
|
||||
|
||||
?>
|
||||
|
||||
<?php wc_print_notices(); ?>
|
||||
|
@ -37,7 +38,7 @@ get_currentuserinfo();
|
|||
<?php woocommerce_form_field( $key, $field, ! empty( $_POST[ $key ] ) ? wc_clean( $_POST[ $key ] ) : $field['value'] ); ?>
|
||||
|
||||
<?php endforeach; ?>
|
||||
|
||||
|
||||
<?php do_action( "woocommerce_after_edit_address_form_{$load_address}" ); ?>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -8,8 +8,9 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php wc_print_notices(); ?>
|
||||
|
@ -43,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<p class="form-row">
|
||||
<?php wp_nonce_field( 'woocommerce-login' ); ?>
|
||||
<input type="submit" class="button" name="login" value="<?php _e( 'Login', 'woocommerce' ); ?>" />
|
||||
<input type="submit" class="button" name="login" value="<?php _e( 'Login', 'woocommerce' ); ?>" />
|
||||
<label for="rememberme" class="inline">
|
||||
<input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'woocommerce' ); ?>
|
||||
</label>
|
||||
|
@ -83,7 +84,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
</p>
|
||||
|
||||
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?>
|
||||
|
||||
|
||||
<p class="form-row form-row-wide">
|
||||
<label for="reg_password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
||||
<input type="password" class="input-text" name="password" id="reg_password" />
|
||||
|
|
|
@ -8,8 +8,9 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php wc_print_notices(); ?>
|
||||
|
@ -45,4 +46,4 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<p class="form-row"><input type="submit" class="button" name="wc_reset_password" value="<?php echo 'lost_password' == $args['form'] ? __( 'Reset Password', 'woocommerce' ) : __( 'Save', 'woocommerce' ); ?>" /></p>
|
||||
<?php wp_nonce_field( $args['form'] ); ?>
|
||||
|
||||
</form>
|
||||
</form>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
wc_print_notices(); ?>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$customer_id = get_current_user_id();
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( $downloads = WC()->customer->get_downloadable_products() ) : ?>
|
||||
|
@ -38,4 +38,4 @@ if ( $downloads = WC()->customer->get_downloadable_products() ) : ?>
|
|||
|
||||
<?php do_action( 'woocommerce_after_available_downloads' ); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$customer_orders = get_posts( apply_filters( 'woocommerce_my_account_my_orders_query', array(
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<?php wc_print_notices(); ?>
|
||||
|
|
|
@ -7,12 +7,17 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( ! $messages ){
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! $messages ) return;
|
||||
?>
|
||||
<ul class="woocommerce-error">
|
||||
<?php foreach ( $messages as $message ) : ?>
|
||||
<li><?php echo wp_kses_post( $message ); ?></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</ul>
|
||||
|
|
|
@ -7,11 +7,16 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( ! $messages ){
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! $messages ) return;
|
||||
?>
|
||||
|
||||
<?php foreach ( $messages as $message ) : ?>
|
||||
<div class="woocommerce-info"><?php echo wp_kses_post( $message ); ?></div>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
@ -7,9 +7,14 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( ! $messages ){
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! $messages ) return;
|
||||
?>
|
||||
|
||||
<?php foreach ( $messages as $message ) : ?>
|
||||
|
|
|
@ -7,9 +7,12 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
global $post;
|
||||
|
||||
?>
|
||||
|
||||
<form action="<?php echo esc_url( get_permalink( $post->ID ) ); ?>" method="post" class="track_order">
|
||||
|
@ -23,4 +26,4 @@ global $post;
|
|||
<p class="form-row"><input type="submit" class="button" name="track" value="<?php _e( 'Track', 'woocommerce' ); ?>" /></p>
|
||||
<?php wp_nonce_field( 'woocommerce-order_tracking' ); ?>
|
||||
|
||||
</form>
|
||||
</form>
|
||||
|
|
|
@ -7,9 +7,12 @@
|
|||
* @version 2.2.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$order = wc_get_order( $order_id );
|
||||
|
||||
?>
|
||||
<h2><?php _e( 'Order Details', 'woocommerce' ); ?></h2>
|
||||
<table class="shop_table order_details">
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
* @version 2.2.0
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
$order_status_text = sprintf( __( 'Order %s which was made %s has the status “%s”', 'woocommerce' ), $order->get_order_number(), human_time_diff( strtotime( $order->order_date ), current_time( 'timestamp' ) ) . ' ' . __( 'ago', 'woocommerce' ), wc_get_order_status_name( $order->get_status() ) );
|
||||
|
||||
|
|
|
@ -8,11 +8,14 @@
|
|||
*/
|
||||
global $product;
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) )
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
if ( ! comments_open() )
|
||||
if ( ! comments_open() ) {
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="reviews">
|
||||
<div id="comments">
|
||||
|
@ -94,4 +97,4 @@ if ( ! comments_open() )
|
|||
<?php endif; ?>
|
||||
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
get_header( 'shop' ); ?>
|
||||
|
||||
|
@ -47,4 +49,4 @@ get_header( 'shop' ); ?>
|
|||
do_action( 'woocommerce_sidebar' );
|
||||
?>
|
||||
|
||||
<?php get_footer( 'shop' ); ?>
|
||||
<?php get_footer( 'shop' ); ?>
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
wc_get_template( 'archive-product.php' );
|
||||
wc_get_template( 'archive-product.php' );
|
||||
|
|
|
@ -9,6 +9,8 @@
|
|||
* @version 1.6.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
wc_get_template( 'archive-product.php' );
|
||||
wc_get_template( 'archive-product.php' );
|
||||
|
|
Loading…
Reference in New Issue