Plugin Directory

Changeset 2582142


Ignore:
Timestamp:
08/12/2021 03:50:43 PM (4 years ago)
Author:
iwdagency
Message:

fix issue

File:
1 edited

Legend:

Unmodified
Added
Removed
  • iwd-checkout-connector/trunk/public/class-iwd-connector-frontend.php

    r2540679 r2582142  
    2626            $re = '/woocommerce\/(templates\/)?(.*)/m';
    2727            preg_match( $re, $template, $matches );
    28             if ( isset( $matches[0] ) && 'woocommerce/templates/checkout/form-checkout.php' == $matches[0] ) {
    29                 $template = IWD_CONNECTOR_FRONTEND_TEMPLATES_PATH . 'iwd-checkout-saas.php';
    30             }
     28            if (
     29                isset( $matches[0] ) && 'woocommerce/templates/checkout/form-checkout.php' == $matches[0] ||
     30                isset( $matches[0] ) && 'woocommerce/checkout/form-checkout.php' == $matches[0]
     31            ) {
     32                $template = IWD_CONNECTOR_FRONTEND_TEMPLATES_PATH . 'iwd-checkout-saas.php';
     33            }
    3134            return $template;
    3235        }
Note: See TracChangeset for help on using the changeset viewer.