Add description2 field to AdvancedSearchSeoClass and update related templates

This commit is contained in:
2026-01-26 23:07:28 +01:00
parent 9ffe3d5e16
commit 9adfa3074a
8 changed files with 19 additions and 57 deletions

View File

@@ -139,63 +139,6 @@ $(document).ready(function() {
// }
//});
if (pd_google_analitycs_controller != 'cart') {
prestashop.on('updateCart', function(params) {
if (typeof(params) !== 'undefined' && typeof(prestashop.cart) !== 'undefined') {
let iso_code = prestashop.currency.iso_code,
product_id = params.reason.idProduct,
product_id_product_attribute = params.reason.idProductAttribute;
if (typeof(product_id) !== 'undefined' && typeof(product_id_product_attribute) !== 'undefined') {
$.ajax({
type: "POST",
url: pdgoogleanalytycs4pro_ajax_link,
data: {'action': 'updateCart', 'product_id': product_id, 'product_id_product_attribute' : product_id_product_attribute, 'secure_key': pdgoogleanalytycs4pro_secure_key, ajax : true},
dataType: "json",
success: function(data) {
console.log('Fired up event GA4: add_to_cart');
if (window.location.hostname === "lulandia.pl") {
gtag('event', 'conversion', {
'send_to': 'AW-11243281264/WgG_CN2SsesYEPC2m_Ep',
'value': data.content_value,
'currency': 'PLN'
});
console.log( 'Fired up event GADS add_to_cart conversion lulandia.pl' );
}
gtag('event', 'add_to_cart', {
currency: iso_code,
items: [{
item_id: data.content_ids,
item_name: data.content_name,
coupon: '',
discount: data.content_discount,
index: '1',
item_list_name: pd_google_analitycs_controller,
item_list_id: pd_google_analitycs_controller,
affiliation: data.http_referer,
item_brand: data.content_manufacturer,
item_category: data.content_category,
item_category2: (data.content_category2.length) ? data.content_category2 : '',
item_category3: (data.content_category3.length) ? data.content_category3 : '',
item_category4: (data.content_category4.length) ? data.content_category4 : '',
item_category5: (data.content_category5.length) ? data.content_category5 : '',
item_variant: data.content_variant,
price: data.content_value_old,
currency: iso_code,
quantity: 1
}],
value: data.content_value
});
}
});
}
}
});
}
// qty up > thecheckout module opc
$('body').on("click", "a.cart-line-product-quantity-up", function(e) {