Tagged: shop, woocommerce
Hi,
I have created a new Enfold shop page so need the ‘Return to Cart’ button to link to that new page.
I found the answer here: https://kriesi.at/support/topic/change-link-for-return-to-shop-button-in-woocommerce-cart/
I added the code and it works fine But when I tried to add the plug in as shown, I got this fatal error message:
Fatal error: Cannot redeclare wc_empty_cart_redirect_url() (previously declared in /home/wellingt/public_html/wp-content/themes/enfold/functions-enfold.php:2453) in /home/wellingt /public_html/wp-content/plugins/enfold_custom_code.php_lenfold_custom_code.php on line 17
I’m not too familiar with working with code and don’t have a child theme (see the advantage now!) so would like to this plugin to work. I see the link to the plugin developer does not show this plugin?
Love this theme and your great support -I have designed many websites using Enfold and have been able to answer countless question just reading the forum.
Thanks, Anne
Hey Annedesign,
Thank you for using Enfold.
You don’t have to create the plugin if you’re using a child theme. Just keep the code in the functions.php file. If you prefer the plugin, then you have to remove the code in the functions.php file to prevent duplication of the code.
Glad to hear that you’re enjoying the theme.
Best regards,
Ismael
Hi,
thank you for the quick reply – I don’t have a child theme and misunderstood the fix – I thought I needed to add the code and the plug in. I have now deleted the code and the plug in activates fine now and the new Enfold shop page shows when I click ‘Return to cart’.
Thanks again for your help,
Anne