Tagged: Cart, woocommerce
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.
Hey 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,
Ismael
Hi 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,
Josef
Hi,
Did you need additional help with this topic or shall we close?
Best regards,
Jordan Shannon
Hi,
this can be closed.
Thank you,
Josef
Hi,
If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon