Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter onasol

    (@onasol)

    In case, anyone else is having the same issue – I have found the corresponding fields:

    • geolocation_postcode
    • geolocation_street
    • geolocation_street_number
    • This reply was modified 1 year, 9 months ago by onasol.
    Thread Starter onasol

    (@onasol)

    Hi Peter, thanks for your quick reply. No, the destination is always different. For a better understanding please see the screenshot in the link attached. You can see that the same IP address is trying to access the site through a various amount of different URLs (most of the are non-existing). The screenshot only show a small portion – it’s actually twice the amount. So my question was, if there is a way to detect and block these kind of IPs, that are targeting different existing and non-existing URLs in a short period of time, automatically?

    https://postimg.cc/7fs7MrKF

    Thread Starter onasol

    (@onasol)

    Nein, die payment-method wird nicht übertragen… wenn man z.b. die Zahlung Vorkasse/Überweisung ausgewählt hat, wird dann bei TS “basc” oder so etwas ähnliches übertragen. Ich weiß nicht was das bedeutet.

    Die Ordernummer, ist die, die standardmäßig von WooCommerce generiert wird. Habe also kein zusätzliches Plugin hierfür installiert.

    Thread Starter onasol

    (@onasol)

    I have heard of these plugins but I was looking for something else. The topic is now resolved.

    Thanks anyway!

    Thread Starter onasol

    (@onasol)

    WOW… nicht zu fassen.. es klappt!!! Das Problem: Ich hatte das Plugin “WP-Piwik” installiert und das hat da wohl irgendwie dazwischen gefunkt!! Unglaublich! Hab es jetzt deaktiviert… nun klappt alles!!!

    Hätte ich gleich mal drauf kommen sollen… also beim nächsten mal falls irgendwas nicht klappt, obwohl es klappen sollte, einfach mal anfangen die Plugins einzeln zu deaktivieren und dann schauen, ob es funktioniert!

    Nochmal danke für deine Hilfe!!!

    P.S.: Es wird sogar die Bestellnummer übertragen.

    print '<input name="ordernr" type="hidden" value="'. $order_obj->id .'">';

    Thread Starter onasol

    (@onasol)

    Hi… also hier sind die exakten Schritte die ich durchführe (mit denen es leider bei mir immer noch nicht klappt).

    1. Deinen Code

    <?php function add_trusted_shops_code_to_thank_you( $order_id ){ ...

    einfügen in bzw. ergänzen zu /wp-content/plugins/woocommerce/templates/checkout/thankyou.php (und zwar ganz am Ende nach <?php endif; ?>)

    2. Den Code

    add_action( 'woocommerce_thankyou', 'add_trusted_shops_code_to_thank_you' );

    einfügen in wp-content/themes/mein-theme/functions.php

    3. YOUR-SHOP-ID an zwei Stellen in der php-Funktion mit meiner Shop ID austauschen.

    Das war’s. Damit klappt es bei mir nicht. Nachdem eine Bestellung eingangen ist und die Seite “Bestellung erhalten” (bzw. Auftrag eingegangen) kommt, wo dann eigentlich das TS Formular zu sehen sein sollte (was bei mir leider nicht der Fall ist), ist die Seite “beschädigt”… sprich der Footer fehlt und wird nicht angezeigt aufgrund der TS php-Funktion.

    Wärst du vielleicht so nett und könntest noch einmal überprüfen, ob wirklich alle Formatierungen des Codes den du gepostet hast richtig sind? Mir ist nämlich schon aufgefallen, dass die folgende Formatierung

    //print'
    <pre>';print_r( $order_obj );print'</pre>
    ';

    in das folgende Format geändert werden muss, da sonst das ‘-Zeichen nach //print mit ausgeklammert wird. Oder soll das so sein?

    //print
    '<pre>';print_r( $order_obj );print'</pre>';
    Thread Starter onasol

    (@onasol)

    Hmm… but if you say “In the “Bestellung erhalten” page there´s nothing but [woocommerce_thankyou]” than this means that the TS form is not showing up on the “Bestellung erhalten” page, right?

    Which means the code is not fulfilling the task. Because the task is according to TS (which is our main problem)… that after the customer places his offer the “Anmeldung zum Trusted Shops Käuferschutz” form (like it can be seen here on page 4) must appear. But it doesn’t … I have tried it now again with the way you’ve described it in your last post.

    There must be a solution!!

    Thread Starter onasol

    (@onasol)

    Where did you get the information from, that also a code has to be included in function.php and thankyou.php?

    Because the Trusted Shops pdf-manual (page 6) which I have only gives one code which needs to be implemented, that is the html-code I have depicted above.

    Thread Starter onasol

    (@onasol)

    I see… ok thanks.

    And if you could also fix our main problem we have here, it would be awsome 🙂

    Thread Starter onasol

    (@onasol)

    All codes are put in between backticks

    Thread Starter onasol

    (@onasol)

    If I try it with your code and add it to thankyou.php and functions.php the “Anmeldung zum Trusted Shops Käuferschutz” doesn’t appear at all.

    Until now I have done it like this: Adding the following code to my “Auftrag eingegangen”-site (which should be found at http://www.yourdomain.de/kasse/auftrag-eingegangen)

    <table width=400 border="0" cellspacing="0" cellpadding="4">
    <tr>
    <td width="90">
    <form name="formSiegel" method="post" action="https://www.trustedshops.com/shop/certificate.php" target="_blank">
    <input type="image" border="0" src="{pfad/zum/siegel.png}" title="TrustedShops Gütesiegel - Bitte hier Gültigkeit prüfen!">
    <input name="shop_id" type="hidden" value="{value shop id}">
    </form>
    </td>
    <td align="justify">
    <form id="formTShops" name="formTShops" method="post" action="https://www.trustedshops.com/shop/protection.php" target="_blank">
    <input name="_charset_" type="hidden" value="">
    <input name="shop_id" type="hidden" value="{value shop id}">
    <input name="email" type="hidden" value="{value email}">
    <input name="amount" type="hidden" value="{value amount}">
    <input name="curr" type="hidden" value="EUR">
    <input name="paymentType" type="hidden" value="{value paymentType}">
    <input name="kdnr" type="hidden" value="{value kdnr}">
    <input name="ordernr" type="hidden" value="{value ordernr}">
    Als zusätzlichen Service bieten wir Ihnen den Trusted Shops Käuferschutz an. Wir übernehmen alle Kosten dieser Garantie, Sie müssen sich lediglich anmelden.
    <br><br>
    <input type="submit" id="btnProtect" name="btnProtect" value="Anmeldung zum Trusted Shops Käuferschutz">
    </form>
    </td>
    </tr>
    </table>

    But I can not find the proper WooCommerce equivalent for…
    {value email}
    {value amount}
    {value paymentType}
    {value kdnr}
    {value ordernr}

    Thread Starter onasol

    (@onasol)

    Ok… so just to be sure I understood you right. With the above code it once worked for you?

    So you’ve put the above code, just the way you have depicted it…

    function add_trusted_shops_code_to_thank_you( $order_id ){
    // Get order object
    $order_obj = new WC_Order( $order_id );
    
    //print'
    
    ';print_r( $order_obj );print'
    
    ';
    
    print '<table width=400 border="0" cellspacing="0" cellpadding="4"><tr><td width="90">';
    print 'your-shop id " target="_blank">';
    print '<img border="0" src="pfad/zur/siegelgrafik.gif" title="Trusted Shops Gütesiegel - Bitte hier Gültigkeit prüfen!" ';
    print 'alt="Trusted Shops Gütesiegel - Bitte hier Gültigkeit prüfen!">';
    print '</td><td align="justify">';
    print '<form id="formTShops" name="formTShops" method="post" action="https://www.trustedshops.com/shop/protection.php" target="_blank">';
    print '<input name="_charset_" type="hidden" value="UTF-8">';
    print '<input name="shop_id" type="hidden" value="your-shop-id ">';
    print '<input name="email" type="hidden" value="'. $order_obj->billing_email .'">';
    print '<input name="amount" type="hidden" value="'. $order_obj->order_total .'">';
    print '<input name="curr" type="hidden" value="EUR">';
    print '<input name="paymentType" type="hidden" value="OTHER">';
    print '<input name="kdnr" type="hidden" value="'. $order_obj->id .'">';
    print '<input name="ordernr" type="hidden" value="'. $order_obj->id .'">';
    print 'Als zusätzlichen Service bieten wir Ihnen den Trusted Shops Käuferschutz an. Wir übernehmen
    alle Kosten dieser Garantie, Sie müssen sich lediglich anmelden.';
    print '
    
    <input type="submit" id="btnProtect" name="btnProtect" value="Anmeldung zum Trusted Shops Käuferschutz">';
    print '</form></td></tr></table>';
    }

    in the thankyou.php file?

    and additionally you have added the following code…

    add_action( 'woocommerce_thankyou', 'add_trusted_shops_code_to_thank_you' );

    to the functions.php file?

    I am asking because the code looks different than the trusted shops code, so I want to be sure that this is the code you have used… or maybe the formatting somehow got broken when posting it here in the support.

    (and of course all this has to be done with the specific shop id)

    Thread Starter onasol

    (@onasol)

    This is EXACTLY what I need it for!!! 🙂
    The „Anmeldung zum Trusted Shops Käuferschutz”-form.

    I have tried the same codes you have depicted. Did not work for me either.

    I am using WordPress 3.5.2 and WooCommerce 2.0.4

    You’ve wrote “the whole problem came just after the last woocommerce update”. So this means the code worked before the update?

    Thread Starter onasol

    (@onasol)

    Hi Heike… that would be great!! Thanks.

    Sure, I’ll let you know! 🙂
    Let’s hope someone has a solution because I need it urgently.

    Mike

    Thread Starter onasol

    (@onasol)

    I found the following WooCommerce parameter (in the customer-processing-order.php file for customer/billing email which I have replaced with {value email} (in the above code) but no information was forwarded via the form:

    <?php echo $order->billing_email; ?>

    I have also tried:

    <?php echo $order->billing_email ?>

    and:

    <?php echo $billing_email ?>

    Nothing worked! Any ideas?? It is very urgently needed. Thanks a lot!

Viewing 15 replies - 1 through 15 (of 15 total)