• Resolved dankru

    (@dankru)


    All code here shown produced with German firefox “Element untersuchen”

    On my order page there is an “One Click” order button:
    <button type=”submit” class=”sl_disabled single_add_to_cart_button button add-to-cart sl_express_checkout” style=”text-align:center;box-sizing:border-box;padding:20px;”>Jetzt zu 50% Rabatt kaufen</button>

    Clicking that button shows a popup:
    <div id=”confirmation_box”><p>By using the express checkout option I understand that my stored payment method may be charged immediately and your order will be sent to your default address on file.</p><button id=”cancellation” class=”btn button”>CANCEL</button><button id=”confirmation” class=”btn button”>CONFIRM</button></div>

    That’s great, but I want to translate this text to German:
    “By using the express checkout option I understand that my stored payment method may be charged immediately and your order will be sent to your default address on file.”

    Where do I find this text? I looked into theme-editor.php etc., but I can’t find this “confirmation_box”???

    Thanks for elightenment!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Praveen a11n

    (@spraveenitpro)

    Automattic Happiness Engineer

    Hi @dankru

    You are looking to perform a string translation, is it possible to get a link to that page so that I can check it out.

    Having said that, I have used the WordPress say what plugin to perform string translations/replacements on my own site.

    Cheers!

    Thread Starter dankru

    (@dankru)

    Hi @spraveenitpro
    thanks for your nice response!
    Here I have an example page of a ruined installation, that shows exactly what I mean with the popup, in Firefox only, after clicking the order button.
    https://www.biz-tycoon.com/freegift/us1/
    In IE and Chrome this popup does not show up at all, why is that???
    How could I get rid of that popup anyway?
    Thanks for your help!

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Hey there!

    I took a look at the site you sent, and I am not seeing the popup window you are mentioning (I am using Firefox).

    If you are seeing this as part of a payment plugin (the quick checkout), then that is likely where the string is, in that plugin.

    Hopefully that helps! Have a great one!

    Thread Starter dankru

    (@dankru)

    Hi @slash1andy,

    thanks for having a look at my page! Now that’s strange!

    Here is a screen shot of my page after clicking the orange button:
    https://www.awesomescreenshot.com/showImage?img_id=3991548

    As mentioned, this is a dummy page, but it’s the same on my site translated to German. I’m afraid that I will lose customers, when this unnecessary popup sometimes will show up? How to get rid of it altogether anyway, if I can’t find a way to translate it?

    At least I found where this confirmation box is, but I’m not sure what to change there without ruining the whole thing?

    Plugin:
    <?php
    /*
    Plugin Name: Sellosity Express Checkout
    Version: 1.0.8
    Description: This addon for Sellosity allows you to add express checkout options for your store and also provides the ability to create 1-click upsell links and buttons to dramatically increase your profits per order
    Plugin URI: https://sellosity.com/
    Author: Sellosity
    Author URI: https://sellosity.com/
    */

    require_once(trailingslashit(dirname(__FILE__)).’sellosity-updater.php’);
    new WPUpdatesPluginUpdater_1500( ‘https://wp-updates.com/api/2/plugin&#8217;, plugin_basename(__FILE__));

    add_action(‘template_redirect’, function() {
    if( !isset( $_GET[‘one-click-order’] ) ) {
    return;
    }

    $id = absint($_GET[‘one-click-order’]);
    $qty = isset($_GET[‘qty’]) ? absint($_GET[‘qty’]) : 1;
    $coupon = isset($_GET[‘coupon’]) ? $_GET[‘coupon’] : ”;
    $variation = isset($_GET[‘variation’]) ? json_decode( $_GET[‘variation’], $as_array = true ) : ”;

    one_click_order( $id, $variation, $qty, $coupon );
    });

    add_filter(‘woocommerce_create_account_default_checked’ , function ($checked){
    return true;
    });

    add_action(‘wp_enqueue_scripts’, function(){

    wp_register_script( ‘express_checkout_product’, plugin_dir_url( __FILE__ ) . ‘assets/js/product.js’, array(‘jquery’), ‘1.0.8’ );
    wp_register_script( ‘express_checkout_shortcode’, plugin_dir_url( __FILE__ ) . ‘assets/js/short.js’, array(‘jquery’), ‘1.0.8’ );
    wp_register_style( ‘express_checkout_confirmation’, plugin_dir_url( __FILE__ ) . ‘assets/css/confirmation.css’ );
    wp_enqueue_style( ‘express_checkout_confirmation’ );
    // This is a product page
    if( is_product() && is_one_click_order_active() ) {
    $should_be_confirmed = should_be_confirmed();
    wp_enqueue_script( ‘express_checkout_product’ );
    wp_localize_script(‘express_checkout_product’, ‘express_checkout’, array( ‘should_be_confirmed’ => $should_be_confirmed ) );

    }
    });

    require_once(‘logic.php’);
    require_once(‘admin-panel.php’);
    require_once(‘woocommerce-hooks.php’);

    Thread Starter dankru

    (@dankru)

    HA! AHA!!
    Finally found the text in:
    sellosity-express-checkout/assets/js/product.js
    var confirmBox = $(‘<div id=”confirmation_box”><p>By using the express checkout option I understand that my stored payment method may be charged immediately and your order will be sent to your default address on file.</p></div>’);
    Thanks for reading!

    Plugin Support AW a11n

    (@slash1andy)

    Automattic Happiness Engineer

    Glad to hear you figured out the source!

    Have a great one!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Edit text on popup: confirmation_box’ is closed to new replies.