remove WooCommerce cart page
Hi
I want to remove cart page and add it to the checkout page , and found this code and add that to the function.php :
add_action( 'woocommerce_before_checkout_form', 'remove_cart_on_checkout_page_only', 5 ); function remove_cart_on_checkout_page_only() { if ( is_wc_endpoint_url( 'order-received' ) ) return; echo do_shortcode('[woocommerce_cart]'); }
after that need to remove cart page from woocomerce settings -Advanced - cart page
this is work on default wordpress theme but in bethem dos not work and when I chose the product the page will refresh and show me the with page with noting.
can you help me ?
Thanks
Comments
And one more thing , I installed only woo + using betheme
the cart page is to heavy and gtmetrix show the error , is that related to theme?
I mean this page tack to much time to load , more than 5second
Hi,
Sorry, but we did not test this script and gtmetrix plugin with the theme. Our policy states that we do not support third party plugins or custom code so unfortunately, we cannot be of any help to you.
Also, we cannot recommend any plugins other than the ones we support. You can find the list on this page, in the sidebar:
https://themeforest.net/item/betheme-responsive-multipurpose-wordpress-theme/7758048
thanks
I didn't talk about plugins ! and gtmetrix have not plugin
I have test the cart page in gtmetrix and show me the errors. Do you help me in this case?
Sorry, I tought you were talking about the gtmetrix plugin.
Any WordPress theme can not be fully prepared according to tools like this one because their guidelines are ridiculous.
Mainly plain html pages are suitable for these guidelines.
Thanks
Okay fine.
How to remove cart page ?
Isn't that part of the support process ? because I got white page.
The only option is to set it in WooCommerce -> Settings -> Advanced and remove the Cart page from dropdown menu like you mentioned before.
Also, you can remove it from Pages tab.
Any further change must be done by modifying Theme files but we do not provide support with that.
Thanks
Fine , Thank you?