This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `productos` JOIN `bak_tallas` on `productos`.`sku` = `bak_tallas`.`sku` SET `productos`.`a`=`bak_tallas`.`a`, `productos`.`b`=`bak_tallas`.`b`, `productos`.`c`=`bak_tallas`.`c`, `productos`.`d`=`bak_tallas`.`d`, `productos`.`e`=`bak_tallas`.`e`, `productos`.`f`=`bak_tallas`.`f`, `productos`.`g`=`bak_tallas`.`g`, `productos`.`h`=`bak_tallas`.`h`, `productos`.`i`=`bak_tallas`.`i`, `productos`.`j`=`bak_tallas`.`j` WHERE `productos`.`sku`=`bak_tallas`.`sku`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOAD DATA INFILE 'C:/Users/usuario/Desktop/clientes.csv' INTO TABLE cliente | |
FIELDS TERMINATED BY ',' | |
LINES TERMINATED BY '\n'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$encargo = array(); | |
foreach ($req->__POST('sku') as $key => $value) { | |
$repeat = false; | |
for ($i = 0; $i < count($encargo); $i++) { | |
if ($encargo[$i]['sku'] == $value && $encargo[$i]['talla'] == $req->__POST('talla')[$key]) { | |
$encargo[$i]['cantidad'] += $req->__POST('cantidad')[$key]; | |
$repeat = true; | |
break; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request({ | |
method: 'GET', | |
url: 'https://www.genbeta.com' | |
}, function (err, res, body) { | |
if (err) return console.error(err); | |
var l = body.match('<title>(.*?)<\/title>'); | |
console.log(l[1]); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); | |
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); | |
remove_action( 'woocommerce_simple_add_to_cart', 'woocommerce_simple_add_to_cart', 30 ); | |
remove_action( 'woocommerce_grouped_add_to_cart', 'woocommerce_grouped_add_to_cart', 30 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_add_to_cart_redirect', 'custom_add_to_cart_redirect' ); | |
function custom_add_to_cart_redirect() { | |
update_option( 'woocommerce_cart_redirect_after_add' , 'yes' ); | |
return WC()->cart->get_checkout_url(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'send_headers', 'add_header_seguridad' ); | |
function add_header_seguridad() { | |
header( 'X-Content-Type-Options: nosniff' ); | |
header( 'X-Frame-Options: SAMEORIGIN' ); | |
header( 'X-XSS-Protection: 1;mode=block' ); | |
} | |
/** | |
* megamart functions and definitions | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!empty($req->__POST('eord'))) {//email = 0 OR donwload = 1 | |
$eord = $req->__POST('eord'); | |
if ($eord == 1) { | |
require_once 'PHPMailer/PHPMailerAutoload.php'; | |
$mail = new PHPMailer; | |
$mail->setFrom('[email protected]', 'Docfix - Hoja vitae'); | |
$mail->addAddress($req->__POST('mail')); | |
$mail->IsHTML(true); | |
$mail->Subject = 'Curriculum vitae'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="shape-menu" data-negative="false"><svg viewBox="0 0 500 150" preserveAspectRatio="none"><path class="shape-menu-fill" d="M0.00,92.27 C216.83,192.92 304.30,8.39 500.00,109.03 L500.00,0.00 L0.00,0.00 Z"></path></svg></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
if($(".cart-box").length > 0) { | |
alert('box existe'); | |
}else { | |
alert('box no existe'); | |
} | |
$.each($(".cart-box > div[data-cf-product-template]"), function(i, ele) { | |
console.log(ele); | |
}); | |
}); |