Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1084480

    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

    #1085172

    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

    #1085214

    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

    #1085749

    Hi,

    Awesome. Glad it’s fixed. Please don’t hesitate to open a new thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘WooCommerce 'Return to Cart' button to link to new page’ is closed to new replies.