(BUG) Finner ikke malfil pga. feil bane (Løsning)
-
Ny versjon av BRING plugin bruker ikke FRAKTGUIDEN_PLUGIN_PATH, men dirname(). Dette gir derfor FEIL bane for Woocommerce til å cart-shipping.php.
Siste versjon:
public function get_enhanced_shipping_information_template( $template, $template_name ) { if ( 'cart/cart-shipping.php' !== $template_name ) { return $template; } return dirname( __DIR__ ) . 'templates/woocommerce/cart-shipping.php'; }Eldre versjon:
public function get_enhanced_shipping_information_template( $template, $template_name ) { if ( 'cart/cart-shipping.php' !== $template_name ) { return $template; } return FRAKTGUIDEN_PLUGIN_PATH . 'templates/woocommerce/cart-shipping.php'; }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘(BUG) Finner ikke malfil pga. feil bane (Løsning)’ is closed to new replies.