PageSourceSearch

https://verduonlinestore.com/modules/cdpreciosonline/views/js/cdpreciosonline.js

js verduonlinestore.com collected 2026-10-08 11:52:18 UTC 2,764 bytes, 79 lines download raw bytes

1$(document).ready(function() { 
2
3  try {
4    let id_product_attribute = document.querySelector('.cdpreciosonline-combinaciones').selectedOptions[0].value;
5    if (is_combinado_base_enabled && id_product_attribute) {
6      getCombinationSelected();
7      console.log('GOOD BYE')
8    }
9  } catch {  }
10
11});
12
13function getCombinationSelected() {
14  findCombination();
15
16  try {
17    let id_product_attribute = document.querySelector('.cdpreciosonline-combinaciones').selectedOptions[0].value;
18  } catch { }
19
20  if (is_combinado_base_enabled && id_product_attribute) {
21
22    if (!url.includes('=')) // si tenemos activadas url amigables sobrescribimos la url para que no de error al hacer la llamada
23		  url = `${baseDir}/index.php?fc=module&module=cdpreciosonline&controller=preciocombinacion`;
24
25    let cargando = new Date();		
26		if(!$(".loading").length)
27			document.getElementById('buy_block').insertAdjacentHTML('afterbegin',"<div class='fa fa-spinner fa-spin loading'></div>");		
28		else			
29			$('.loading').show();		
30		$('div.content_prices').css("visibility", "hidden");
31		$('div.box-cart-bottom').css("display", "none");
32    $.ajax({
33      type: 'POST',
34      headers: { 'cache-control': 'no-cache' },
35      // url: `${baseDir}webservice/PrecioCombinacion.php?id_product=${id_product}&reference_attribute=${selectedCombination.reference}`,
36      url: `${url}&id_product=${id_product}&reference_attribute=${selectedCombination.reference}`,
37      async: true,
38      cache: false,
39      dataType: 'json',
40      data: 'ajax=true' + '&token=' + static_token + '&allow_refresh=1',
41      success: function(jsonData) {
42				getProductAttribute();
43				$.ajax({
44					type: 'POST',
45					headers: { 'cache-control': 'no-cache' },
46					url: `${baseUri}?id_product=${id_product}&controller=product&recalculate_price_combination=recalculate_price_combination`,
47					async: true,
48					cache: false,
49					dataType: 'json',
50					data: 'ajax=true' + '&token=' + static_token + '&allow_refresh=1',
51					success: function(jsonData2,textStatus,jqXHR)
52					{
53            if (jsonData2 !== null) {
54              combinationsFromController = jsonData2;
55            }
56						updatePrice()
57            $('div.content_prices').css("visibility", "visible");	
58		        $('div.box-cart-bottom').css("display", "block");
59            $('.loading').hide();						
60					},
61					error: function(XMLHttpRequest2, textStatus, errorThrown)
62					{
63						console.log('error ajax2 ', XMLHttpRequest2);
64					}
65				});
66      },
67      error: function(XMLHttpRequest, textStatus, errorThrown) {
68        console.log('error ', XMLHttpRequest);
69      }
70    });
71  } else {
72    getProductAttribute();
73  }
74}
75
76$(document).on('change', '.attribute_select', function(e) {
77  e.preventDefault();
78	getCombinationSelected();
79});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.