S
S
sagittelnerd2022-04-01 12:30:03
Themes
sagittelnerd, 2022-04-01 12:30:03

How to move wordpress checkout button?

When you click on this button, the shopping cart opens, but
6246c51262476673434699.png
when you click it and add several products, the checkout button is at the bottom and it is not visible.
6246c58990453333126717.png
It is clearly shown here.
6246c55028213246752186.png
How can it be moved up? That is, (What was circled in red at the top)?
fdp-tver.ru

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Zolin, 2022-04-04
@artzolin

The output template for this part of the store is located at templates/cart/mini-cart.php . woocommerce_widget_shopping_cart_buttons- a hook that displays
624aa858df250782764015.png
buttons in this code, you cannot move the entire wrapper with buttons to another place in the template, then the only option is to move the template to your theme code. Copy the template to yourtheme/woocommerce/cart/mini-cart.php and move the wrapper hooks you need to another place in the template
By the way, it’s better to just style the cart normally, because the normal order is when the list of products comes first and the total price ends with buttons, not the other way around
624ac69ea5d2d555925371.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question