John Davidson

php - Change removing cart item url to checkout to avoid wrong checkout

0 comments
Message:


My simple question is that how I can make this code working


esc_url( WC()->cart->get_cart_url->get_remove_url( $cart_item_key ) ),

the above i have tried and the current code is below


 esc_url( $woocommerce->cart->get_remove_url( $cart_item_key ) ),

so instead my current url : example.com/?removed_item=1


should be something like example.com/checkout/?removed_item=1


Thanks for any suggestion



My Answer:
>cart->get_remove_url( $cart_item_key ) )

to

esc_url( WC()->cart->get_checkout_url() )

Rate this post

4 of 5 based on 1571 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us