Usunięto pliki .DS_Store z katalogu autoload oraz front; dodano opakowanie kodu JavaScript w funkcję jQuery dla lepszej organizacji.

This commit is contained in:
2025-03-21 23:07:46 +01:00
parent 2242a0e10d
commit ab3951992b
3 changed files with 18 additions and 16 deletions

BIN
autoload/.DS_Store vendored

Binary file not shown.

Binary file not shown.

View File

@@ -255,22 +255,24 @@
<script class="footer" type="text/javascript" src="/libraries/fancybox3/js/wheel.js"></script> <script class="footer" type="text/javascript" src="/libraries/fancybox3/js/wheel.js"></script>
<script class="footer" type="text/javascript" src="/plugins/OwlCarousel/owl.carousel.js"></script> <script class="footer" type="text/javascript" src="/plugins/OwlCarousel/owl.carousel.js"></script>
<script type="text/javascript"> <script type="text/javascript">
<? if ( $this -> settings['google_tag_manager_id'] ):?> $(function(){
dataLayer.push({ ecommerce: null }); <? if ( $this -> settings['google_tag_manager_id'] ):?>
dataLayer.push({ dataLayer.push({ ecommerce: null });
event: "view_item", dataLayer.push({
ecommerce: { event: "view_item",
items: [ ecommerce: {
{ items: [
item_id: "<?= $this -> product -> id;?>", {
item_name: "<?= str_replace( '"', '', $this -> product -> language['name'] );?>", item_id: "<?= $this -> product -> id;?>",
price: '<? if ( $this -> product -> price_brutto_promo ): echo \S::normalize_decimal( $this -> product -> price_brutto_promo ); else: echo \S::normalize_decimal( $this -> product -> price_brutto ); endif;?>', item_name: "<?= str_replace( '"', '', $this -> product -> language['name'] );?>",
quantity: 1 price: '<? if ( $this -> product -> price_brutto_promo ): echo \S::normalize_decimal( $this -> product -> price_brutto_promo ); else: echo \S::normalize_decimal( $this -> product -> price_brutto ); endif;?>',
} quantity: 1
] }
} ]
}); }
<? endif;?> });
<? endif;?>
});
</script> </script>
<script class="footer" type="text/javascript"> <script class="footer" type="text/javascript">
$( function () $( function ()