Plugin Directory

Changeset 3470500


Ignore:
Timestamp:
02/26/2026 04:29:54 PM (11 days ago)
Author:
acyba
Message:

7.4 - Major release

Location:
acymailing-integration-for-woocommerce
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • acymailing-integration-for-woocommerce/tags/7.4/WooCommerceAutomationTriggers.php

    r3363068 r3470500  
    6464    }
    6565
    66     public function onAcymDeclareSummary_triggers(&$automation)
     66    public function onAcymDeclareSummary_triggers(object $automation): void
    6767    {
    68         if (empty($automation->triggers['woocommerce_order_change'])) return;
     68        if (empty($automation->triggers['woocommerce_order_change']['from'])) {
     69            return;
     70        }
    6971
    7072        $orderStatuses = $this->getOrderStatuses(true);
  • acymailing-integration-for-woocommerce/tags/7.4/WooCommerceInsertion.php

    r3397081 r3470500  
    550550    private function lastOrCartContentInsert($type = 'last')
    551551    {
    552         if ($type == 'last') {
     552        if ($type === 'cart') {
     553            $identifier = 'cart'.$this->name;
     554            $partId = 'cart';
     555            $endIdMin = 'min';
     556            $endIdMax = 'max';
     557        } else {
    553558            $identifier = 'last'.$this->name;
    554559            $partId = 'last__purchased';
    555560            $endIdMin = '';
    556561            $endIdMax = '';
    557         } elseif ($type == 'cart') {
    558             $identifier = 'cart'.$this->name;
    559             $partId = 'cart';
    560             $endIdMin = 'min';
    561             $endIdMax = 'max';
    562562        }
    563563
     
    647647        </div>
    648648        <script type="text/javascript">
    649             const _additionalInfo<?php echo esc_html($identifier); ?> = {};
     649            window._additionalInfo<?php echo esc_html($identifier); ?> = window._additionalInfo<?php echo esc_html($identifier); ?> || {};
    650650            <?php
    651             echo esc_html('_additionalInfo'.$identifier.'.min = '.$this->defaultValues->min.';');
    652             echo esc_html('_additionalInfo'.$identifier.'.max = '.$this->defaultValues->max.';');
     651            echo esc_html('window._additionalInfo'.$identifier.'.min = '.$this->defaultValues->min.';');
     652            echo esc_html('window._additionalInfo'.$identifier.'.max = '.$this->defaultValues->max.';');
    653653            ?>
    654654        </script>
  • acymailing-integration-for-woocommerce/tags/7.4/acymailing-woocommerce.php

    r3444759 r3470500  
    66 * Author URI: https://www.acymailing.com
    77 * License: GPLv3
    8  * Version: 7.3
     8 * Version: 7.4
    99 * Requires Plugins: acymailing, woocommerce
    1010*/
  • acymailing-integration-for-woocommerce/tags/7.4/readme.txt

    r3444759 r3470500  
    33Tags: newsletter, integration, acymailing, woocommerce
    44Tested up to: 6.9
    5 Stable tag: 7.3
     5Stable tag: 7.4
    66License: GPLv3
    77License URI: http://www.gnu.org/licenses/gpl-3.0.html
  • acymailing-integration-for-woocommerce/trunk/WooCommerceAutomationTriggers.php

    r3363068 r3470500  
    6464    }
    6565
    66     public function onAcymDeclareSummary_triggers(&$automation)
     66    public function onAcymDeclareSummary_triggers(object $automation): void
    6767    {
    68         if (empty($automation->triggers['woocommerce_order_change'])) return;
     68        if (empty($automation->triggers['woocommerce_order_change']['from'])) {
     69            return;
     70        }
    6971
    7072        $orderStatuses = $this->getOrderStatuses(true);
  • acymailing-integration-for-woocommerce/trunk/WooCommerceInsertion.php

    r3397081 r3470500  
    550550    private function lastOrCartContentInsert($type = 'last')
    551551    {
    552         if ($type == 'last') {
     552        if ($type === 'cart') {
     553            $identifier = 'cart'.$this->name;
     554            $partId = 'cart';
     555            $endIdMin = 'min';
     556            $endIdMax = 'max';
     557        } else {
    553558            $identifier = 'last'.$this->name;
    554559            $partId = 'last__purchased';
    555560            $endIdMin = '';
    556561            $endIdMax = '';
    557         } elseif ($type == 'cart') {
    558             $identifier = 'cart'.$this->name;
    559             $partId = 'cart';
    560             $endIdMin = 'min';
    561             $endIdMax = 'max';
    562562        }
    563563
     
    647647        </div>
    648648        <script type="text/javascript">
    649             const _additionalInfo<?php echo esc_html($identifier); ?> = {};
     649            window._additionalInfo<?php echo esc_html($identifier); ?> = window._additionalInfo<?php echo esc_html($identifier); ?> || {};
    650650            <?php
    651             echo esc_html('_additionalInfo'.$identifier.'.min = '.$this->defaultValues->min.';');
    652             echo esc_html('_additionalInfo'.$identifier.'.max = '.$this->defaultValues->max.';');
     651            echo esc_html('window._additionalInfo'.$identifier.'.min = '.$this->defaultValues->min.';');
     652            echo esc_html('window._additionalInfo'.$identifier.'.max = '.$this->defaultValues->max.';');
    653653            ?>
    654654        </script>
  • acymailing-integration-for-woocommerce/trunk/acymailing-woocommerce.php

    r3444759 r3470500  
    66 * Author URI: https://www.acymailing.com
    77 * License: GPLv3
    8  * Version: 7.3
     8 * Version: 7.4
    99 * Requires Plugins: acymailing, woocommerce
    1010*/
  • acymailing-integration-for-woocommerce/trunk/readme.txt

    r3444759 r3470500  
    33Tags: newsletter, integration, acymailing, woocommerce
    44Tested up to: 6.9
    5 Stable tag: 7.3
     5Stable tag: 7.4
    66License: GPLv3
    77License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset for help on using the changeset viewer.