Hello
It depends on what theme you are using, but you can try something like the following in your child theme functions.php:
remove_action( 'woocommerce_proceed_to_checkout', 'wc_cart_pdf_button', 21 );
add_action( 'woocommerce_after_cart_table', 'wc_cart_pdf_button' );
The key is finding the right action hook, above we are trying woocommerce_after_cart_table
. You will likely have to do some styling with CSS as well but it is possible
-
This reply was modified 2 years, 8 months ago by David Jensen.
-
This reply was modified 2 years, 8 months ago by David Jensen.
hello david, thank you for the plugin !
i have almost same issue, (the button appears in the middle) , can you please tell me where can i edit the position, i was trying to code above, but had same result.
https://prnt.sc/1rc1dpk
thanks
@solshr
Hello – try the following in your child theme functions.php file:
remove_action( 'woocommerce_review_order_before_payment', 'wc_cart_pdf_show_checkout' );
add_action( 'woocommerce_review_order_after_submit', 'wc_cart_pdf_show_checkout' );
This will position the button where you would like it to be, however you might need to apply a bit of CSS as well depending on your theme.