wc_add_to_cart_params.cart_url is null in product archive page
-
When adding a product to the cart in product archive page with ajax, the link’s text changed to view cart but the link’s url is null and the user can’t continue to the cart page.
I saw the the wc_add_to_cart_params.cart_url is null
Here is the values of wc_add_to_cart_params{
“ajax_url”: “/wp-admin/admin-ajax.php”,
“wc_ajax_url”: “/?wc-ajax=%%endpoint%%”,
“i18n_view_cart”: “view cart”,
“cart_url”: null,
“is_cart”: “”,
“cart_redirect_after_add”: “no”
}
I saw the code is in:
\woocommerce\assets\js\frontend\add-to-cart.min.js
How can I fix it?
Thank you,
Sam
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘wc_add_to_cart_params.cart_url is null in product archive page’ is closed to new replies.