Text und Bild in Bestellformular anfügen

[ad_1]

function add_html_before_checkout_button() {  
  echo '<p>Your HTML Text Here</p>';
}
add_action('woocommerce_review_order_before_submit', 'add_html_before_checkout_button');

Thread-Starter
schweg

(@schweg)

Hallo Michi 91
Vielen Dank für deine Antwort.
Der Text erscheint bei den Rechnungsdetails (vor Kostenpflichtig bestellen)
nicht auf dem Formular das der Kunde zugeschickt bekommt, welches ich im Printscreen als Beispiel habe.

Danke im Voraus

Ahhh die Seite die nach dem Abschluss der Bestellung kommt?

// Add HTML text to the WooCommerce thank you page
function add_custom_html_to_thankyou_page() {
    echo '<div class="custom-thankyou-text">
        <p>Thank you for your order!</p>
        <p>This is your custom HTML text at the end of the thank you page.</p>
    </div>';
}

add_action('woocommerce_thankyou', 'add_custom_html_to_thankyou_page');

Thread-Starter
schweg

(@schweg)

Super, Danke Michi
So passt es,
wäre es auch noch möglich darunter ein Bild aus der Wordepressbiblithek einzufügen

danke und Gruss Franz

Klaro, musst nur die URL tauschen, is ganz simples html 🙂

// Add HTML text to the WooCommerce thank you page
function add_custom_html_to_thankyou_page() {
    echo '<div class="custom-thankyou-text">
        <p>Bitte überweisen Sie den Betrag auf folgendes Konto:</p>
        <p><img src="https://routiers-cvfl.li/wp-content/uploads/2023/09/beispiel.png" /></p>
    </div>';
}

add_action('woocommerce_thankyou', 'add_custom_html_to_thankyou_page');

Thread-Starter
schweg

(@schweg)

Vielen Dank Michi
Jetzt passt es prima
Du kannst dieses Ticket schliessen

Freundliche Grüsse Franz

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer