Tagged: Cart, woocommerce
-
AuthorPosts
-
August 17, 2020 at 11:28 am #1238451
Hi,
we ran into an error according to the cart. When a new product is added to the cart, the website is redirected to a product page, so the cart is not reachable anymore.
It seems to be a compatibility issue between the Enfold theme and the bookable product plugin WooCommerce Bookings And Appointments from Pluginhive.
Since this issue has occured before with Enfold according to the support threads, I hope this is solveable.
August 20, 2020 at 5:15 pm #1239589Hey mogasi,
Thank you for the inquiry.
Redirecting to the product page seems to be necessary because you have to select a date and configure the product option first before adding the product or event to the cart.
You might want to replace the “Add to cart” text with something else instead. |Please add this code in the functions.php file to change the default text of the add to cart button.
add_filter( 'woocommerce_product_single_add_to_cart_text', 'woocommerce_custom_single_add_to_cart_text' ); function woocommerce_custom_single_add_to_cart_text() { return __( 'View Product', 'woocommerce' ); } add_filter( 'woocommerce_product_add_to_cart_text', 'woocommerce_custom_product_add_to_cart_text' ); function woocommerce_custom_product_add_to_cart_text() { return __( 'View product', 'woocommerce' ); }Best regards,
IsmaelAugust 26, 2020 at 8:41 am #1240862Hi Isamel,
that was not the problem, the redirect was on a different product page not related with the one added to the cart.
It may has something to do with PHP 7.4 and/or WordPress 5.5 (jquery migration seems to be an issue)For now we stay on PHP 7.2 and it works like a charm.
Regards,
JosefAugust 27, 2020 at 12:31 am #1241048Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan ShannonOctober 7, 2020 at 9:53 am #1251074Hi,
this can be closed.
Thank you,
JosefOctober 8, 2020 at 5:27 am #1251264Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon -
AuthorPosts
- The topic ‘Cart automatic redirect’ is closed to new replies.
