I am trying to get a process-bar above cart and checkout in Wordpress like in this picture:
Therefor I tried to hook into both pages on functions.php But maybe I am doing sth. obviously wrong (I am beginner), as this page is down, when I implement the following code:
add_action( 'woocommerce_before_cart', 'process_a');
function process_a() {
echo '<span class="warenkorb">1. Warenkorb</span> <a href="https://www.example.de/checkout"><span class="kasse">2. Kasse</span></a>'
}
add_action( 'woocommerce_before_checkout_form', 'process_b');
function process_b() {
echo '<a href="http://www.example.de/cart"><span class="warenkorb">1. Warenkorb</span></a> <span class="kasse">2. Kasse</span>'
}
Whats wrong with that code? Please help me getting into this logic. Thank you! :-)