Plugin Directory

Changeset 3788916


Ignore:
Timestamp:
11/07/2026 01:30:13 AM (less than one hour ago)
Author:
wpmilan
Message:

Update to version 1.1.1 from GitHub

Location:
sourcecrate-post-purchase-survey
Files:
4 added
16 edited
1 copied

Legend:

Unmodified
Added
Removed
  • sourcecrate-post-purchase-survey/tags/1.1.1/CHANGELOG.md

    r3782957 r3788916  
    11# Changelog
     2
     3## 1.1.1 — 2026-11-06
     4
     5- Questions, answers, card title and thank-you message are registered with WPML String Translation and Polylang, and translated on the card and both checkouts. Reports, the order screen and `_scps_attribution` keep the original words.
     6- `wpml-config.xml` keeps `scps_question` out of WPML's post translation.
    27
    38## 1.1.0 — 2026-11-04
  • sourcecrate-post-purchase-survey/tags/1.1.1/includes/class-scps-checkout.php

    r3782957 r3788916  
    118118                        return;
    119119                }
     120
     121                $question = SCPS_Translations::translate_question( $question );
    120122
    121123                $settings = scps_get_settings();
    … …  
    195197                }
    196198
     199                $question = SCPS_Translations::translate_question( $question );
     200
    197201                $settings = scps_get_settings();
    198202
    … …  
    239243                }
    240244
     245                $question = SCPS_Translations::translate_question( $question );
     246
    241247                if ( ! array_key_exists( $value, $this->get_choices( $question ) ) ) {
    242248                        /* translators: %s: the question, e.g. "How did you hear about us?". */
  • sourcecrate-post-purchase-survey/tags/1.1.1/includes/class-scps-frontend.php

    r3782957 r3788916  
    8787
    8888                foreach ( $questions as &$question ) {
     89                        $question = SCPS_Translations::translate_question( $question );
     90
    8991                        if ( $question['shuffle'] ) {
    9092                                shuffle( $question['options'] );
    … …  
    9597                $this->enqueue_assets( $order );
    9698
    97                 $settings = scps_get_settings();
     99                $settings = SCPS_Translations::translate_settings( scps_get_settings() );
    98100
    99101                include SCPS_PATH . 'templates/survey-card.php';
  • sourcecrate-post-purchase-survey/tags/1.1.1/includes/class-scps-plugin.php

    r3782957 r3788916  
    9898                new SCPS_Checkout();
    9999                new SCPS_Import();
     100                new SCPS_Translations();
    100101
    101102                if ( is_admin() ) {
    … …  
    135136                require_once SCPS_PATH . 'includes/class-scps-checkout.php';
    136137                require_once SCPS_PATH . 'includes/class-scps-import.php';
     138                require_once SCPS_PATH . 'includes/class-scps-translations.php';
    137139
    138140                if ( is_admin() ) {
  • sourcecrate-post-purchase-survey/tags/1.1.1/languages/sourcecrate-post-purchase-survey.pot

    r3782957 r3788916  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: SourceCrate – Post-Purchase Survey & Attribution for WooCommerce 1.1.0\n"
     5"Project-Id-Version: SourceCrate – Post-Purchase Survey & Attribution for WooCommerce 1.1.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sourcecrate-post-purchase-survey\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-11-03T04:58:44+00:00\n"
     12"POT-Creation-Date: 2026-11-06T17:17:39+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    6565
    6666#: includes/admin/class-scps-admin-builder.php:116
    67 #: includes/class-scps-checkout.php:137
    68 #: includes/class-scps-checkout.php:204
     67#: includes/class-scps-checkout.php:139
     68#: includes/class-scps-checkout.php:208
    6969#: templates/survey-card.php:85
    7070msgid "Choose an answer"
    … …  
    311311#. translators: 1: current question number, 2: number of questions.
    312312#: includes/admin/class-scps-admin-builder.php:176
    313 #: includes/class-scps-frontend.php:125
     313#: includes/class-scps-frontend.php:127
    314314#: templates/survey-card.php:34
    315315#, php-format
    … …  
    10511051
    10521052#. translators: %s: the question, e.g. "How did you hear about us?".
    1053 #: includes/class-scps-checkout.php:243
     1053#: includes/class-scps-checkout.php:249
    10541054#, php-format
    10551055msgid "Please choose an answer to \"%s\"."
    10561056msgstr ""
    10571057
    1058 #: includes/class-scps-frontend.php:123
     1058#: includes/class-scps-frontend.php:125
    10591059msgid "Something went wrong. Please try again."
    10601060msgstr ""
    … …  
    11021102msgstr ""
    11031103
    1104 #: includes/class-scps-plugin.php:177
     1104#: includes/class-scps-plugin.php:179
    11051105msgid "SourceCrate requires WooCommerce to be installed and active."
    11061106msgstr ""
  • sourcecrate-post-purchase-survey/tags/1.1.1/readme.txt

    r3782957 r3788916  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.0
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    3737* **Switching from Where Did You Hear About Us Checkout Field?** Import its answers in one click, with their revenue and order dates, even after you deactivate it.
    3838* **CSV export** of every answer.
     39* **Multilingual stores:** translate your questions, answers, card title and thank-you message with WPML or Polylang. Reports keep one row per answer in every language.
    3940* **Block and classic checkout**, HPOS compatible.
    4041* **Private by design:** answers stay in your WordPress database. Nothing is sent anywhere, no account needed. Works with WordPress's personal data export and erasure tools.
    … …  
    109110Yes. Every string uses the `sourcecrate-post-purchase-survey` text domain and can be translated on translate.wordpress.org. Your own questions and answers are typed in whatever language you like.
    110111
     112= Does it work with WPML or Polylang? =
     113
     114Yes. Your questions, answers, card title and thank-you message are registered as strings in the "SourceCrate" group. Translate them in WPML → String Translation or Languages → Translations in Polylang, and buyers see the card and the checkout question in their language. Reports keep one row per answer whatever language the buyer saw.
     115
    111116= Is any data sent to you or a third party? =
    112117
    … …  
    132137== Changelog ==
    133138
     139= 1.1.1 =
     140* New: translate your questions, answers, card title and thank-you message with WPML or Polylang. Reports keep one row per answer across languages.
     141
    134142= 1.1.0 =
    135143* New: ask "How did you hear about us?" at checkout, on the thank-you page, or at checkout and again after payment if skipped. Works on the block and the classic checkout, optional or required.
    … …  
    151159== Upgrade Notice ==
    152160
     161= 1.1.1 =
     162Translate your survey with WPML or Polylang.
     163
    153164= 1.1.0 =
    154165Ask at checkout, import from Where Did You Hear About Us Checkout Field, a My Account second chance and a dashboard widget.
  • sourcecrate-post-purchase-survey/tags/1.1.1/sourcecrate-post-purchase-survey.php

    r3782957 r3788916  
    44 * Plugin URI: https://techzigya.com/sourcecrate
    55 * Description: Ask buyers how they found you on the thank-you page and see which marketing channels actually bring in revenue.
    6  * Version: 1.1.0
     6 * Version: 1.1.1
    77 * Author: @wpmilan
    88 * Author URI: https://milanc.com.np/
    … …  
    2323
    2424if ( ! defined( 'SCPS_VERSION' ) ) {
    25         define( 'SCPS_VERSION', '1.1.0' );
     25        define( 'SCPS_VERSION', '1.1.1' );
    2626}
    2727
  • sourcecrate-post-purchase-survey/tags/1.1.1/uninstall.php

    r3782957 r3788916  
    1818delete_option( 'scps_settings' );
    1919delete_option( 'scps_import_wccs' );
     20delete_option( 'scps_wpml_strings_hash' );
    2021delete_transient( 'scps_answered_orders' );
    2122delete_metadata( 'user', 0, 'scps_review_notice', '', true );
  • sourcecrate-post-purchase-survey/trunk/CHANGELOG.md

    r3782957 r3788916  
    11# Changelog
     2
     3## 1.1.1 — 2026-11-06
     4
     5- Questions, answers, card title and thank-you message are registered with WPML String Translation and Polylang, and translated on the card and both checkouts. Reports, the order screen and `_scps_attribution` keep the original words.
     6- `wpml-config.xml` keeps `scps_question` out of WPML's post translation.
    27
    38## 1.1.0 — 2026-11-04
  • sourcecrate-post-purchase-survey/trunk/includes/class-scps-checkout.php

    r3782957 r3788916  
    118118                        return;
    119119                }
     120
     121                $question = SCPS_Translations::translate_question( $question );
    120122
    121123                $settings = scps_get_settings();
    … …  
    195197                }
    196198
     199                $question = SCPS_Translations::translate_question( $question );
     200
    197201                $settings = scps_get_settings();
    198202
    … …  
    239243                }
    240244
     245                $question = SCPS_Translations::translate_question( $question );
     246
    241247                if ( ! array_key_exists( $value, $this->get_choices( $question ) ) ) {
    242248                        /* translators: %s: the question, e.g. "How did you hear about us?". */
  • sourcecrate-post-purchase-survey/trunk/includes/class-scps-frontend.php

    r3782957 r3788916  
    8787
    8888                foreach ( $questions as &$question ) {
     89                        $question = SCPS_Translations::translate_question( $question );
     90
    8991                        if ( $question['shuffle'] ) {
    9092                                shuffle( $question['options'] );
    … …  
    9597                $this->enqueue_assets( $order );
    9698
    97                 $settings = scps_get_settings();
     99                $settings = SCPS_Translations::translate_settings( scps_get_settings() );
    98100
    99101                include SCPS_PATH . 'templates/survey-card.php';
  • sourcecrate-post-purchase-survey/trunk/includes/class-scps-plugin.php

    r3782957 r3788916  
    9898                new SCPS_Checkout();
    9999                new SCPS_Import();
     100                new SCPS_Translations();
    100101
    101102                if ( is_admin() ) {
    … …  
    135136                require_once SCPS_PATH . 'includes/class-scps-checkout.php';
    136137                require_once SCPS_PATH . 'includes/class-scps-import.php';
     138                require_once SCPS_PATH . 'includes/class-scps-translations.php';
    137139
    138140                if ( is_admin() ) {
  • sourcecrate-post-purchase-survey/trunk/languages/sourcecrate-post-purchase-survey.pot

    r3782957 r3788916  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: SourceCrate – Post-Purchase Survey & Attribution for WooCommerce 1.1.0\n"
     5"Project-Id-Version: SourceCrate – Post-Purchase Survey & Attribution for WooCommerce 1.1.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/sourcecrate-post-purchase-survey\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    … …  
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2026-11-03T04:58:44+00:00\n"
     12"POT-Creation-Date: 2026-11-06T17:17:39+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.12.0\n"
    … …  
    6565
    6666#: includes/admin/class-scps-admin-builder.php:116
    67 #: includes/class-scps-checkout.php:137
    68 #: includes/class-scps-checkout.php:204
     67#: includes/class-scps-checkout.php:139
     68#: includes/class-scps-checkout.php:208
    6969#: templates/survey-card.php:85
    7070msgid "Choose an answer"
    … …  
    311311#. translators: 1: current question number, 2: number of questions.
    312312#: includes/admin/class-scps-admin-builder.php:176
    313 #: includes/class-scps-frontend.php:125
     313#: includes/class-scps-frontend.php:127
    314314#: templates/survey-card.php:34
    315315#, php-format
    … …  
    10511051
    10521052#. translators: %s: the question, e.g. "How did you hear about us?".
    1053 #: includes/class-scps-checkout.php:243
     1053#: includes/class-scps-checkout.php:249
    10541054#, php-format
    10551055msgid "Please choose an answer to \"%s\"."
    10561056msgstr ""
    10571057
    1058 #: includes/class-scps-frontend.php:123
     1058#: includes/class-scps-frontend.php:125
    10591059msgid "Something went wrong. Please try again."
    10601060msgstr ""
    … …  
    11021102msgstr ""
    11031103
    1104 #: includes/class-scps-plugin.php:177
     1104#: includes/class-scps-plugin.php:179
    11051105msgid "SourceCrate requires WooCommerce to be installed and active."
    11061106msgstr ""
  • sourcecrate-post-purchase-survey/trunk/readme.txt

    r3782957 r3788916  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 1.1.0
     7Stable tag: 1.1.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    3737* **Switching from Where Did You Hear About Us Checkout Field?** Import its answers in one click, with their revenue and order dates, even after you deactivate it.
    3838* **CSV export** of every answer.
     39* **Multilingual stores:** translate your questions, answers, card title and thank-you message with WPML or Polylang. Reports keep one row per answer in every language.
    3940* **Block and classic checkout**, HPOS compatible.
    4041* **Private by design:** answers stay in your WordPress database. Nothing is sent anywhere, no account needed. Works with WordPress's personal data export and erasure tools.
    … …  
    109110Yes. Every string uses the `sourcecrate-post-purchase-survey` text domain and can be translated on translate.wordpress.org. Your own questions and answers are typed in whatever language you like.
    110111
     112= Does it work with WPML or Polylang? =
     113
     114Yes. Your questions, answers, card title and thank-you message are registered as strings in the "SourceCrate" group. Translate them in WPML → String Translation or Languages → Translations in Polylang, and buyers see the card and the checkout question in their language. Reports keep one row per answer whatever language the buyer saw.
     115
    111116= Is any data sent to you or a third party? =
    112117
    … …  
    132137== Changelog ==
    133138
     139= 1.1.1 =
     140* New: translate your questions, answers, card title and thank-you message with WPML or Polylang. Reports keep one row per answer across languages.
     141
    134142= 1.1.0 =
    135143* New: ask "How did you hear about us?" at checkout, on the thank-you page, or at checkout and again after payment if skipped. Works on the block and the classic checkout, optional or required.
    … …  
    151159== Upgrade Notice ==
    152160
     161= 1.1.1 =
     162Translate your survey with WPML or Polylang.
     163
    153164= 1.1.0 =
    154165Ask at checkout, import from Where Did You Hear About Us Checkout Field, a My Account second chance and a dashboard widget.
  • sourcecrate-post-purchase-survey/trunk/sourcecrate-post-purchase-survey.php

    r3782957 r3788916  
    44 * Plugin URI: https://techzigya.com/sourcecrate
    55 * Description: Ask buyers how they found you on the thank-you page and see which marketing channels actually bring in revenue.
    6  * Version: 1.1.0
     6 * Version: 1.1.1
    77 * Author: @wpmilan
    88 * Author URI: https://milanc.com.np/
    … …  
    2323
    2424if ( ! defined( 'SCPS_VERSION' ) ) {
    25         define( 'SCPS_VERSION', '1.1.0' );
     25        define( 'SCPS_VERSION', '1.1.1' );
    2626}
    2727
  • sourcecrate-post-purchase-survey/trunk/uninstall.php

    r3782957 r3788916  
    1818delete_option( 'scps_settings' );
    1919delete_option( 'scps_import_wccs' );
     20delete_option( 'scps_wpml_strings_hash' );
    2021delete_transient( 'scps_answered_orders' );
    2122delete_metadata( 'user', 0, 'scps_review_notice', '', true );
Note: See TracChangeset for help on using the changeset viewer.