Plugin Directory

Changeset 2292547


Ignore:
Timestamp:
04/27/2020 11:23:50 AM (6 years ago)
Author:
expresscheckout
Message:

Adding version 1.0.2

Location:
wc-express-checkout
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wc-express-checkout/tags/1.0.2/classes/class-woocommerce-express-checkout.php

    r2291991 r2292547  
    388388
    389389    public function plugin_template( $template, $template_name, $template_path ) {
     390        if ( ! is_cart() && ! is_checkout() && ! is_wc_endpoint_url( 'order-received' ) ) {
     391            return $template;
     392        }
    390393        if ( file_exists( WSC_PATH . '/templates/woocommerce/express-checkout/' . $template_name ) ) {
    391394            return WSC_PATH . '/templates/woocommerce/express-checkout/' . $template_name;
  • wc-express-checkout/trunk/classes/class-woocommerce-express-checkout.php

    r2291750 r2292547  
    388388
    389389    public function plugin_template( $template, $template_name, $template_path ) {
     390        if ( ! is_cart() && ! is_checkout() && ! is_wc_endpoint_url( 'order-received' ) ) {
     391            return $template;
     392        }
    390393        if ( file_exists( WSC_PATH . '/templates/woocommerce/express-checkout/' . $template_name ) ) {
    391394            return WSC_PATH . '/templates/woocommerce/express-checkout/' . $template_name;
Note: See TracChangeset for help on using the changeset viewer.