Changeset 3470500
- Timestamp:
- 02/26/2026 04:29:54 PM (11 days ago)
- Location:
- acymailing-integration-for-woocommerce
- Files:
-
- 8 edited
- 1 copied
-
tags/7.4 (copied) (copied from acymailing-integration-for-woocommerce/trunk)
-
tags/7.4/WooCommerceAutomationTriggers.php (modified) (1 diff)
-
tags/7.4/WooCommerceInsertion.php (modified) (2 diffs)
-
tags/7.4/acymailing-woocommerce.php (modified) (1 diff)
-
tags/7.4/readme.txt (modified) (1 diff)
-
trunk/WooCommerceAutomationTriggers.php (modified) (1 diff)
-
trunk/WooCommerceInsertion.php (modified) (2 diffs)
-
trunk/acymailing-woocommerce.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
acymailing-integration-for-woocommerce/tags/7.4/WooCommerceAutomationTriggers.php
r3363068 r3470500 64 64 } 65 65 66 public function onAcymDeclareSummary_triggers( &$automation)66 public function onAcymDeclareSummary_triggers(object $automation): void 67 67 { 68 if (empty($automation->triggers['woocommerce_order_change'])) return; 68 if (empty($automation->triggers['woocommerce_order_change']['from'])) { 69 return; 70 } 69 71 70 72 $orderStatuses = $this->getOrderStatuses(true); -
acymailing-integration-for-woocommerce/tags/7.4/WooCommerceInsertion.php
r3397081 r3470500 550 550 private function lastOrCartContentInsert($type = 'last') 551 551 { 552 if ($type == 'last') { 552 if ($type === 'cart') { 553 $identifier = 'cart'.$this->name; 554 $partId = 'cart'; 555 $endIdMin = 'min'; 556 $endIdMax = 'max'; 557 } else { 553 558 $identifier = 'last'.$this->name; 554 559 $partId = 'last__purchased'; 555 560 $endIdMin = ''; 556 561 $endIdMax = ''; 557 } elseif ($type == 'cart') {558 $identifier = 'cart'.$this->name;559 $partId = 'cart';560 $endIdMin = 'min';561 $endIdMax = 'max';562 562 } 563 563 … … 647 647 </div> 648 648 <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); ?> || {}; 650 650 <?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.';'); 653 653 ?> 654 654 </script> -
acymailing-integration-for-woocommerce/tags/7.4/acymailing-woocommerce.php
r3444759 r3470500 6 6 * Author URI: https://www.acymailing.com 7 7 * License: GPLv3 8 * Version: 7. 38 * Version: 7.4 9 9 * Requires Plugins: acymailing, woocommerce 10 10 */ -
acymailing-integration-for-woocommerce/tags/7.4/readme.txt
r3444759 r3470500 3 3 Tags: newsletter, integration, acymailing, woocommerce 4 4 Tested up to: 6.9 5 Stable tag: 7. 35 Stable tag: 7.4 6 6 License: GPLv3 7 7 License URI: http://www.gnu.org/licenses/gpl-3.0.html -
acymailing-integration-for-woocommerce/trunk/WooCommerceAutomationTriggers.php
r3363068 r3470500 64 64 } 65 65 66 public function onAcymDeclareSummary_triggers( &$automation)66 public function onAcymDeclareSummary_triggers(object $automation): void 67 67 { 68 if (empty($automation->triggers['woocommerce_order_change'])) return; 68 if (empty($automation->triggers['woocommerce_order_change']['from'])) { 69 return; 70 } 69 71 70 72 $orderStatuses = $this->getOrderStatuses(true); -
acymailing-integration-for-woocommerce/trunk/WooCommerceInsertion.php
r3397081 r3470500 550 550 private function lastOrCartContentInsert($type = 'last') 551 551 { 552 if ($type == 'last') { 552 if ($type === 'cart') { 553 $identifier = 'cart'.$this->name; 554 $partId = 'cart'; 555 $endIdMin = 'min'; 556 $endIdMax = 'max'; 557 } else { 553 558 $identifier = 'last'.$this->name; 554 559 $partId = 'last__purchased'; 555 560 $endIdMin = ''; 556 561 $endIdMax = ''; 557 } elseif ($type == 'cart') {558 $identifier = 'cart'.$this->name;559 $partId = 'cart';560 $endIdMin = 'min';561 $endIdMax = 'max';562 562 } 563 563 … … 647 647 </div> 648 648 <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); ?> || {}; 650 650 <?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.';'); 653 653 ?> 654 654 </script> -
acymailing-integration-for-woocommerce/trunk/acymailing-woocommerce.php
r3444759 r3470500 6 6 * Author URI: https://www.acymailing.com 7 7 * License: GPLv3 8 * Version: 7. 38 * Version: 7.4 9 9 * Requires Plugins: acymailing, woocommerce 10 10 */ -
acymailing-integration-for-woocommerce/trunk/readme.txt
r3444759 r3470500 3 3 Tags: newsletter, integration, acymailing, woocommerce 4 4 Tested up to: 6.9 5 Stable tag: 7. 35 Stable tag: 7.4 6 6 License: GPLv3 7 7 License URI: http://www.gnu.org/licenses/gpl-3.0.html
Note: See TracChangeset
for help on using the changeset viewer.