Reply 232057 to: Change notice modal after adding to cart

Avatar: kikjou
Martin
Participant
March 29, 2020 at 09:03

Hi,

thank you! I took the code from … /theme-init.php and put it in the functions.php of the child theme, but it didn’t work. It still linked to the checkout.

if (class_exists('WooCommerce')) {
global $woocommerce;
$etConf['checkoutUrl'] = esc_url( wc_get_cart_url() );
}

I also tried only the line you sent me

$etConf['checkoutUrl'] = esc_url( wc_get_cart_url() );

What worked was placing the whole theme-init.php into the child theme. But is there a way to avoid this?

Best regards
Martin

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.