Home Forums Skincare – Cosmetics WooCommerce WordPress Theme Change 'Return to shop' button – now error occured

Change 'Return to shop' button – now error occured

  • Author
    Posts
  • #34016

    Vitamom
    Participant

      Hi!

      I wanted to change to URL of the ‘ Return to shop ‘ Button.
      I used this code to change it – in Function PHP – and now I get an error.

      The code I used:
      /**
      * Changes the redirect URL for the Return To Shop button in the cart.
      *
      * @return string
      */
      function wc_empty_cart_redirect_url() {
      return ‘http://vitamom.nl/product-category/vpc/’;
      }
      add_filter( ‘woocommerce_return_to_shop_redirect’, ‘wc_empty_cart_redirect_url’ );

      What I now see is: (see printscreen attached).

      How can I undo this?

      Thank you!

      Attachments:
      You must be logged in to view attached files.

    You must be logged in to reply to this topic. Click here to login or register