From 2bfa25bb3cc47f145fe6d9f8196ae65e20152590 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Wed, 4 Jun 2025 22:07:56 +0200 Subject: [PATCH] update --- autoload/.DS_Store | Bin 0 -> 6148 bytes autoload/front/.DS_Store | Bin 0 -> 6148 bytes config.php | 9 +- cron-turstmate.php | 95 ++++++++++++++++++++ templates/.DS_Store | Bin 0 -> 6148 bytes templates_user/.DS_Store | Bin 0 -> 6148 bytes templates_user/components/.DS_Store | Bin 0 -> 6148 bytes templates_user/shop-order/order-details.php | 23 +---- 8 files changed, 102 insertions(+), 25 deletions(-) create mode 100644 autoload/.DS_Store create mode 100644 autoload/front/.DS_Store create mode 100644 cron-turstmate.php create mode 100644 templates/.DS_Store create mode 100644 templates_user/.DS_Store create mode 100644 templates_user/components/.DS_Store diff --git a/autoload/.DS_Store b/autoload/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..3239922a7e1693c4aee135bf32fa7086814704fc GIT binary patch literal 6148 zcmeHK%}N6?5T4Nr3%&H{F|W`!h-Lc(1-(iw>Y-~&(R-f8*YM`WC-UYuKZ=V1!Glzp zf#jQHX7ckbn`DTH7Y~~`(Ts>X6hRiHA=2G69l7%a$U4UT_GZ4iD#NZZ%wcxP+E3`3 z_EhMOTI>I09ZKJ?w`Gl(?&9_F<>~zSY#cw7%{Lyq+dsz8VScw*RWJ|?1Ovgq&l$j- zEz(U5qYegwfneZ+0XZKMiePrEhI(|M(i8wF&uA6sl1oTTa?Fm^5EckqD9}RLQw+9n z^e6Yrj@8h@i9PvXpZPs`VVxc0Cv_*zhEWFt!N8b-V{6Xj{$JvkX(svOkZ1)1!N5Ob zfG7Q`Utm*yw|?24+_eei5=BJ(swfcXqelQ5a*mv;(dmab_*8*1HOwQge!$xjr$bq1UPXP{v~z7GK^ zSQyrd>C=HGl>opD<|OD#Eg><%urRC@F#=%?1!^c;iNP8UdoaJkuvXM?Vk-3~NPLApRqeXz<1v_)`YH0K&6M2mk;8 literal 0 HcmV?d00001 diff --git a/config.php b/config.php index 44e3daf..b89a80a 100644 --- a/config.php +++ b/config.php @@ -1,8 +1,8 @@ diff --git a/cron-turstmate.php b/cron-turstmate.php new file mode 100644 index 0000000..c61d9a7 --- /dev/null +++ b/cron-turstmate.php @@ -0,0 +1,95 @@ + 'mysql', + 'database_name' => $database[ 'name' ], + 'server' => $database[ 'host' ], + 'username' => $database[ 'user' ], + 'password' => $database[ 'password' ], + 'charset' => 'utf8' + ] ); + +if ( !$config['trustmate']['enabled'] ) +{ + echo 'TrustMate is not enabled.'; + exit; +} + +$settings = \front\factory\Settings::settings_details(); + +$order_id = $mdb -> get( 'pp_shop_orders', '*', [ 'AND' => [ 'status' => 6, 'trustmate_send' => 0 ] ] ); +if ( is_array( $order_id ) and $order_id['id'] ) +{ + $order = \front\factory\ShopOrder::order_details( $order_id['id'] ); + ?> + + + + TrustMate Cron + + + + + + +

TrustMate Cron

+

Wysłano zaproszenie do TrustMate dla zamówienia nr .

+ update( 'pp_shop_orders', [ 'trustmate_send' => 1 ], [ 'id' => $order['id'] ] ); + ?> + + + @Hp??sn;|nS=qxK{^^pq2{dv<=R6W_&iY|x#0AXpGW zwv;?4u^r!&E{TbVmxpFSG$*18O^`(y5t$xcIy2)bkV}jk>gb6QHFOvW^cSZj_ZdCY z7Fl=H&woSv-Q!}lNp06l{8QUD)%ALp*08N!F0U?*_pi5K#coscBl~W9l1ncwSDgW8 zz!`7`oPlpMfIC~HI#=}G8E^)ife!}cdV93BkhjY3A@9@iv z7WqRLA2|cgz&~Svr}e5{;-lXVP-t9I?iIMf%5qNN3m_#C4KXMr)UI+aj>emhq98+&f+l(+&Ai>& zd29I<9*>A<`}MjKX+&fWH%Fk~B9M^^Pys6Nqkw%M3f!hP6`=yd49* i9b;qdc*nm7hJ9eJk%`7>a;(5S$@6*vQa;1$mR literal 0 HcmV?d00001 diff --git a/templates_user/components/.DS_Store b/templates_user/components/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 }); - - - - - - - \ No newline at end of file + \ No newline at end of file