/*
* 2007-2018 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author 2007-2019 PayPal
* @author 2007-2013 PrestaShop SA
* @author 2014-2019 202 ecommerce
* @copyright PayPal
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*
*/
function updateFormDatas()
{
var nb = $('#quantity_wanted').val();
var id = $('#idCombination').val();
$('.paypal_payment_form input[name=quantity]').val(nb);
$('.paypal_payment_form input[name=id_p_attr]').val(id);
}
$(document).ready( function() {
var baseDirPP = baseDir.replace('http:', 'https:');
if($('#in_context_checkout_enabled').val() != 1)
{
$(document).on('click','#payment_paypal_express_checkout', function() {
$('#paypal_payment_form_cart').submit();
return false;
});
}
var jquery_version = $.fn.jquery.split('.');
if(jquery_version[0]>=1 && jquery_version[1] >= 7)
{
$('body').on('submit',".paypal_payment_form", function () {
updateFormDatas();
});
}
else {
$('.paypal_payment_form').live('submit', function () {
updateFormDatas();
});
}
function displayExpressCheckoutShortcut() {
var id_product = $('input[name="id_product"]').val();
var id_product_attribute = $('input[name="id_product_attribute"]').val();
$.ajax({
type: "GET",
url: baseDirPP+'/modules/paypal/express_checkout/ajax.php',
data: { get_qty: "1", id_product: id_product, id_product_attribute: id_product_attribute },
cache: false,
success: function(result) {
if (result == '1') {
$('#container_express_checkout').slideDown();
} else {
$('#container_express_checkout').slideUp();
}
return true;
}
});
}
$('select[name^="group_"]').change(function () {
setTimeout(function(){displayExpressCheckoutShortcut()}, 500);
});
$('.color_pick').click(function () {
setTimeout(function(){displayExpressCheckoutShortcut()}, 500);
});
if($('body#product').length > 0) {
setTimeout(function(){displayExpressCheckoutShortcut()}, 500);
}
var modulePath = 'modules/paypal';
var subFolder = '/integral_evolution';
var fullPath = baseDirPP + modulePath + subFolder;
var confirmTimer = false;
if ($('form[target="hss_iframe"]').length == 0) {
if ($('select[name^="group_"]').length > 0)
displayExpressCheckoutShortcut();
return false;
} else {
checkOrder();
}
function checkOrder() {
if(confirmTimer == false)
confirmTimer = setInterval(getOrdersCount, 1000);
}
});
var lgconsultas_default_display = 3;
var lgconsultas_extradisplay = 10;
var lgconsultas_url_envio_consulta = 'https://todoparalaindustria.com/module/lgconsultas/responses';
var lgconsultas_messages_fields_mandatory = 'Todos los campos son obligatorios';
var lgconsultas_messages_email_invalid = 'La dirección de email no es válida';
var lgconsultas_messages_recaptcha = 'Por favor verifique que no es un robot';
var lgconsultas_messages_sended = 'La cuestión se ha enviado correctamente';
var lgconsultas_messages_accept_conditions = 'Debe aceptar las condiciones de uso';
var lgconsultas_faqcaptcha = 0;
var lgconsultas_faqcondition = 1;
var lgconsultas_error_unknown = 1;
var lgconsultas_token = 'b8b9a4035f447ee94b08141b27491f70';
var alcafbp_id = 712296139696381;
var alcafbp_type = 'ViewContent';
var alcafbp_content = {content_name: 'MARTILLO DE BOLA MANGO DE FIBRA BETA 1377T-450GRS (ES)', content_ids: ['1331'], content_type: 'product', value: 18.11, currency: 'EUR'};
var alcafbp_track = 'track';
var alcafbp_controller = 'product';
var alcafbp_category_product = 'MARTILLOS Y MAZAS (ES)';
var alcafbp_contact = '0';
{
"@context": "http://schema.org",
"@type": "Organization",
"name": "todoparalaindustria.com",
"aggregateRating" : {
"@type": "AggregateRating",
"ratingValue" : "4.69",
"bestRating" : "5.00",
"ratingCount" : "69"
}}
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
var dfProductLinks = [];
var dfLinks = Object.keys(dfProductLinks);
var doofinderAppendAfterBanner = "none";
var doofinderQuerySelector = "#search_query_top";