Changeset 2841204
- Timestamp:
- 12/29/2022 06:19:27 PM (2 years ago)
- Location:
- maldita-inflacion
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
maldita-inflacion/tags/1.0.0/readme.txt
r2839370 r2841204 64 64 =1.0.2= 65 65 * Valor TDC con decimales en paginas de edicion de producto 66 * Soporte para precios rebajados (SALE) 66 67 67 68 -
maldita-inflacion/tags/1.0.0/src/backend/malinf-malinfAdminpage.php
r2839370 r2841204 25 25 } 26 26 27 public function apiform($ops,$api){ 28 27 public function apiform($ops,$api){ 29 28 30 $st .= '<form method="post">'29 $st = '<form method="post">' 31 30 . $this->modo($ops) 32 31 . $this->apimsg($ops,$api) … … 41 40 42 41 private function modo($ops){ 43 $modman=$modapi= '';42 $modman=$modapi=$moddis=''; 44 43 if($ops->modo=='api'){$modapi = 'checked';} 45 44 if($ops->modo=='manual'){$modman = 'checked';} … … 65 64 66 65 private function apistatus($ops){ 67 66 $tdco=$tdcb=$hid=''; 68 67 if($ops->actual==null){$act = 1;}else{$act = $ops->actual;} 69 68 if($ops->tipodc == 'oficial'){$tdco = 'checked';} 70 69 if($ops->tipodc == 'blue'){$tdcb = 'checked';} 71 70 if($ops->tipodc == null){$tdcb = 'checked';} 72 if($ops->modo!=='api'){$hid = 'hide';} else{$hid='';}71 if($ops->modo!=='api'){$hid = 'hide';} 73 72 74 73 $as = '<div id="apistatus" class="malinf-item '.$hid.'"> … … 93 92 private function redondear($ops){ 94 93 $red = $ops->redond; $alc =$ops->alcanc; $mdoo = $ops->modo; 94 $redu=$redd=$redn=$redu=$alc1o=$alc1oo=$alc1o=''; 95 95 if($red == 'up'){$redu = 'checked';} 96 96 if($red == 'down'){$redd = 'checked';} 97 97 if($red == 'no'){$redn = 'checked';} 98 98 if($red == null){$redu = 'checked';} 99 99 100 100 if($alc=='10'){$alc1o = 'selected="selected"';} 101 101 if($alc=='100'){$alc1oo = 'selected="selected"';} -
maldita-inflacion/tags/1.0.0/src/backend/malinf-malinfGetplpage.php
r2809228 r2841204 8 8 */ 9 9 public function getUrlPage(){ 10 $sget = sanitize_key($$_GET['page']);11 if(isset($ sget)){10 11 if(isset($_GET['page'])){ 12 12 $active_tab=sanitize_key($_GET['page']); 13 13 return $active_tab; -
maldita-inflacion/tags/1.0.0/src/malinf-malinfInit.php
r2809228 r2841204 17 17 private $mpags = null; 18 18 private $bkop = null; 19 private $apir = null;19 // private $apir = null; 20 20 private $hopr = null; 21 21 private $adp = null; 22 private $cron = null; 22 23 private $pag = null; 23 24 … … 26 27 $this->bkop = get_option('malinf_bkops'); 27 28 $this->hopr = new malinfHookprice($this->bkop); 29 // $this->apir = get_option('malinf_apival'); 30 28 31 $this->adp = new malinfAdminpost(); 29 32 $this->cron = new malinfCrontask($this->bkop); … … 33 36 public function start(){ 34 37 add_action('admin_init',[$this,'backstyle']); 35 add_action('admin_menu', [$this,'menuP Ages']);38 add_action('admin_menu', [$this,'menuPages']); 36 39 add_action('admin_init',[$this,'editmetapr']); 37 40 // -
maldita-inflacion/tags/1.0.0/src/prices/malinf-malinfHookprice.php
r2839370 r2841204 72 72 // convert 73 73 $price = $pric*$bak->alcanc; 74 // save 75 if(update_post_meta( intval($id), '_regular_price', intval($price))); 76 if(update_post_meta( intval($id), '_price', intval($price))); 77 74 // save 75 if(get_post_meta(intval($id), '_sale_price')){ 76 $sprice = get_post_meta(intval($id), '_sale_price'); 77 update_post_meta( intval($id), '_price', intval($sprice[0])); 78 update_post_meta( intval($id), '_regular_price', intval($price)); 79 } 80 else{ 81 update_post_meta( intval($id), '_regular_price', intval($price)); 82 update_post_meta( intval($id), '_price', intval($price)); 83 } 84 78 85 } 79 86 -
maldita-inflacion/trunk/readme.txt
r2839370 r2841204 64 64 =1.0.2= 65 65 * Valor TDC con decimales en paginas de edicion de producto 66 * Soporte para precios rebajados (SALE) 66 67 67 68 -
maldita-inflacion/trunk/src/apilog/malinf-malinfResponse.php
r2818251 r2841204 15 15 return null; 16 16 } 17 $resp = json_decode($res['body']); 17 $resp = json_decode($res['body']); 18 18 if(null!==json_decode($bkop)->tipodc&&$res['response']['code']==200){ 19 19 $bktp = json_decode($bkop)->tipodc; -
maldita-inflacion/trunk/src/backend/malinf-malinfAdminpage.php
r2839370 r2841204 25 25 } 26 26 27 public function apiform($ops,$api){ 28 27 public function apiform($ops,$api){ 29 28 30 $st .= '<form method="post">'29 $st = '<form method="post">' 31 30 . $this->modo($ops) 32 31 . $this->apimsg($ops,$api) … … 41 40 42 41 private function modo($ops){ 43 $modman=$modapi= '';42 $modman=$modapi=$moddis=''; 44 43 if($ops->modo=='api'){$modapi = 'checked';} 45 44 if($ops->modo=='manual'){$modman = 'checked';} … … 65 64 66 65 private function apistatus($ops){ 67 66 $tdco=$tdcb=$hid=''; 68 67 if($ops->actual==null){$act = 1;}else{$act = $ops->actual;} 69 68 if($ops->tipodc == 'oficial'){$tdco = 'checked';} 70 69 if($ops->tipodc == 'blue'){$tdcb = 'checked';} 71 70 if($ops->tipodc == null){$tdcb = 'checked';} 72 if($ops->modo!=='api'){$hid = 'hide';} else{$hid='';}71 if($ops->modo!=='api'){$hid = 'hide';} 73 72 74 73 $as = '<div id="apistatus" class="malinf-item '.$hid.'"> … … 93 92 private function redondear($ops){ 94 93 $red = $ops->redond; $alc =$ops->alcanc; $mdoo = $ops->modo; 94 $redu=$redd=$redn=$redu=$alc1o=$alc1oo=$alc1o=''; 95 95 if($red == 'up'){$redu = 'checked';} 96 96 if($red == 'down'){$redd = 'checked';} 97 97 if($red == 'no'){$redn = 'checked';} 98 98 if($red == null){$redu = 'checked';} 99 99 100 100 if($alc=='10'){$alc1o = 'selected="selected"';} 101 101 if($alc=='100'){$alc1oo = 'selected="selected"';} -
maldita-inflacion/trunk/src/backend/malinf-malinfGetplpage.php
r2809228 r2841204 8 8 */ 9 9 public function getUrlPage(){ 10 $sget = sanitize_key($$_GET['page']);11 if(isset($ sget)){10 11 if(isset($_GET['page'])){ 12 12 $active_tab=sanitize_key($_GET['page']); 13 13 return $active_tab; -
maldita-inflacion/trunk/src/backend/malinfWelcomePage.html
r2809334 r2841204 95 95 96 96 <p> 97 • <em><a href="https://wordpress.org/support/plugin/maldita-inflacion/" >Abre un ticket de soporte</a> </em>97 • <em><a href="https://wordpress.org/support/plugin/maldita-inflacion/" target="_blank">Abre un ticket de soporte</a> </em> 98 98 </p> 99 99 <p> 100 •<em>Este plugin ha sido desarrollado sin ninguna retribucion. Si puedes contribuir con una <a href="https://paypal.me/sebastopolys/" target="_blank">donacion paypal aqui </a> sera de gran ayuda</em> 100 • <em><a href="https://digitalek.com/contacto/" target="_blank">Contacta al autor de este plugin: </a> </em> 101 </p> 102 <p> 103 •<em><a href="https://paypal.me/sebastopolys/" target="_blank">Aporta al desarrollo del plugin con una donacion</a></em> 101 104 </p> 102 105 -
maldita-inflacion/trunk/src/malinf-malinfInit.php
r2809228 r2841204 17 17 private $mpags = null; 18 18 private $bkop = null; 19 private $apir = null;19 // private $apir = null; 20 20 private $hopr = null; 21 21 private $adp = null; 22 private $cron = null; 22 23 private $pag = null; 23 24 … … 26 27 $this->bkop = get_option('malinf_bkops'); 27 28 $this->hopr = new malinfHookprice($this->bkop); 29 // $this->apir = get_option('malinf_apival'); 30 28 31 $this->adp = new malinfAdminpost(); 29 32 $this->cron = new malinfCrontask($this->bkop); … … 33 36 public function start(){ 34 37 add_action('admin_init',[$this,'backstyle']); 35 add_action('admin_menu', [$this,'menuP Ages']);38 add_action('admin_menu', [$this,'menuPages']); 36 39 add_action('admin_init',[$this,'editmetapr']); 37 40 // -
maldita-inflacion/trunk/src/prices/malinf-malinfHookprice.php
r2839370 r2841204 72 72 // convert 73 73 $price = $pric*$bak->alcanc; 74 // save 75 if(update_post_meta( intval($id), '_regular_price', intval($price))); 76 if(update_post_meta( intval($id), '_price', intval($price))); 77 74 // save 75 if(get_post_meta(intval($id), '_sale_price')){ 76 $sprice = get_post_meta(intval($id), '_sale_price'); 77 update_post_meta( intval($id), '_price', intval($sprice[0])); 78 update_post_meta( intval($id), '_regular_price', intval($price)); 79 } 80 else{ 81 update_post_meta( intval($id), '_regular_price', intval($price)); 82 update_post_meta( intval($id), '_price', intval($price)); 83 } 84 78 85 } 79 86
Note: See TracChangeset
for help on using the changeset viewer.