PageSourceSearch

https://electroniger.com/modules/ps_facebook/views/js/front/conversion-api.js

js electroniger.com collected 2026-09-24 13:57:44 UTC 1,862 bytes, 48 lines download raw bytes

1/**
2 * Copyright since 2007 PrestaShop SA and Contributors
3 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
4 *
5 * NOTICE OF LICENSE
6 *
7 * This source file is subject to the Academic Free License version 3.0
8 * that is bundled with this package in the file LICENSE.md.
9 * It is also available through the world-wide-web at this URL:
10 * https://opensource.org/licenses/AFL-3.0
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to [email protected] so we can send you a copy immediately.
14 *
15 * @author    PrestaShop SA and Contributors <[email protected]>
16 * @copyright Since 2007 PrestaShop SA and Contributors
17 * @license   https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
18 */
19$(document).ready(function () {
20    prestashop.on('updateProduct', function (params) {
21        if (params.eventType === 'updatedProductCombination') {
22            var productId = $('input[name="id_product"]').val();
23            var $productAttributes = $(params.event.handleObj.selector);
24            var attributes = [];
25            $productAttributes.each(function (key, attribute) {
26                if ($(attribute).is("input") && !$(attribute).is(':checked')) {
27                    return;
28                }
29                attributes.push($(attribute).val());
30            })
31            ajaxProductCombinationChange(productId, attributes);
32        }
33    });
34
35
36    function ajaxProductCombinationChange(productId, attributes) {
37        $.ajax({
38            type: 'POST',
39            url: prestashopFacebookAjaxController,
40            data: {
41                action: 'CustomizeProduct',
42                ajax: true,
43                id_product: productId,
44                attribute_ids: attributes,
45            }
46        });
47    }
48});

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.