Plugin Directory

Changeset 3320730


Ignore:
Timestamp:
07/01/2025 03:23:14 PM (8 months ago)
Author:
trustswiftly
Message:

Fix classic checkout.js

Location:
trust-swiftly-verification
Files:
278 added
3 edited

Legend:

Unmodified
Added
Removed
  • trust-swiftly-verification/trunk/assets/js/checkout-block.js

    r3320256 r3320730  
    6565        // Only bind once (unbind first for safety)
    6666        $('.wc-block-components-checkout-place-order-button').off('click.tsVerify').on('click.tsVerify', onPlaceOrderClick);
    67         // (Optional) Also classic Woo buttons if you need support
    68         $('button#place_order').off('click.tsVerify').on('click.tsVerify', onPlaceOrderClick);
    6967    }
    7068
  • trust-swiftly-verification/trunk/readme.txt

    r3320256 r3320730  
    55Tested up to: 6.8.1
    66Requires PHP: 8.2
    7 Stable tag: 1.1.14
     7Stable tag: 1.1.15
    88License: GPLv2 or later
    99
     
    6161    *   After creating it, click **Show Secret**, copy the **Webhook Secret**, and paste it into the corresponding field in your WordPress plugin settings.
    6262
    63 5.  **Configure Final Settings:**
     635.  **Set Up Return URL:**
     64    *   A redirect url ensures the user is sent back to the checkout page.
     65    *   In your Trust Swiftly dashboard, go to <kbd>Settings</kbd> -> <kbd>General</kbd> and click **Login & Verification**.
     66    *   Copy the Redirect URL from your WordPress plugin settings page (e.g., `https://your-site.com/index.php?rest_route=/ts/v1/return/&order_id=[order_id]&email=[user_email]`) and paste it into the Completion Redirect URL input.
     67    *   After, click **Update Settings**.
     68
     696.  **Configure Final Settings:**
    6470    *   Back in WordPress, select your newly created **Verification Template** from the dropdown menu.
    6571    *   Choose where to trigger the verification (e.g., before or after checkout) and configure any other desired options.
     
    104110== Changelog ==
    105111
     112= 1.1.15 =
     113*   **Bug:** Fix classic checkout.
     114
    106115= 1.1.14 =
    107116*   **Tweak:** Improved the checkout user experience by making the verification button appear instantly as a valid email is typed.
  • trust-swiftly-verification/trunk/trustswiftly-verification.php

    r3320256 r3320730  
    99 * Author:            Trust Swiftly
    1010 * Author URI:        https://www.trustswiftly.com
    11  * Version:           1.1.14
     11 * Version:           1.1.15
    1212 * Text Domain:       trust-swiftly-verification
    1313 */
     
    2727
    2828if ( ! defined( 'TS_PLUGIN_VERSION' ) ) {
    29     define( 'TS_PLUGIN_VERSION', '1.1.14' ); // Make sure this matches the version in the header
     29    define( 'TS_PLUGIN_VERSION', '1.1.15' ); // Make sure this matches the version in the header
    3030}
    3131require_once __DIR__ . '/bootstrap.php';
Note: See TracChangeset for help on using the changeset viewer.